Class VocabWord
- java.lang.Object
-
- org.deeplearning4j.models.sequencevectors.sequence.SequenceElement
-
- org.deeplearning4j.models.word2vec.VocabWord
-
- All Implemented Interfaces:
Serializable
,Comparable<SequenceElement>
public class VocabWord extends SequenceElement implements Serializable
Intermediate layers of the neural network- Author:
- Adam Gibson
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Long
affinityId
protected Long
vocabId
-
Fields inherited from class org.deeplearning4j.models.sequencevectors.sequence.SequenceElement
codeLength, codes, elementFrequency, index, init, isLabel, isLocked, points, sequencesCount, special, storageId
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Equals method override should be properly implemented for any extended class, otherwise it will be based on label equalityString
getLabel()
This method should return string representation of this SequenceElement, so it can be used forString
getWord()
int
hashCode()
hashCode method override should be properly implemented for any extended class, otherwise it will be based on label hashCodestatic VocabWord
none()
void
setWord(String word)
String
toJSON()
String
toString()
-
Methods inherited from class org.deeplearning4j.models.sequencevectors.sequence.SequenceElement
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
-
-
-
-
Method Detail
-
none
public static VocabWord none()
-
getLabel
public String getLabel()
Description copied from class:SequenceElement
This method should return string representation of this SequenceElement, so it can be used for- Specified by:
getLabel
in classSequenceElement
- Returns:
-
getWord
public String getWord()
-
setWord
public void setWord(String word)
-
equals
public boolean equals(Object o)
Description copied from class:SequenceElement
Equals method override should be properly implemented for any extended class, otherwise it will be based on label equality- Overrides:
equals
in classSequenceElement
-
hashCode
public int hashCode()
Description copied from class:SequenceElement
hashCode method override should be properly implemented for any extended class, otherwise it will be based on label hashCode- Overrides:
hashCode
in classSequenceElement
- Returns:
- hashCode for this SequenceElement
-
toString
public String toString()
- Overrides:
toString
in classSequenceElement
-
toJSON
public String toJSON()
- Specified by:
toJSON
in classSequenceElement
- Returns:
-
-