public class VocabWord extends SequenceElement implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Long |
affinityId |
protected Long |
vocabId |
codeLength, codes, elementFrequency, index, init, isLabel, points, sequencesCount, special, storageId| Constructor and Description |
|---|
VocabWord() |
VocabWord(double wordFrequency,
String word) |
VocabWord(double wordFrequency,
String word,
long storageId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Equals method override should be properly implemented for any extended class, otherwise it will be based on label equality
|
String |
getLabel()
This method should return string representation of this SequenceElement, so it can be used for
|
String |
getWord() |
int |
hashCode()
hashCode method override should be properly implemented for any extended class, otherwise it will be based on label hashCode
|
static VocabWord |
none() |
void |
setWord(String word) |
String |
toJSON() |
String |
toString() |
compareTo, getCodeLength, getCodes, getElementFrequency, getGradient, getHistoricalGradient, getIndex, getLongHash, getPoints, getSequencesCount, getStorageId, increaseElementFrequency, incrementElementFrequency, incrementSequencesCount, incrementSequencesCount, isLabel, mapper, markAsLabel, setCodeLength, setCodes, setElementFrequency, setHistoricalGradient, setIndex, setPoints, setPoints, setSequencesCountpublic VocabWord(double wordFrequency,
@NonNull
String word)
wordFrequency - count of the wordpublic VocabWord(double wordFrequency,
@NonNull
String word,
long storageId)
public VocabWord()
public static VocabWord none()
public String getLabel()
SequenceElementgetLabel in class SequenceElementpublic String getWord()
public void setWord(String word)
public boolean equals(Object o)
SequenceElementequals in class SequenceElementpublic int hashCode()
SequenceElementhashCode in class SequenceElementpublic String toString()
toString in class SequenceElementpublic String toJSON()
toJSON in class SequenceElementCopyright © 2017. All rights reserved.