public class CnnSentenceDataSetIterator
extends org.deeplearning4j.iterator.CnnSentenceDataSetIterator
CnnSentenceDataSetIterator.next(int)
method to support
regression with numeric values.
Since CnnSentenceDataSetIterator
only has private access to
its fields and most of its methods, it is necessary to make use of
- Utils.getFieldValue(Object, String)
, - Utils.setFieldValue(Object, String, Object)
- Utils.invokeMethod(Object, String, Object...)
until field/method visibility is changed upstream.
Modifier and Type | Class and Description |
---|---|
static class |
CnnSentenceDataSetIterator.Builder
CnnSentenceDataSetIterator.Builder implementation that supports stopwords.
|
Modifier and Type | Method and Description |
---|---|
int |
getCursor() |
org.nd4j.linalg.dataset.api.DataSetPreProcessor |
getDataSetPreProcessor() |
int |
getMaxSentenceLength() |
int |
getNumClasses() |
org.deeplearning4j.iterator.LabeledSentenceProvider |
getSentenceProvider() |
weka.core.stopwords.AbstractStopwords |
getStopwords() |
org.nd4j.linalg.api.ndarray.INDArray |
getUnknown() |
org.deeplearning4j.iterator.CnnSentenceDataSetIterator.UnknownWordHandling |
getUnknownWordHandling() |
static java.lang.String |
getUnknownWordSentinel() |
boolean |
getUseNormalizedWordVectors() |
org.deeplearning4j.models.embeddings.wordvectors.WordVectors |
getWordVectors() |
int |
getWordVectorSize() |
boolean |
hasNext() |
boolean |
isSentencesAlongHeight() |
org.nd4j.linalg.dataset.DataSet |
next(int num) |
void |
setCursor(int value) |
void |
setUnknown(org.nd4j.linalg.api.ndarray.INDArray value) |
void |
setUnknownWordHandling(org.deeplearning4j.iterator.CnnSentenceDataSetIterator.UnknownWordHandling value) |
void |
setUseNormalizedWordVectors(boolean value) |
void |
setWordVectors(org.deeplearning4j.models.embeddings.wordvectors.WordVectors value) |
asyncSupported, batch, getLabelClassMap, getLabels, getPreProcessor, inputColumns, loadSingleSentence, next, remove, reset, resetSupported, setPreProcessor, totalOutcomes
public static java.lang.String getUnknownWordSentinel()
public boolean hasNext()
hasNext
in interface java.util.Iterator<org.nd4j.linalg.dataset.DataSet>
hasNext
in class org.deeplearning4j.iterator.CnnSentenceDataSetIterator
public org.nd4j.linalg.dataset.DataSet next(int num)
next
in interface org.nd4j.linalg.dataset.api.iterator.DataSetIterator
next
in class org.deeplearning4j.iterator.CnnSentenceDataSetIterator
public org.deeplearning4j.iterator.LabeledSentenceProvider getSentenceProvider()
public int getMaxSentenceLength()
public boolean isSentencesAlongHeight()
public org.nd4j.linalg.dataset.api.DataSetPreProcessor getDataSetPreProcessor()
public int getWordVectorSize()
public int getNumClasses()
public boolean getUseNormalizedWordVectors()
public void setUseNormalizedWordVectors(boolean value)
public int getCursor()
public void setCursor(int value)
public org.nd4j.linalg.api.ndarray.INDArray getUnknown()
public void setUnknown(org.nd4j.linalg.api.ndarray.INDArray value)
public org.deeplearning4j.models.embeddings.wordvectors.WordVectors getWordVectors()
public void setWordVectors(org.deeplearning4j.models.embeddings.wordvectors.WordVectors value)
public org.deeplearning4j.iterator.CnnSentenceDataSetIterator.UnknownWordHandling getUnknownWordHandling()
public void setUnknownWordHandling(org.deeplearning4j.iterator.CnnSentenceDataSetIterator.UnknownWordHandling value)
public weka.core.stopwords.AbstractStopwords getStopwords()