public class VocabCacheExporter extends java.lang.Object implements SparkModelExporter<VocabWord>
Modifier and Type | Field and Description |
---|---|
protected InMemoryLookupTable<VocabWord> |
lookupTable |
protected VocabCache<VocabWord> |
vocabCache |
protected Word2Vec |
word2Vec |
Constructor and Description |
---|
VocabCacheExporter() |
Modifier and Type | Method and Description |
---|---|
void |
export(org.apache.spark.api.java.JavaRDD<ExportContainer<VocabWord>> rdd)
This method will be called at final stage of SequenceVectors training, and JavaRDD being passed as argument will
|
protected VocabCache<VocabWord> vocabCache
protected InMemoryLookupTable<VocabWord> lookupTable
protected Word2Vec word2Vec
public void export(org.apache.spark.api.java.JavaRDD<ExportContainer<VocabWord>> rdd)
SparkModelExporter
export
in interface SparkModelExporter<VocabWord>