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

Method get_next_example

include/ctranslate2/batch_reader.h:91–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 Example get_next_example() override {
92 Example example;
93
94 std::string line;
95 if (ctranslate2::getline(_stream, line))
96 example.streams.emplace_back(_tokenizer(line));
97
98 return example;
99 }
100
101 private:
102 std::istream& _stream;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected