public class Word2Vec extends Object implements scala.Serializable, Logging
Constructor and Description |
---|
Word2Vec() |
Modifier and Type | Method and Description |
---|---|
<S extends Iterable<String>> |
fit(JavaRDD<S> dataset) |
<S extends scala.collection.Iterable<String>> |
fit(RDD<S> dataset) |
Word2Vec |
setLearningRate(double learningRate) |
Word2Vec |
setMinCount(int minCount) |
Word2Vec |
setNumIterations(int numIterations) |
Word2Vec |
setNumPartitions(int numPartitions) |
Word2Vec |
setSeed(long seed) |
Word2Vec |
setVectorSize(int vectorSize) |
Word2Vec |
setWindowSize(int window) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public Word2Vec setVectorSize(int vectorSize)
public Word2Vec setLearningRate(double learningRate)
public Word2Vec setNumPartitions(int numPartitions)
public Word2Vec setNumIterations(int numIterations)
public Word2Vec setSeed(long seed)
public Word2Vec setWindowSize(int window)
public Word2Vec setMinCount(int minCount)
public <S extends scala.collection.Iterable<String>> Word2VecModel fit(RDD<S> dataset)
public <S extends Iterable<String>> Word2VecModel fit(JavaRDD<S> dataset)