MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / TextLineReader

Method TextLineReader

include/ctranslate2/batch_reader.h:85–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 class TextLineReader : public BatchReader {
84 public:
85 TextLineReader(std::istream& stream, Tokenizer& tokenizer)
86 : _stream(stream)
87 , _tokenizer(tokenizer)
88 {
89 }
90
91 Example get_next_example() override {
92 Example example;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected