public class Glove extends Object implements Serializable
| Constructor and Description |
|---|
Glove(boolean symmetric,
int windowSize,
int iterations) |
Glove(String tokenizerFactoryClazz,
boolean symmetric,
int windowSize,
int iterations) |
| Modifier and Type | Method and Description |
|---|---|
Pair<VocabCache<VocabWord>,GloveWeightLookupTable> |
train(org.apache.spark.api.java.JavaRDD<String> rdd)
Train on the corpus
|
public Glove(String tokenizerFactoryClazz, boolean symmetric, int windowSize, int iterations)
tokenizerFactoryClazz - the fully qualified class name of the tokenizersymmetric - whether the co occurrence counts should be symmetricwindowSize - the window size for co occurrenceiterations - the number of iterationspublic Glove(boolean symmetric,
int windowSize,
int iterations)
symmetric - whether the co occurrence counts should be symmetricwindowSize - the window size for co occurrenceiterations - the number of iterationspublic Pair<VocabCache<VocabWord>,GloveWeightLookupTable> train(org.apache.spark.api.java.JavaRDD<String> rdd) throws Exception
rdd - the rdd to trainExceptionCopyright © 2016. All Rights Reserved.