public abstract class DocumentSentenceIterator extends AbstractMultiDataSetIterator
| Modifier and Type | Class and Description |
|---|---|
class |
DocumentSentenceIterator.DocumentBatch |
AbstractMultiDataSetIterator.StagebatchSize, cursor, docIt, documents, log, maxTimeSeriesLength, numExamples, randomize, stage, startTime| Constructor and Description |
|---|
DocumentSentenceIterator(AbstractMultiDataSetIterator.Stage stage,
Collection<Document> docs,
int batchSize,
boolean randomize) |
DocumentSentenceIterator(AbstractMultiDataSetIterator.Stage stage,
Collection<Document> docs,
int numExamples,
int maxTimeSeriesLength,
int batchSize,
boolean randomize) |
DocumentSentenceIterator(AbstractMultiDataSetIterator.Stage stage,
Dataset dataset,
int batchSize,
boolean randomize) |
| Modifier and Type | Method and Description |
|---|---|
abstract org.nd4j.linalg.dataset.api.MultiDataSet |
generateDataSet(DocumentSentenceIterator.DocumentBatch batch) |
boolean |
hasNext() |
protected boolean |
hasNextDocument() |
org.nd4j.linalg.dataset.api.MultiDataSet |
next(int num) |
protected DocumentSentenceIterator.DocumentBatch |
nextBatch(int num)
Returns the next batch of documents.
|
protected Document |
nextDocument() |
DocumentSentenceIterator.DocumentBatch |
nextDocumentBatch() |
DocumentSentenceIterator.DocumentBatch |
nextDocumentBatch(int num) |
void |
reset() |
asyncSupported, getNumExamples, getPreProcessor, next, reachedEnd, reportProgress, resetSupported, setPreProcessorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic DocumentSentenceIterator(AbstractMultiDataSetIterator.Stage stage, Dataset dataset, int batchSize, boolean randomize)
public DocumentSentenceIterator(AbstractMultiDataSetIterator.Stage stage, Collection<Document> docs, int batchSize, boolean randomize)
public DocumentSentenceIterator(AbstractMultiDataSetIterator.Stage stage, Collection<Document> docs, int numExamples, int maxTimeSeriesLength, int batchSize, boolean randomize)
public void reset()
protected boolean hasNextDocument()
public boolean hasNext()
protected Document nextDocument()
protected DocumentSentenceIterator.DocumentBatch nextBatch(int num)
num - - batch sizepublic org.nd4j.linalg.dataset.api.MultiDataSet next(int num)
public DocumentSentenceIterator.DocumentBatch nextDocumentBatch()
public DocumentSentenceIterator.DocumentBatch nextDocumentBatch(int num)
public abstract org.nd4j.linalg.dataset.api.MultiDataSet generateDataSet(DocumentSentenceIterator.DocumentBatch batch)
Copyright © 2019. All rights reserved.