public class ParagraphVectors extends Word2Vec
Modifier and Type | Class and Description |
---|---|
static class |
ParagraphVectors.Builder |
alpha, batchSize, cache, docIter, g, jobQueue, layerSize, learningRateDecayWords, log, minLearningRate, minWordFrequency, numIterations, rateOfChange, sample, saveVocab, seed, sentenceIter, serialVersionUID, shouldReset, stopWords, tokenizerFactory, topNSize, totalWords, UNK, useAdaGrad, vectorizer, window, workers
Constructor and Description |
---|
ParagraphVectors() |
Modifier and Type | Method and Description |
---|---|
void |
dm(List<VocabWord> sentence,
boolean trainLabels,
boolean trainWords) |
void |
fit()
Train the model
|
accuracy, addWords, buildBinaryTree, buildVocab, getCache, getLayerSize, getSentenceIter, getStopWords, getTokenizerFactory, getWindow, getWordVector, getWordVectorMatrix, getWordVectorMatrixNormalized, hasWord, indexOf, iterate, load, readStopWords, resetWeights, resetWeightsOnSetup, setCache, setLayerSize, setSentenceIter, setTokenizerFactory, setup, similarity, similarWordsInVocabTo, skipGram, trainSentence, wordsNearest, wordsNearest, wordsNearestSum, wordsNearestSum, write
public void fit() throws IOException
Word2Vec
fit
in class Word2Vec
IOException
Copyright © 2014. All rights reserved.