/** * Count the number of lemma+pos combinations per lexicon, * part-of-speech prefix * and language * @param lexiconName * Name of the lexicon * @param prefix * The partOfSpeech prefix * @param lang * The language identifier of the lexicon * @return the number of lemma+pos combinations */ public long countLemmaPosPerLexiconAndPosPrefixAndLanguage(String lexiconName, String prefix, String lang){ Set<String> l= getLemmaPosPerLexiconAndPosPrefixAndLanguage(lexiconName, prefix, lang); int res = 0; if (!l.isEmpty()){ res = l.size(); } return res; }