/** * Counts the number of {@link Sense} instances within the UBY-LMF {@link LexicalResource} * contained in the database accessed by this {@link UbyStatistics} instance. * * @return the number of senses in the lexical resource or zero if the * lexical resource does not contain any senses */ public long countSenses(){ return countClassEntities(Sense.class); }
/** * Counts the number of {@link LexicalEntry} instances within the UBY-LMF {@link LexicalResource} * contained in the database accessed by this {@link UbyStatistics} instance. * * @return the number of lexical entries in the lexical resource or zero if the * lexical resource does not contain any lexical entries */ public long countLexicalEntries(){ return countClassEntities(LexicalEntry.class); }
/** * Counts the number of {@link SenseAxis} instances within the UBY-LMF {@link LexicalResource} * contained in the database accessed by this {@link UbyStatistics} instance. * * @return the number of sense axes in the lexical resource or zero if the * lexical resource does not contain any sense axes */ public long countSenseAxes() { return countClassEntities(SenseAxis.class); }