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.common.primitives.Pair<String,org.nd4j.linalg.api.ndarray.INDArray>> |
ParagraphVectors.inferVectorBatched(@NonNull 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(@NonNull 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(@NonNull VocabCache<VocabWord> vocabCache,
@NonNull TokenizerFactory tokenizerFactory,
@NonNull LabelledDocument document) |
InferenceCallable(@NonNull VocabCache<VocabWord> vocabCache,
@NonNull TokenizerFactory tokenizerFactory,
@NonNull LabelledDocument document,
@NonNull AtomicLong flag) |
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 |
LabelAwareIteratorWrapper.next() |
LabelledDocument |
FileLabelAwareIterator.next() |
LabelledDocument |
FilenamesLabelAwareIterator.next() |
LabelledDocument |
SimpleLabelAwareIterator.next() |
LabelledDocument |
BasicLabelAwareIterator.next() |
LabelledDocument |
AsyncLabelAwareIterator.next() |
LabelledDocument |
LabelAwareIteratorWrapper.nextDocument() |
LabelledDocument |
LabelAwareIterator.nextDocument() |
LabelledDocument |
FileLabelAwareIterator.nextDocument() |
LabelledDocument |
FilenamesLabelAwareIterator.nextDocument() |
LabelledDocument |
SimpleLabelAwareIterator.nextDocument()
This method returns next LabelledDocument from underlying iterator
|
LabelledDocument |
BasicLabelAwareIterator.nextDocument()
This method returns next LabelledDocument
|
LabelledDocument |
AsyncLabelAwareIterator.nextDocument() |
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 © 2022. All rights reserved.