| Tanl Linguistic Pipeline |
A pipe that parses sentences from a Python iterator. More...
#include <PyPipe.h>
Public Member Functions | |
| ParserPipePython (Parser &parser, PyObject *pit) | |
Use a Python enumerator pit as source of sentences. | |
| bool | MoveNext () |
| Advances to the next element of the collection. | |
| Sentence * | Current () |
| void | Dispose () |
| This is to be called by SWIG when releasing the object. | |
A pipe that parses sentences from a Python iterator.
| Parser::ParserPipePython::ParserPipePython | ( | Parser & | parser, | |
| PyObject * | pit | |||
| ) |
Use a Python enumerator pit as source of sentences.
| Sentence * Parser::ParserPipePython::Current | ( | ) | [virtual] |
Implements Tanl::Enumerator< Sentence * >.
References Tanl::Token::attributes, Tanl::Token::form, Tanl::Token::links, and Parser::Parser::parse().
| void Parser::ParserPipePython::Dispose | ( | ) | [virtual] |
This is to be called by SWIG when releasing the object.
Release the parser object and then call destructor.
Reimplemented from Tanl::Disposable.
| bool Parser::ParserPipePython::MoveNext | ( | ) | [virtual] |
Advances to the next element of the collection.
Implements Tanl::Enumerator< Sentence * >.