Modifier and Type | Method and Description |
---|---|
VocabWord |
VocabWord.getLeft() |
VocabWord |
VocabWord.getRight() |
static VocabWord |
VocabWord.none() |
VocabWord |
VocabWord.read(DataInputStream dos) |
Modifier and Type | Method and Description |
---|---|
TreeSet<VocabWord> |
Word2Vec.analogy(String word0,
String word1,
String word2) |
Set<VocabWord> |
Word2Vec.distance(String word) |
List<VocabWord> |
Word2Vec.trainSentence(InputStream is)
Train on the given sentence returning a list of vocab words
|
List<VocabWord> |
Word2Vec.trainSentence(String sentence)
Train on the given sentence returning a list of vocab words
|
Modifier and Type | Method and Description |
---|---|
int |
VocabWord.compareTo(VocabWord o) |
void |
Word2Vec.iterate(VocabWord w1,
VocabWord w2)
Train the word vector
on the given words
|
void |
VocabWord.setLeft(VocabWord left) |
void |
VocabWord.setParent(VocabWord parent) |
void |
VocabWord.setRight(VocabWord right) |
Modifier and Type | Method and Description |
---|---|
void |
Word2Vec.skipGram(int i,
List<VocabWord> sentence,
int b)
Train via skip gram
|
void |
Word2Vec.trainSentence(List<VocabWord> sentence,
int doc)
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) |
void |
SkipGramMessage.setSentence(List<VocabWord> sentence) |
Constructor and Description |
---|
SkipGramMessage(int i,
int b,
List<VocabWord> sentence) |
Modifier and Type | Method and Description |
---|---|
VocabWord |
VocabCache.tokenFor(String word)
Returns the token (again not necessarily in the vocab)
for this word
|
VocabWord |
VocabCache.wordFor(String word) |
Modifier and Type | Method and Description |
---|---|
Collection<VocabWord> |
VocabCache.tokens()
All of the tokens in the cache, (not necessarily apart of the vocab)
|
Collection<VocabWord> |
VocabCache.vocabWords()
Returns all of the vocab word nodes
|
Modifier and Type | Method and Description |
---|---|
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
|
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
|
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
|
List<VocabWord> |
DefaultInvertedIndex.document(int index) |
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
|
void |
DefaultInvertedIndex.addWordToDoc(int doc,
VocabWord word) |
List<Integer> |
LuceneInvertedIndex.documents(VocabWord vocabWord) |
List<Integer> |
InvertedIndex.documents(VocabWord vocabWord)
Returns the list of documents a vocab word is in
|
List<Integer> |
DefaultInvertedIndex.documents(VocabWord vocabWord) |
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 |
DefaultInvertedIndex.addWordsToDoc(int doc,
List<VocabWord> words) |
Copyright © 2014. All rights reserved.