Modifier and Type | Method and Description |
---|---|
org.nd4j.linalg.api.ndarray.INDArray |
ParagraphVectors.inferVector(LabelledDocument document)
This method calculates inferred vector for given document, with default parameters for learning rate and iterations
|
org.nd4j.linalg.api.ndarray.INDArray |
ParagraphVectors.inferVector(LabelledDocument document,
double learningRate,
double minLearningRate,
int iterations)
This method calculates inferred vector for given document
|
Future<org.nd4j.linalg.primitives.Pair<String,org.nd4j.linalg.api.ndarray.INDArray>> |
ParagraphVectors.inferVectorBatched(LabelledDocument document)
This method implements batched inference, based on Java Future parallelism model.
|
Collection<String> |
ParagraphVectors.nearestLabels(LabelledDocument document,
int topN)
This method returns top N labels nearest to specified document
|
String |
ParagraphVectors.predict(LabelledDocument document)
This method predicts label of the document.
|
Collection<String> |
ParagraphVectors.predictSeveral(LabelledDocument document,
int limit)
Predict several labels based on the document.
|
double |
ParagraphVectors.similarityToLabel(LabelledDocument document,
String label)
This method returns similarity of the document to specific label, based on mean value
|
Constructor and Description |
---|
InferenceCallable(VocabCache<VocabWord> vocabCache,
TokenizerFactory tokenizerFactory,
LabelledDocument document) |
InferenceCallable(VocabCache<VocabWord> vocabCache,
TokenizerFactory tokenizerFactory,
LabelledDocument document,
AtomicLong flag) |
Modifier and Type | Field and Description |
---|---|
protected BlockingQueue<LabelledDocument> |
ParallelTransformerIterator.stringBuffer |
Modifier and Type | Field and Description |
---|---|
protected AsyncIterator<LabelledDocument> |
AsyncLabelAwareIterator.asyncIterator |
protected Iterator<LabelledDocument> |
SimpleLabelAwareIterator.currentIterator |
protected Iterable<LabelledDocument> |
SimpleLabelAwareIterator.underlyingIterable |
Modifier and Type | Method and Description |
---|---|
LabelledDocument |
SimpleLabelAwareIterator.next() |
LabelledDocument |
AsyncLabelAwareIterator.next() |
LabelledDocument |
BasicLabelAwareIterator.next() |
LabelledDocument |
FileLabelAwareIterator.next() |
LabelledDocument |
FilenamesLabelAwareIterator.next() |
LabelledDocument |
LabelAwareIterator.nextDocument() |
LabelledDocument |
SimpleLabelAwareIterator.nextDocument()
This method returns next LabelledDocument from underlying iterator
|
LabelledDocument |
AsyncLabelAwareIterator.nextDocument() |
LabelledDocument |
BasicLabelAwareIterator.nextDocument()
This method returns next LabelledDocument
|
LabelledDocument |
FileLabelAwareIterator.nextDocument() |
LabelledDocument |
FilenamesLabelAwareIterator.nextDocument() |
Constructor and Description |
---|
SimpleLabelAwareIterator(Iterable<LabelledDocument> iterable)
Builds LabelAwareIterator instance using Iterable object
|
SimpleLabelAwareIterator(Iterator<LabelledDocument> iterator)
Builds LabelAwareIterator instance using Iterator object
PLEASE NOTE: If instance is built using Iterator object, reset() method becomes unavailable
|
Modifier and Type | Method and Description |
---|---|
LabelledDocument |
DocumentIteratorConverter.next() |
LabelledDocument |
DocumentIteratorConverter.nextDocument() |
Modifier and Type | Method and Description |
---|---|
LabelledDocument |
SentenceIteratorConverter.next() |
LabelledDocument |
SentenceIteratorConverter.nextDocument() |
Copyright © 2017. All rights reserved.