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 LongaffinityIdprotected LongvocabId-
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 booleanequals(Object o)Equals method override should be properly implemented for any extended class, otherwise it will be based on label equalityStringgetLabel()This method should return string representation of this SequenceElement, so it can be used forStringgetWord()inthashCode()hashCode method override should be properly implemented for any extended class, otherwise it will be based on label hashCodestatic VocabWordnone()voidsetWord(String word)StringtoJSON()StringtoString()-
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:SequenceElementThis method should return string representation of this SequenceElement, so it can be used for- Specified by:
getLabelin classSequenceElement- Returns:
-
getWord
public String getWord()
-
setWord
public void setWord(String word)
-
equals
public boolean equals(Object o)
Description copied from class:SequenceElementEquals method override should be properly implemented for any extended class, otherwise it will be based on label equality- Overrides:
equalsin classSequenceElement
-
hashCode
public int hashCode()
Description copied from class:SequenceElementhashCode method override should be properly implemented for any extended class, otherwise it will be based on label hashCode- Overrides:
hashCodein classSequenceElement- Returns:
- hashCode for this SequenceElement
-
toString
public String toString()
- Overrides:
toStringin classSequenceElement
-
toJSON
public String toJSON()
- Specified by:
toJSONin classSequenceElement- Returns:
-
-