public String getLemma() { return id.getLemma(); }
this.lexID = lexID; this.adjMarker = adjMarker; this.senseKey = new SenseKey(id.getLemma(), lexID, synset); this.allWords = (hiddenSet != null && !hiddenSet.isEmpty()) ? Collections.unmodifiableList(new ArrayList<IWordID>(hiddenSet)) :
public IWord getWord(IWordID id) { checkOpen(); ISynset synset = getSynset(id.getSynsetID()); if(synset == null) return null; // One or the other of the WordID number or lemma may not exist, // depending on whence the word id came, so we have to check // them before trying. if (id.getWordNumber() > 0) { return synset.getWords().get(id.getWordNumber() - 1); } else if (id.getLemma() != null) { for(IWord word : synset.getWords()) { if (word.getLemma().equalsIgnoreCase(id.getLemma())) return word; } return null; } else { throw new IllegalArgumentException("Not enough information in IWordID instance to retrieve word."); } }