public int getNumSenses(String lemma, String pos) { try { IndexWord iw = dict.getIndexWord(POS.NOUN,lemma); if (iw == null) { return 0; } return iw.getSenseCount(); } catch (JWNLException e) { return 0; } }
public int getNumSenses(String lemma, String pos) { try { IndexWord iw = dict.getIndexWord(POS.NOUN,lemma); if (iw == null){ return 0; } return iw.getSenseCount(); } catch (JWNLException e) { return 0; } }
/** Find out how many senses the word with part-of-speech <code>pos</code> has. */ public int getSenseCount(POS pos) { return getIndexWord(pos).getSenseCount(); }