Tanl Linguistic Pipeline

Tanl::NER::NerEventStream Class Reference

An Enumerator<Event*> extracting features from a sentence. More...

#include <NerEventStream.h>

Inheritance diagram for Tanl::NER::NerEventStream:
Tanl::Classifier::EventStream Tanl::Iterator< Event * >

List of all members.

Public Member Functions

 NerEventStream (Resources &resources)
void analyze (Sentence *sent, int zone=3)
 Set the sentence to analyze.
bool hasNext ()
Classifier::Eventnext ()
 Builds up the list of predicates for the current sentence position.
void reset ()
 Start new document.
void predicted (char const *netag, int position=-1)
 Set predicted tag.

Detailed Description

An Enumerator<Event*> extracting features from a sentence.

It is used for all sentence in a document, since it maintains global information.


Member Function Documentation

void Tanl::NER::NerEventStream::analyze ( Sentence sent,
int  zone = 3 
) [inline]

Set the sentence to analyze.

References Tanl::NER::NerFeatureExtractor::analyze().

Referenced by Tanl::NER::NER::tag(), and Tanl::NER::NER::train().

bool Tanl::NER::NerEventStream::hasNext (  )  [virtual]
Returns:
true if there is another item available

Implements Tanl::Iterator< Event * >.

Referenced by Tanl::NER::NER::tag().

void Tanl::NER::NerEventStream::predicted ( char const *  netag,
int  position = -1 
)

Set predicted tag.

References Tanl::NER::NerFeatureExtractor::classified().

Referenced by Tanl::NER::NER::tag().

void Tanl::NER::NerEventStream::reset (  )  [inline]

The documentation for this class 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.