|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWord
A word, which in Wordnet is an index word paired with a synset.
Method Summary | |
---|---|
AdjMarker |
getAdjectiveMarker()
Returns the adjective marker of this word. |
java.lang.String |
getLemma()
Returns the root form of this word, never null or empty. |
int |
getLexicalID()
A integer in the closed range [0,15] that, when appended onto lemma, uniquely identifies a sense within a lexicographer file. |
java.util.Map<IPointer,java.util.List<IWordID>> |
getRelatedMap()
Returns an immutable map of from pointers to immutable maps. |
java.util.List<IWordID> |
getRelatedWords()
Returns an immutable list of all word ids related to this word by pointers in the database. |
java.util.List<IWordID> |
getRelatedWords(IPointer ptr)
Returns an immutable list of all word ids related to this word by the specified pointer type. |
ISenseKey |
getSenseKey()
Returns the sense key for this word. |
ISynset |
getSynset()
Returns the synset uniquely identified by this word. |
java.util.List<IVerbFrame> |
getVerbFrames()
Returns an immutable list of all verb frames associated with this word. |
Methods inherited from interface edu.mit.jwi.item.IHasPOS |
---|
getPOS |
Methods inherited from interface edu.mit.jwi.item.IItem |
---|
getID |
Method Detail |
---|
java.lang.String getLemma()
null
or empty.
null
, non-empty root form of this wordISynset getSynset()
null
.
null
synset identified by this word.ISenseKey getSenseKey()
null
;
however, the sense key that is returned may not yet have it's
head lemma and head lexical id set yet, and so may throw an exception on
some calls.
null
ISenseKey.needsHeadSet()
,
ISenseKey.setHead(String, int)
int getLexicalID()
java.util.Map<IPointer,java.util.List<IWordID>> getRelatedMap()
ISynset.getRelatedMap()
on the appropriate object.
java.util.List<IWordID> getRelatedWords(IPointer ptr)
ISynset.getRelatedSynsets()
. If this
word has no targets for the for the specified pointer, this method
returns an empty list. This method never returns null
.
ptr
- the pointer for which related words are requested
java.util.List<IWordID> getRelatedWords()
ISynset.getRelatedSynsets()
on the ISynset
for this
word.
java.util.List<IVerbFrame> getVerbFrames()
AdjMarker getAdjectiveMarker()
null
null
if none.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |