public class ParVecIterator extends Object implements org.deeplearning4j.text.sentenceiterator.labelaware.LabelAwareSentenceIterator
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<SectionAnnotation> |
annIt |
protected int |
batchSize |
protected Document |
currentDoc |
protected SectionAnnotation |
currentSection |
protected Iterator<Document> |
docIt |
protected List<Document> |
documents |
protected static org.slf4j.Logger |
log |
protected boolean |
randomize |
protected List<SectionAnnotation> |
sections |
| Constructor and Description |
|---|
ParVecIterator(Collection<Document> docs,
boolean randomize) |
ParVecIterator(Dataset data,
boolean randomize) |
| Modifier and Type | Method and Description |
|---|---|
String |
currentLabel() |
List<String> |
currentLabels() |
void |
finish() |
org.deeplearning4j.text.sentenceiterator.SentencePreProcessor |
getPreProcessor() |
boolean |
hasNext() |
protected boolean |
hasNextDocument() |
protected boolean |
hasNextSection() |
void |
nextDocument() |
String |
nextSentence() |
void |
reset() |
void |
setPreProcessor(org.deeplearning4j.text.sentenceiterator.SentencePreProcessor preProcessor) |
protected static final org.slf4j.Logger log
protected Document currentDoc
protected List<SectionAnnotation> sections
protected Iterator<SectionAnnotation> annIt
protected SectionAnnotation currentSection
protected int batchSize
protected boolean randomize
public ParVecIterator(Dataset data, boolean randomize)
public ParVecIterator(Collection<Document> docs, boolean randomize)
public void reset()
reset in interface org.deeplearning4j.text.sentenceiterator.SentenceIteratorpublic boolean hasNext()
hasNext in interface org.deeplearning4j.text.sentenceiterator.SentenceIteratorprotected boolean hasNextSection()
protected boolean hasNextDocument()
public void nextDocument()
public String nextSentence()
nextSentence in interface org.deeplearning4j.text.sentenceiterator.SentenceIteratorpublic String currentLabel()
currentLabel in interface org.deeplearning4j.text.sentenceiterator.labelaware.LabelAwareSentenceIteratorpublic List<String> currentLabels()
currentLabels in interface org.deeplearning4j.text.sentenceiterator.labelaware.LabelAwareSentenceIteratorpublic void finish()
finish in interface org.deeplearning4j.text.sentenceiterator.SentenceIteratorpublic org.deeplearning4j.text.sentenceiterator.SentencePreProcessor getPreProcessor()
getPreProcessor in interface org.deeplearning4j.text.sentenceiterator.SentenceIteratorpublic void setPreProcessor(org.deeplearning4j.text.sentenceiterator.SentencePreProcessor preProcessor)
setPreProcessor in interface org.deeplearning4j.text.sentenceiterator.SentenceIteratorCopyright © 2019. All rights reserved.