Tanl Linguistic Pipeline

Tanl::NER::NerPyPipe Struct Reference

A pipe that tags sentences from a Python iterator. More...

#include <PyPipe.h>

Inheritance diagram for Tanl::NER::NerPyPipe:
Tanl::Enumerator< vector< Token * > * > Tanl::Disposable Tanl::Disposable

List of all members.

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.

Detailed Description

A pipe that tags sentences from a Python iterator.


Constructor & Destructor Documentation

Tanl::NER::NerPyPipe::NerPyPipe ( NER ner,
PyObject *  pit 
)

Use a Python enumerator pit as source of sentences.


Member Function Documentation

Sentence * Tanl::NER::NerPyPipe::Current (  )  [virtual]
Returns:
the current element.

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.

Returns:
true if there is another item available.

Implements Tanl::Enumerator< vector< Token * > * >.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.