Tanl Linguistic Pipeline |
A pipe that tags sentences from a Python iterator. More...
#include <PyPipe.h>
Public Member Functions | |
MorphPyPipe (MorphSplitter &splitter, PyObject *pit) | |
Use a Python enumerator pit as source of sentences. | |
bool | MoveNext () |
Advances to the next element of the collection. | |
std::vector< Token * > * | Current () |
A pipe that tags sentences from a Python iterator.
Tanl::MorphPyPipe::MorphPyPipe | ( | MorphSplitter & | splitter, | |
PyObject * | pit | |||
) |
Use a Python enumerator pit
as source of sentences.
Sentence * Tanl::MorphPyPipe::Current | ( | ) | [virtual] |
Implements Tanl::Enumerator< std::vector< Token * > * >.
bool Tanl::MorphPyPipe::MoveNext | ( | ) | [virtual] |
Advances to the next element of the collection.
Implements Tanl::Enumerator< std::vector< Token * > * >.