public class Word2Vec extends SequenceVectors<VocabWord>
Modifier and Type | Class and Description |
---|---|
static class |
Word2Vec.Builder |
SequenceVectors.AsyncSequencer
Modifier and Type | Field and Description |
---|---|
protected SentenceIterator |
sentenceIter |
protected TokenizerFactory |
tokenizerFactory |
configuration, elementsLearningAlgorithm, iterator, log, sequenceLearningAlgorithm
batchSize, layerSize, learningRate, learningRateDecayWords, lookupTable, minLearningRate, minWordFrequency, negative, numEpochs, numIterations, resetModel, sampling, stopWords, trainElementsVectors, trainSequenceVectors, UNK, useAdeGrad, vocab, vpTree, window, workers
Constructor and Description |
---|
Word2Vec() |
Modifier and Type | Method and Description |
---|---|
void |
setSentenceIter(SentenceIterator iterator) |
buildVocab, fit, trainSequence
accuracy, getWordVector, getWordVectorMatrix, getWordVectorMatrixNormalized, hasWord, indexOf, lookupTable, setLookupTable, setVocab, similarity, similarWordsInVocabTo, vocab, wordsNearest, wordsNearest, wordsNearest, wordsNearest, wordsNearestSum, wordsNearestSum, wordsNearestSum
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accuracy, getWordVector, getWordVectorMatrix, getWordVectorMatrixNormalized, hasWord, indexOf, lookupTable, similarity, similarWordsInVocabTo, vocab, wordsNearest, wordsNearest, wordsNearest, wordsNearestSum, wordsNearestSum, wordsNearestSum
protected SentenceIterator sentenceIter
protected TokenizerFactory tokenizerFactory
public void setSentenceIter(@NonNull SentenceIterator iterator)
Copyright © 2016. All Rights Reserved.