Uses of Class
org.deeplearning4j.text.documentiterator.LabelledDocument
-
-
Uses of LabelledDocument in org.deeplearning4j.models.paragraphvectors
Methods in org.deeplearning4j.models.paragraphvectors with parameters of type LabelledDocument Modifier and Type Method 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 iterationsorg.nd4j.linalg.api.ndarray.INDArray
ParagraphVectors. inferVector(LabelledDocument document, double learningRate, double minLearningRate, int iterations)
This method calculates inferred vector for given documentFuture<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 documentString
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 valueConstructors in org.deeplearning4j.models.paragraphvectors with parameters of type LabelledDocument Constructor 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)
-
Uses of LabelledDocument in org.deeplearning4j.text.documentiterator
Fields in org.deeplearning4j.text.documentiterator with type parameters of type LabelledDocument Modifier and Type Field Description protected AsyncIterator<LabelledDocument>
AsyncLabelAwareIterator. asyncIterator
protected Iterator<LabelledDocument>
SimpleLabelAwareIterator. currentIterator
protected Iterable<LabelledDocument>
SimpleLabelAwareIterator. underlyingIterable
Methods in org.deeplearning4j.text.documentiterator that return LabelledDocument Modifier and Type Method Description LabelledDocument
AsyncLabelAwareIterator. next()
LabelledDocument
BasicLabelAwareIterator. next()
LabelledDocument
FileLabelAwareIterator. next()
LabelledDocument
FilenamesLabelAwareIterator. next()
LabelledDocument
LabelAwareIteratorWrapper. next()
LabelledDocument
SimpleLabelAwareIterator. next()
LabelledDocument
AsyncLabelAwareIterator. nextDocument()
LabelledDocument
BasicLabelAwareIterator. nextDocument()
This method returns next LabelledDocumentLabelledDocument
FileLabelAwareIterator. nextDocument()
LabelledDocument
FilenamesLabelAwareIterator. nextDocument()
LabelledDocument
LabelAwareIterator. nextDocument()
LabelledDocument
LabelAwareIteratorWrapper. nextDocument()
LabelledDocument
SimpleLabelAwareIterator. nextDocument()
This method returns next LabelledDocument from underlying iteratorConstructor parameters in org.deeplearning4j.text.documentiterator with type arguments of type LabelledDocument Constructor Description SimpleLabelAwareIterator(@NonNull Iterable<LabelledDocument> iterable)
Builds LabelAwareIterator instance using Iterable objectSimpleLabelAwareIterator(@NonNull Iterator<LabelledDocument> iterator)
Builds LabelAwareIterator instance using Iterator object PLEASE NOTE: If instance is built using Iterator object, reset() method becomes unavailable -
Uses of LabelledDocument in org.deeplearning4j.text.documentiterator.interoperability
Methods in org.deeplearning4j.text.documentiterator.interoperability that return LabelledDocument Modifier and Type Method Description LabelledDocument
DocumentIteratorConverter. next()
LabelledDocument
DocumentIteratorConverter. nextDocument()
-
Uses of LabelledDocument in org.deeplearning4j.text.sentenceiterator.interoperability
Methods in org.deeplearning4j.text.sentenceiterator.interoperability that return LabelledDocument Modifier and Type Method Description LabelledDocument
SentenceIteratorConverter. next()
LabelledDocument
SentenceIteratorConverter. nextDocument()
-