| DeSR Dependency Parser |
#include <SplitSentenceReader.h>


Classes | |
| struct | BoundarySet |
| Parameters defininig where to split a sentence. More... | |
Public Member Functions | |
| SplitSentenceReader (std::istream *is, Corpus *corpus=0, BoundarySet const *bs=&defaultBS) | |
Creates a new SplitSentenceReader. | |
| bool | MoveNext () |
| Return true if there is another sentence available. | |
| void | reset () |
| Restart. | |
Static Public Attributes | |
| static BoundarySet const | defaultBS |
Definition at line 44 of file SplitSentenceReader.h.
| Tanl::SplitSentenceReader::SplitSentenceReader | ( | std::istream * | is, | |
| Corpus * | corpus = 0, |
|||
| BoundarySet const * | bs = &defaultBS | |||
| ) |
Creates a new SplitSentenceReader.
| is | the stream containing the sentence to read. | |
| lang | the language of the document. |
Definition at line 37 of file SplitSentenceReader.cpp.
| bool Tanl::SplitSentenceReader::MoveNext | ( | ) | [virtual] |
Return true if there is another sentence available.
Implements Tanl::Enumerator< T >.
Definition at line 47 of file SplitSentenceReader.cpp.
References Parser::Tokenizer::Current(), Tanl::SplitSentenceReader::BoundarySet::ends(), and Parser::Tokenizer::MoveNext().