Tanl Linguistic Pipeline |
Tokenizer pipe connected to a stream. More...
#include <Tokenizer.h>
Public Member Functions | |
TokenizerPipe (Tokenizer &tokenizer, std::istream &is) | |
Create a pipe pulling from a stream is . | |
TokenizerPipe (Tokenizer &tokenizer, Enumerator< std::string * > &se) | |
Create a pipe pulling from a string Enumerator se . | |
bool | MoveNext () |
Advances to the next element of the collection. | |
Token * | Current () |
Public Attributes | |
int | len |
sentence length (except tags) | |
Protected Attributes | |
quex::Token | token |
quex::quex_tokenizer | qlex |
Context * | currContext |
Tokenizer pipe connected to a stream.
Tanl::TokenizerPipe::TokenizerPipe | ( | Tokenizer & | tokenizer, | |
std::istream & | is | |||
) |
Create a pipe pulling from a stream is
.
Tanl::TokenizerPipe::TokenizerPipe | ( | Tokenizer & | tokenizer, | |
Enumerator< std::string * > & | se | |||
) |
Create a pipe pulling from a string Enumerator se
.
Token * Tanl::TokenizerPipe::Current | ( | ) | [virtual] |
bool Tanl::TokenizerPipe::MoveNext | ( | ) | [virtual] |
Advances to the next element of the collection.
Implements Tanl::Enumerator< Token * >.
Reimplemented in Tanl::TokenizerPipeEnum, and Tanl::TokenizerPipePython.
References len.