public class WordNetIndex
extends java.lang.Object
Constructor and Description |
---|
WordNetIndex(java.lang.String term,
PartOfSpeech part)
Create a WordNetIndex entry for the particular term and part of speech
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileName()
Get the name of the file this index originated from
|
java.util.List<java.lang.Long> |
getOffsets()
Get the offsets into the data file.
|
PartOfSpeech |
getPartOfSpeech()
Get the part of speech for this index entry
|
java.lang.String |
getTerm()
Get the term represented by this index entry
|
java.lang.String |
toString()
Return the string representation of this index entry.
|
public WordNetIndex(java.lang.String term, PartOfSpeech part)
term
- The termpart
- the part of speechpublic java.lang.String getFileName()
public java.util.List<java.lang.Long> getOffsets()
public PartOfSpeech getPartOfSpeech()
public java.lang.String getTerm()
public java.lang.String toString()
toString
in class java.lang.Object