Modifier and Type | Method and Description |
---|---|
InMemoryLookupTable<T> |
InMemoryLookupTable.Builder.build() |
Modifier and Type | Method and Description |
---|---|
void |
InMemoryLookupTable.consume(InMemoryLookupTable<T> srcTable)
This method consumes weights of a given InMemoryLookupTable
PLEASE NOTE: this method explicitly resets current weights
|
Modifier and Type | Method and Description |
---|---|
static Pair<InMemoryLookupTable,VocabCache> |
WordVectorSerializer.loadTxt(@NonNull File file) |
static Pair<InMemoryLookupTable,VocabCache> |
WordVectorSerializer.loadTxt(@NonNull InputStream inputStream)
Loads an in memory cache from the given input stream (sets syn0 and the vocab).
|
Modifier and Type | Method and Description |
---|---|
static void |
WordVectorSerializer.writeWordVectors(InMemoryLookupTable lookupTable,
InMemoryLookupCache cache,
String path)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Word2Vec |
WordVectorSerializer.fromPair(Pair<InMemoryLookupTable,VocabCache> pair)
Load word vectors from the given pair
|
Modifier and Type | Method and Description |
---|---|
InMemoryLookupTable |
Word2VecParam.getWeights()
Deprecated.
|
InMemoryLookupTable |
Word2VecPerformerVoid.getWeights()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
Word2VecChange.apply(InMemoryLookupTable table)
Deprecated.
Take the changes and apply them
to the given table
|
void |
Word2VecParam.setWeights(InMemoryLookupTable weights)
Deprecated.
|
void |
Word2VecPerformerVoid.setWeights(InMemoryLookupTable weights)
Deprecated.
|
Word2VecParam.Builder |
Word2VecParam.Builder.weights(InMemoryLookupTable weights) |
Constructor and Description |
---|
Word2VecParam(boolean useAdaGrad,
double negative,
int numWords,
INDArray table,
int window,
AtomicLong nextRandom,
double alpha,
double minAlpha,
int totalWords,
int lastChecked,
org.apache.spark.broadcast.Broadcast<AtomicLong> wordCount,
InMemoryLookupTable weights,
int vectorLength,
org.apache.spark.broadcast.Broadcast<double[]> expTable)
Deprecated.
|
Word2VecPerformer(org.apache.spark.SparkConf sc,
org.apache.spark.broadcast.Broadcast<AtomicLong> wordCount,
InMemoryLookupTable weights)
Deprecated.
|
Word2VecPerformerVoid(org.apache.spark.SparkConf sc,
org.apache.spark.broadcast.Broadcast<AtomicLong> wordCount,
InMemoryLookupTable weights)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected InMemoryLookupTable<VocabWord> |
VocabCacheExporter.lookupTable |
Copyright © 2020. All rights reserved.