Tanl Linguistic Pipeline |
Read a text split into space-separated tokens, one sentence per line, and iterate over it returning one sentence at time. More...
#include <SentenceReader.h>
Public Member Functions | |
TokenSentenceReader (std::istream *is, Corpus *corpus=0) | |
Creates a new TokenSentenceReader . | |
bool | MoveNext () |
Return true if there is another sentence available. |
Read a text split into space-separated tokens, one sentence per line, and iterate over it returning one sentence at time.
Tanl::TokenSentenceReader::TokenSentenceReader | ( | std::istream * | is, | |
Corpus * | corpus = 0 | |||
) |
Creates a new TokenSentenceReader
.
filename | the file containing the annotated sentences |