public class DictionaryEntry
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
int |
getDocumentCount()
Provides the number of documents this token appears in
|
int |
getFrequencyCount()
Provides the frequency count for this entry
|
double |
getIDF()
Provides the IDF of this token
|
int |
getPosition()
Provides the position of the token in this dictionary.
|
Token |
getToken()
Provides the token
|
void |
setPosition(int position)
Sets the position of the token in this dictionary.
|
public int getPosition()
int
value of this token's most recent positionpublic void setPosition(int position)
position
- the int
value of the new positionpublic Token getToken()
public int getFrequencyCount()
int
value of the number of times this token has been seenpublic int getDocumentCount()
int
value of the number of documents this token has been seen inpublic double getIDF()
double
value of the inverse document frequency (IDF) of this token