public class IndexWord extends Object implements IIndexWord
IIndexWord.| Constructor and Description |
|---|
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(String lemma,
POS pos,
int tagSenseCnt,
IPointer[] ptrs,
IWordID... words)
Constructs a new index word.
|
IndexWord(String lemma,
POS pos,
int tagSenseCnt,
IWordID... words)
Constructs a new index word.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
IIndexWordID |
getID()
Returns the ID object for this item.
|
String |
getLemma() |
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.
|
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() |
String |
toString() |
public IndexWord(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 wordNullPointerException - if lemma, pos, or word array is null, or the
word array contains nullIllegalArgumentException - if the tag sense count is negative, or the word array is
emptypublic IndexWord(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 wordNullPointerException - if lemma, pos, or word array is null, or the
word array or pointer array contains nullIllegalArgumentException - 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 wordNullPointerException - if lemma, pos, or word array is null, or the
word array contains nullIllegalArgumentException - 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 nullwords - the words for this index wordNullPointerException - if lemma, pos, or word array is null, or the
word array or pointer array contains nullIllegalArgumentException - if the tag sense count is negative, or the word array is
emptypublic String getLemma()
getLemma in interface IIndexWordpublic Set<IPointer> getPointers()
IIndexWordgetPointers in interface IIndexWordpublic List<IWordID> getWordIDs()
IIndexWordnull or empty, or contain null.getWordIDs in interface IIndexWordpublic int getTagSenseCount()
IIndexWordgetTagSenseCount in interface IIndexWordpublic IIndexWordID getID()
IItemnull.getID in interface IItem<IIndexWordID>null ID for this itempublic POS getPOS()
IHasPOSnull.Copyright © 2018. All rights reserved.