|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.jwi.item.IndexWord
public class IndexWord
Default implementation of IIndexWord.
| Constructor Summary | |
|---|---|
IndexWord(IIndexWordID id,
int tagSenseCnt,
IPointer[] ptrs,
IWordID... words)
Constructs a new index word. |
|
IndexWord(IIndexWordID id,
int tagSenseCnt,
IWordID... words)
Constructs a new index word. |
|
IndexWord(java.lang.String lemma,
POS pos,
int tagSenseCnt,
IPointer[] ptrs,
IWordID... words)
Constructs a new index word. |
|
IndexWord(java.lang.String lemma,
POS pos,
int tagSenseCnt,
IWordID... words)
Constructs a new index word. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
IIndexWordID |
getID()
Returns the ID object for this item. |
java.lang.String |
getLemma()
|
java.util.Set<IPointer> |
getPointers()
Returns an immutable set containing all the different types of pointers that this index word has in all synsets containing this word. |
POS |
getPOS()
Returns the associated part of speech for this object. |
int |
getTagSenseCount()
Returns the number of senses of lemma that are ranked according to their frequency of occurrence in semantic concordance texts. |
java.util.List<IWordID> |
getWordIDs()
Returns an immutable list of word id objects, that point to the words for this root form and part of speech combination. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IndexWord(java.lang.String lemma,
POS pos,
int tagSenseCnt,
IWordID... words)
lemma - the lemma of this index wordpos - the part of speech of this index wordtagSenseCnt - the tag sense countwords - the words for this index word
java.lang.NullPointerException - if lemma, pos, or word array is null, or the
word array contains null
java.lang.IllegalArgumentException - if the tag sense count is negative, or the word array is
empty
public IndexWord(java.lang.String lemma,
POS pos,
int tagSenseCnt,
IPointer[] ptrs,
IWordID... words)
lemma - the lemma of this index wordpos - the part of speech of this index wordtagSenseCnt - the tag sense countptrs - an array of pointers that the synsets with lemma have; may be
nullwords - the words for this index word
java.lang.NullPointerException - if lemma, pos, or word array is null, or the
word array or pointer array contains null
java.lang.IllegalArgumentException - if the tag sense count is negative, or the word array is
empty
public IndexWord(IIndexWordID id,
int tagSenseCnt,
IWordID... words)
id - the index word id for this index wordtagSenseCnt - the tag sense countwords - the words for this index word
java.lang.NullPointerException - if lemma, pos, or word array is null, or the
word array contains null
java.lang.IllegalArgumentException - if the tag sense count is negative, or the word array is
empty
public IndexWord(IIndexWordID id,
int tagSenseCnt,
IPointer[] ptrs,
IWordID... words)
id - the index word id for this index wordtagSenseCnt - the tag sense countptrs - an array of pointers for all the synsets of this lemma; may be
null; must not contain nullwords - the words for this index word
java.lang.NullPointerException - if lemma, pos, or word array is null, or the
word array or pointer array contains null
java.lang.IllegalArgumentException - if the tag sense count is negative, or the word array is
empty| Method Detail |
|---|
public java.lang.String getLemma()
getLemma in interface IIndexWordpublic java.util.Set<IPointer> getPointers()
IIndexWord
getPointers in interface IIndexWordpublic java.util.List<IWordID> getWordIDs()
IIndexWordnull or empty, or contain null.
getWordIDs in interface IIndexWordpublic int getTagSenseCount()
IIndexWord
getTagSenseCount in interface IIndexWordpublic IIndexWordID getID()
IItemnull.
getID in interface IItem<IIndexWordID>null ID for this itempublic POS getPOS()
IHasPOSnull.
getPOS in interface IHasPOSnull if none.public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||