Tanl Linguistic Pipeline

Tanl::NER::NerPipe Struct Reference

Pipe connected to a sentence enumerator. More...

#include <NER.h>

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

List of all members.

Public Member Functions

 NerPipe (NER &ner, Enumerator< std::vector< Token * > * > &se)
 Create a pipe pulling from a sentence Enumerator se.
void Dispose ()
 This is to be called by SWIG when releasing the object.
bool MoveNext ()
 Advances to the next sentence.
std::vector< Token * > * Current ()

Detailed Description

Pipe connected to a sentence enumerator.


Constructor & Destructor Documentation

Tanl::NER::NerPipe::NerPipe ( NER ner,
Enumerator< std::vector< Token * > * > &  se 
)

Create a pipe pulling from a sentence Enumerator se.


Member Function Documentation

vector< Token * > * Tanl::NER::NerPipe::Current (  )  [virtual]
Returns:
the current tagged sentence.

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

void Tanl::NER::NerPipe::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::NerPipe::MoveNext (  )  [virtual]

Advances to the next sentence.

Returns:
true if there is another item available.

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

References Tanl::Enumerator< T >::Current(), Tanl::Enumerator< T >::MoveNext(), and Tanl::NER::NerEventStream::reset().


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.