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, isLocked, points, sequencesCount, special, storageId
Constructor and Description |
---|
VocabWord() |
VocabWord(double wordFrequency,
@NonNull String word) |
VocabWord(double wordFrequency,
@NonNull 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, setSequencesCount
public VocabWord(double wordFrequency, @NonNull @NonNull String word)
wordFrequency
- count of the wordpublic VocabWord(double wordFrequency, @NonNull @NonNull String word, long storageId)
public VocabWord()
public static VocabWord none()
public String getLabel()
SequenceElement
getLabel
in class SequenceElement
public String getWord()
public void setWord(String word)
public boolean equals(Object o)
SequenceElement
equals
in class SequenceElement
public int hashCode()
SequenceElement
hashCode
in class SequenceElement
public String toString()
toString
in class SequenceElement
public String toJSON()
toJSON
in class SequenceElement
Copyright © 2021. All rights reserved.