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