public class VocabHolder
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
static VocabHolder |
getInstance() |
java.lang.Iterable<java.util.Map.Entry<VocabWord,org.nd4j.linalg.api.ndarray.INDArray>> |
getSplit(VocabCache<VocabWord> vocabCache) |
org.nd4j.linalg.api.ndarray.INDArray |
getSyn0Vector(java.lang.Integer wordIndex,
VocabCache<VocabWord> vocabCache) |
org.nd4j.linalg.api.ndarray.INDArray |
getSyn1Vector(java.lang.Integer point) |
void |
setSeed(long seed,
int vectorLength) |
public static VocabHolder getInstance()
public void setSeed(long seed, int vectorLength)
public org.nd4j.linalg.api.ndarray.INDArray getSyn0Vector(java.lang.Integer wordIndex, VocabCache<VocabWord> vocabCache)
public org.nd4j.linalg.api.ndarray.INDArray getSyn1Vector(java.lang.Integer point)
public java.lang.Iterable<java.util.Map.Entry<VocabWord,org.nd4j.linalg.api.ndarray.INDArray>> getSplit(VocabCache<VocabWord> vocabCache)