Package cc.mallet.topics
Class WordEmbeddingCallable
- java.lang.Object
-
- cc.mallet.topics.WordEmbeddingCallable
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Long>
public class WordEmbeddingCallable extends java.lang.Object implements java.util.concurrent.Callable<java.lang.Long>
-
-
Field Summary
Fields Modifier and Type Field Description InstanceList
instances
WordEmbeddings
model
int
numSamples
java.util.Random
random
boolean
shouldRun
long
wordsSoFar
-
Constructor Summary
Constructors Constructor Description WordEmbeddingCallable(WordEmbeddings model, InstanceList instances, int numSamples, int numThreads, int threadID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
call()
double
getMeanError()
void
setOrdering(int strategy)
void
setRandomSeed(int seed)
-
-
-
Field Detail
-
model
public WordEmbeddings model
-
instances
public InstanceList instances
-
numSamples
public int numSamples
-
shouldRun
public boolean shouldRun
-
random
public java.util.Random random
-
wordsSoFar
public long wordsSoFar
-
-
Constructor Detail
-
WordEmbeddingCallable
public WordEmbeddingCallable(WordEmbeddings model, InstanceList instances, int numSamples, int numThreads, int threadID)
-
-