public class ParagraphVectors extends Word2Vec
Modifier and Type | Class and Description |
---|---|
static class |
ParagraphVectors.Builder |
SequenceVectors.AsyncSequencer
Modifier and Type | Field and Description |
---|---|
protected LabelAwareIterator |
labelAwareIterator |
protected LabelsSource |
labelsSource |
sentenceIter, 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 |
---|
ParagraphVectors() |
Modifier and Type | Method and Description |
---|---|
String |
predict(List<VocabWord> document)
Predict several based on the document.
|
Counter<String> |
predictSeveral(List<VocabWord> document)
Predict several based on the document.
|
setSentenceIter
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 LabelsSource labelsSource
protected LabelAwareIterator labelAwareIterator
Copyright © 2016. All Rights Reserved.