|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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
emptypublic 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
null
words
- 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
emptypublic 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
emptypublic 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 null
words
- 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
emptyMethod Detail |
---|
public java.lang.String getLemma()
getLemma
in interface IIndexWord
public java.util.Set<IPointer> getPointers()
IIndexWord
getPointers
in interface IIndexWord
public java.util.List<IWordID> getWordIDs()
IIndexWord
null
or empty, or contain null
.
getWordIDs
in interface IIndexWord
public int getTagSenseCount()
IIndexWord
getTagSenseCount
in interface IIndexWord
public IIndexWordID getID()
IItem
null
.
getID
in interface IItem<IIndexWordID>
null
ID for this itempublic POS getPOS()
IHasPOS
null
.
getPOS
in interface IHasPOS
null
if none.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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 |