reads sequences of data from input stream More...
Public Types | |
typedef std::shared_ptr< DataReader > | ptr |
Public Member Functions | |
TextReader (std::shared_ptr< std::istream > textInput, Vocabulary::ptr vocabulary) | |
int | read (int samplesToRead, int maxInputSequenceLength, int *hInputData, int *hActualInputSequenceLengths) override |
reads the batch of smaples/sequences More... | |
void | reset () override |
Reset the reader position, the data reader is ready to read the data from th ebeginning again after the function returns. More... | |
std::string | getInfo () override |
get the textual description of the component More... | |
Private Attributes | |
std::shared_ptr< std::istream > | mInput |
Vocabulary::ptr | mVocabulary |
reads sequences of data from input stream
writes sequences of data into output stream
|
inherited |
nmtSample::TextReader::TextReader | ( | std::shared_ptr< std::istream > | textInput, |
Vocabulary::ptr | vocabulary | ||
) |
|
overridevirtual |
reads the batch of smaples/sequences
Implements nmtSample::DataReader.
|
overridevirtual |
Reset the reader position, the data reader is ready to read the data from th ebeginning again after the function returns.
Implements nmtSample::DataReader.
|
overridevirtual |
get the textual description of the component
Implements nmtSample::Component.
|
private |
|
private |