public class RnnTextEmbeddingInstanceIterator extends AbstractTextEmbeddingIterator
Assumes the instance with the following attributes:
wordVectors
Constructor and Description |
---|
RnnTextEmbeddingInstanceIterator() |
Modifier and Type | Method and Description |
---|---|
org.nd4j.linalg.dataset.api.iterator.DataSetIterator |
getDataSetIterator(weka.core.Instances data,
int seed,
int batchSize)
Returns the actual iterator.
|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
java.lang.String |
globalInfo() |
void |
initialize()
Initialize the iterator
|
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
validate(weka.core.Instances data)
Validates the input dataset
|
getSentenceProvider, getStopwords, getTokenizerFactory, getTokenPreProcess, getTruncateLength, getWordVectorLocation, getWordVectors, initWordVectors, setStopwords, setTokenizerFactory, setTokenPreProcess, setTruncateLength, setWordVectorLocation, setWordVectors
getDataSetIterator, getTrainBatchSize, setTrainBatchSize
public void validate(weka.core.Instances data) throws InvalidInputDataException
AbstractInstanceIterator
validate
in class AbstractInstanceIterator
data
- the input datasetInvalidInputDataException
- if validation is unsuccessfulpublic org.nd4j.linalg.dataset.api.iterator.DataSetIterator getDataSetIterator(weka.core.Instances data, int seed, int batchSize) throws InvalidInputDataException, java.io.IOException
getDataSetIterator
in class AbstractInstanceIterator
data
- the dataset to useseed
- the seed for the random number generatorbatchSize
- the batch size to useInvalidInputDataException
java.io.IOException
public void initialize()
AbstractInstanceIterator
initialize
in class AbstractTextEmbeddingIterator
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class AbstractInstanceIterator
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class AbstractInstanceIterator
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class AbstractInstanceIterator
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String globalInfo()