| Modifier and Type | Field and Description |
|---|---|
protected InvertedIndex<VocabWord> |
BaseTextVectorizer.index |
protected VocabCache<VocabWord> |
BagOfWordsVectorizer.Builder.vocabCache |
protected VocabCache<VocabWord> |
BaseTextVectorizer.vocabCache |
protected VocabCache<VocabWord> |
TfidfVectorizer.Builder.vocabCache |
| Modifier and Type | Method and Description |
|---|---|
InvertedIndex<VocabWord> |
TextVectorizer.getIndex()
Inverted index
|
VocabCache<VocabWord> |
TextVectorizer.getVocabCache()
The vocab sorted in descending order
|
| Modifier and Type | Method and Description |
|---|---|
org.nd4j.common.primitives.Pair<VocabWord,float[]> |
WordVectorSerializer.Reader.next() |
org.nd4j.common.primitives.Pair<VocabWord,float[]> |
WordVectorSerializer.BinaryReader.next() |
org.nd4j.common.primitives.Pair<VocabWord,float[]> |
WordVectorSerializer.CSVReader.next() |
static VocabCache<VocabWord> |
WordVectorSerializer.readVocabCache(@NonNull File file)
This method reads vocab cache from provided file.
|
static VocabCache<VocabWord> |
WordVectorSerializer.readVocabCache(@NonNull InputStream stream)
This method reads vocab cache from provided InputStream.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<VocabWord> |
ParagraphVectors.labelsList |
| Modifier and Type | Method and Description |
|---|---|
ParagraphVectors.Builder |
ParagraphVectors.Builder.unknownElement(VocabWord element)
This method allows you to specify SequenceElement that will be used as UNK element, if UNK is used
|
| Modifier and Type | Method and Description |
|---|---|
ParagraphVectors.Builder |
ParagraphVectors.Builder.elementsLearningAlgorithm(ElementsLearningAlgorithm<VocabWord> algorithm) |
String |
ParagraphVectors.predict(List<VocabWord> document)
This method predicts label of the document.
|
Collection<String> |
ParagraphVectors.predictSeveral(List<VocabWord> document,
int limit)
Predict several labels based on the document.
|
ParagraphVectors.Builder |
ParagraphVectors.Builder.sequenceLearningAlgorithm(SequenceLearningAlgorithm<VocabWord> algorithm) |
double |
ParagraphVectors.similarityToLabel(List<VocabWord> document,
String label)
This method returns similarity of the document to specific label, based on mean value
|
| Modifier and Type | Method and Description |
|---|---|
VocabWord |
VocabWordFactory.deserialize(String json)
This method builds object from provided JSON
|
| Modifier and Type | Method and Description |
|---|---|
String |
VocabWordFactory.serialize(VocabWord element)
This method serializaes object into JSON string
|
| Modifier and Type | Field and Description |
|---|---|
protected VocabCache<VocabWord> |
SentenceTransformer.Builder.vocabCache |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Sequence<VocabWord>> |
SentenceTransformer.iterator() |
Sequence<VocabWord> |
SentenceTransformer.transformToSequence(String object) |
| Modifier and Type | Field and Description |
|---|---|
protected BlockingQueue<Future<Sequence<VocabWord>>> |
ParallelTransformerIterator.buffer |
| Modifier and Type | Method and Description |
|---|---|
Sequence<VocabWord> |
ParallelTransformerIterator.next() |
Sequence<VocabWord> |
BasicTransformerIterator.next() |
| Modifier and Type | Method and Description |
|---|---|
static VocabWord |
VocabWord.none() |
| Modifier and Type | Method and Description |
|---|---|
Word2Vec.Builder |
Word2Vec.Builder.unknownElement(VocabWord element)
This method allows you to specify SequenceElement that will be used as UNK element, if UNK is used
|
| Constructor and Description |
|---|
Builder(org.nd4j.linalg.compression.AbstractStorage<Integer> storage,
VocabCache<VocabWord> vocabCache) |
| Modifier and Type | Field and Description |
|---|---|
Map<String,VocabWord> |
InMemoryLookupCache.tokens
Deprecated.
|
Map<String,VocabWord> |
InMemoryLookupCache.vocabs
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
VocabWord |
InMemoryLookupCache.elementAtIndex(int index)
Deprecated.
|
VocabWord |
InMemoryLookupCache.tokenFor(long id)
Deprecated.
|
VocabWord |
InMemoryLookupCache.tokenFor(String word)
Deprecated.
|
VocabWord |
InMemoryLookupCache.wordFor(long id)
Deprecated.
|
VocabWord |
InMemoryLookupCache.wordFor(String word)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,VocabWord> |
InMemoryLookupCache.getTokens()
Deprecated.
|
Map<String,VocabWord> |
InMemoryLookupCache.getVocabs()
Deprecated.
|
Collection<VocabWord> |
InMemoryLookupCache.tokens()
Deprecated.
|
Collection<VocabWord> |
InMemoryLookupCache.vocabWords()
Deprecated.
Returns all of the vocab word nodes
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
InMemoryLookupCache.addToken(VocabWord word)
Deprecated.
|
void |
InMemoryLookupCache.removeElement(VocabWord element)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InMemoryLookupCache.importVocabulary(VocabCache<VocabWord> vocabCache)
Deprecated.
|
void |
InMemoryLookupCache.setTokens(Map<String,VocabWord> tokens)
Deprecated.
|
void |
InMemoryLookupCache.setVocabs(Map<String,VocabWord> vocabs)
Deprecated.
|
Copyright © 2021. All rights reserved.