| Tanl Linguistic Pipeline |
An Enumerator<Event*> extracting features from a sentence. More...
#include <NerEventStream.h>
Public Member Functions | |
| NerEventStream (Resources &resources) | |
| void | analyze (Sentence *sent, int zone=3) |
| Set the sentence to analyze. | |
| bool | hasNext () |
| Classifier::Event * | next () |
| 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. | |
An Enumerator<Event*> extracting features from a sentence.
It is used for all sentence in a document, since it maintains global information.
| 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] |
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] |
Start new document.
References Tanl::NER::NerFeatureExtractor::reset().
Referenced by Tanl::NER::NerPipe::MoveNext(), and Tanl::NER::NER::train().