Modifier and Type | Field and Description |
---|---|
protected Queue<List<List<VocabWord>>> |
Word2Vec.jobQueue |
Modifier and Type | Method and Description |
---|---|
static VocabWord |
VocabWord.none() |
VocabWord |
VocabWord.read(DataInputStream dos) |
Modifier and Type | Method and Description |
---|---|
int |
VocabWord.compareTo(VocabWord o) |
void |
Word2Vec.iterate(VocabWord w1,
VocabWord w2,
AtomicLong nextRandom,
double alpha)
Train the word vector
on the given words
|
Modifier and Type | Method and Description |
---|---|
protected void |
Word2Vec.addWords(List<VocabWord> sentence,
AtomicLong nextRandom,
List<VocabWord> currMiniBatch) |
protected void |
Word2Vec.addWords(List<VocabWord> sentence,
AtomicLong nextRandom,
List<VocabWord> currMiniBatch) |
void |
ParagraphVectors.dm(List<VocabWord> sentence,
boolean trainLabels,
boolean trainWords) |
void |
Word2Vec.skipGram(int i,
List<VocabWord> sentence,
int b,
AtomicLong nextRandom,
double alpha)
Train via skip gram
|
void |
Word2Vec.trainSentence(List<VocabWord> sentence,
AtomicLong nextRandom,
double alpha)
Train on a list of vocab words
|
Constructor and Description |
---|
Huffman(Collection<VocabWord> words) |
Modifier and Type | Method and Description |
---|---|
List<VocabWord> |
SkipGramMessage.getSentence() |
Modifier and Type | Method and Description |
---|---|
protected void |
VocabActor.processToken(String token,
Set<String> encountered,
List<VocabWord> words,
boolean stem) |
void |
SkipGramMessage.setSentence(List<VocabWord> sentence) |
Constructor and Description |
---|
SkipGramMessage(int i,
int b,
List<VocabWord> sentence) |
Modifier and Type | Field and Description |
---|---|
protected Map<String,VocabWord> |
BaseLookupCache.tokens |
protected Map<String,VocabWord> |
BaseLookupCache.vocabs |
Modifier and Type | Method and Description |
---|---|
VocabWord |
BaseLookupCache.tokenFor(String word) |
VocabWord |
VocabCache.tokenFor(String word)
Returns the token (again not necessarily in the vocab)
for this word
|
VocabWord |
BaseLookupCache.wordFor(String word) |
VocabWord |
VocabCache.wordFor(String word) |
Modifier and Type | Method and Description |
---|---|
Collection<VocabWord> |
BaseLookupCache.tokens() |
Collection<VocabWord> |
VocabCache.tokens()
All of the tokens in the cache, (not necessarily apart of the vocab)
|
Collection<VocabWord> |
BaseLookupCache.vocabWords()
Returns all of the vocab word nodes
|
Collection<VocabWord> |
VocabCache.vocabWords()
Returns all of the vocab word nodes
|
Modifier and Type | Method and Description |
---|---|
void |
BaseLookupCache.addToken(VocabWord word) |
void |
VocabCache.addToken(VocabWord word)
Adds a token
to the cache
|
void |
VocabCache.iterate(VocabWord w1,
VocabWord w2)
Iterate on the given 2 vocab words
|
void |
VocabCache.iterateSample(VocabWord w1,
VocabWord w2,
AtomicLong nextRandom,
double alpha)
Iterate on the given 2 vocab words
|
Modifier and Type | Method and Description |
---|---|
VocabWord |
InMemoryLookupCache.tokenFor(String word) |
VocabWord |
InMemoryLookupCache.wordFor(String word) |
Modifier and Type | Method and Description |
---|---|
Collection<VocabWord> |
InMemoryLookupCache.tokens() |
Collection<VocabWord> |
InMemoryLookupCache.vocabWords()
Returns all of the vocab word nodes
|
Modifier and Type | Method and Description |
---|---|
void |
InMemoryLookupCache.addToken(VocabWord word) |
void |
InMemoryLookupCache.iterate(VocabWord w1,
VocabWord w2)
Iterate on the given 2 vocab words
|
void |
InMemoryLookupCache.iterateSample(VocabWord w1,
VocabWord w2,
AtomicLong nextRandom,
double alpha)
Iterate on the given 2 vocab words
|
Modifier and Type | Method and Description |
---|---|
List<VocabWord> |
LuceneInvertedIndex.document(int index) |
List<VocabWord> |
InvertedIndex.document(int index)
Returns a list of words for a document
|
Iterator<List<VocabWord>> |
LuceneInvertedIndex.miniBatches() |
Iterator<List<VocabWord>> |
InvertedIndex.miniBatches()
Iterates over mini batches
|
List<VocabWord> |
LuceneInvertedIndex.next() |
Modifier and Type | Method and Description |
---|---|
void |
LuceneInvertedIndex.addWordToDoc(int doc,
VocabWord word) |
void |
InvertedIndex.addWordToDoc(int doc,
VocabWord word)
Add word to a document
|
int[] |
LuceneInvertedIndex.documents(VocabWord vocabWord) |
int[] |
InvertedIndex.documents(VocabWord vocabWord)
Returns the list of documents a vocab word is in
|
Modifier and Type | Method and Description |
---|---|
void |
LuceneInvertedIndex.addWordsToDoc(int doc,
List<VocabWord> words) |
void |
InvertedIndex.addWordsToDoc(int doc,
List<VocabWord> words)
Adds words to the given document
|
void |
LuceneInvertedIndex.eachDoc(com.google.common.base.Function<List<VocabWord>,Void> func,
ExecutorService exec) |
void |
InvertedIndex.eachDoc(com.google.common.base.Function<List<VocabWord>,Void> func,
ExecutorService exec)
Iterate over each document
|
Copyright © 2014. All rights reserved.