| Modifier and Type | Method and Description |
|---|---|
CnnSentenceDataSetIterator.Builder |
CnnSentenceDataSetIterator.Builder.sentenceProvider(LabelAwareSentenceIterator iterator,
List<String> labels)
Specify how the (labelled) sentences / documents should be provided
|
| Modifier and Type | Method and Description |
|---|---|
ParagraphVectors.Builder |
ParagraphVectors.Builder.iterate(LabelAwareSentenceIterator iterator)
This method used to feed LabelAwareSentenceIterator, that contains training corpus, into ParagraphVectors
|
| Constructor and Description |
|---|
Word2VecDataSetIterator(Word2Vec vec,
LabelAwareSentenceIterator iter,
List<String> labels)
Initializes this iterator with homogenization and adding labels
and a batch size of 10
|
Word2VecDataSetIterator(Word2Vec vec,
LabelAwareSentenceIterator iter,
List<String> labels,
int batch)
Initializes this iterator with homogenization and adding labels
|
Word2VecDataSetIterator(Word2Vec vec,
LabelAwareSentenceIterator iter,
List<String> labels,
int batch,
boolean homogenization,
boolean addLabels)
Allows for customization of all of the params of the iterator
|
| Constructor and Description |
|---|
Builder(LabelAwareSentenceIterator iterator)
We assume that each sentence in this iterator is separate document/paragraph.
|
| Modifier and Type | Class and Description |
|---|---|
class |
LabelAwareFileSentenceIterator
Label aware sentence iterator
|
class |
LabelAwareListSentenceIterator
Iterates over an input stream with the textual format:
label delimiter text
|
Copyright © 2017. All rights reserved.