public class SectorTaggerIterator extends DocumentSentenceIterator
DocumentSentenceIterator.DocumentBatchAbstractMultiDataSetIterator.Stage| Modifier and Type | Field and Description |
|---|---|
protected EncoderSet |
inputEncoders |
protected boolean |
requireSubsampling |
protected SectorTagger |
tagger |
protected EncoderSet |
targetEncoders |
batchSize, cursor, docIt, documents, log, maxTimeSeriesLength, numExamples, randomize, stage, startTime| Constructor and Description |
|---|
SectorTaggerIterator(AbstractMultiDataSetIterator.Stage stage,
Collection<Document> docs,
SectorTagger tagger,
int batchSize,
boolean randomize,
boolean requireSubsampling) |
SectorTaggerIterator(AbstractMultiDataSetIterator.Stage stage,
Collection<Document> docs,
SectorTagger tagger,
int numExamples,
int batchSize,
boolean randomize,
boolean requireSubsampling) |
SectorTaggerIterator(AbstractMultiDataSetIterator.Stage stage,
Collection<Document> docs,
SectorTagger tagger,
int numExamples,
int maxTimeSeriesLength,
int batchSize,
boolean randomize,
boolean requireSubsampling) |
SectorTaggerIterator(AbstractMultiDataSetIterator.Stage stage,
Dataset dataset,
SectorTagger tagger,
int batchSize,
boolean randomize,
boolean useMultiClassLabels) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported() |
org.nd4j.linalg.api.ndarray.INDArray |
createMask(List<Document> input,
int maxTimeSteps,
Class<? extends Span> timeStepClass) |
protected org.nd4j.linalg.api.ndarray.INDArray |
encodeAnnotation(Encoder enc,
SectionAnnotation ann) |
org.nd4j.linalg.api.ndarray.INDArray |
encodeTarget(List<Document> input,
int maxTimeSteps,
Class<? extends Span> timeStepClass) |
org.nd4j.linalg.dataset.api.MultiDataSet |
generateDataSet(DocumentSentenceIterator.DocumentBatch batch) |
hasNext, hasNextDocument, next, nextBatch, nextDocument, nextDocumentBatch, nextDocumentBatch, resetgetNumExamples, getPreProcessor, next, reachedEnd, reportProgress, resetSupported, setPreProcessorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeprotected EncoderSet inputEncoders
protected EncoderSet targetEncoders
protected SectorTagger tagger
protected boolean requireSubsampling
public SectorTaggerIterator(AbstractMultiDataSetIterator.Stage stage, Dataset dataset, SectorTagger tagger, int batchSize, boolean randomize, boolean useMultiClassLabels)
public SectorTaggerIterator(AbstractMultiDataSetIterator.Stage stage, Collection<Document> docs, SectorTagger tagger, int batchSize, boolean randomize, boolean requireSubsampling)
public SectorTaggerIterator(AbstractMultiDataSetIterator.Stage stage, Collection<Document> docs, SectorTagger tagger, int numExamples, int batchSize, boolean randomize, boolean requireSubsampling)
public SectorTaggerIterator(AbstractMultiDataSetIterator.Stage stage, Collection<Document> docs, SectorTagger tagger, int numExamples, int maxTimeSeriesLength, int batchSize, boolean randomize, boolean requireSubsampling)
public boolean asyncSupported()
asyncSupported in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorasyncSupported in class AbstractMultiDataSetIteratorpublic org.nd4j.linalg.dataset.api.MultiDataSet generateDataSet(DocumentSentenceIterator.DocumentBatch batch)
generateDataSet in class DocumentSentenceIteratorpublic org.nd4j.linalg.api.ndarray.INDArray createMask(List<Document> input, int maxTimeSteps, Class<? extends Span> timeStepClass)
public org.nd4j.linalg.api.ndarray.INDArray encodeTarget(List<Document> input, int maxTimeSteps, Class<? extends Span> timeStepClass)
protected org.nd4j.linalg.api.ndarray.INDArray encodeAnnotation(Encoder enc, SectionAnnotation ann)
Copyright © 2019. All rights reserved.