|
FreeLing
3.0
|
The class POS_tagger is just an abstract class generalizing a PoS tagger. More...
#include <tagger.h>


Public Member Functions | |
| POS_tagger (bool, unsigned int) | |
| Create an instance of the class, initializing options member. | |
| virtual | ~POS_tagger () |
| virtual void | annotate (sentence &)=0 |
| Do actual disambiguation. | |
| void | analyze (sentence &) |
| analyze given sentence | |
| void | analyze (std::list< sentence > &) |
| analyze given sentences | |
| sentence | analyze (const sentence &) |
| analyze sentence, return analyzed copy | |
| std::list< sentence > | analyze (const std::list< sentence > &) |
| analyze sentences, return analyzed copy | |
Protected Member Functions | |
| void | retokenize (sentence &) |
| Look for words whose selected tag has retokenizing rules, and retokenize them appropriately. | |
| void | force_select (sentence &) |
| Look for words with remaining ambiguity and force the selection of only one Pos tag. | |
Protected Attributes | |
| bool | retok |
| unsigned int | force |
The class POS_tagger is just an abstract class generalizing a PoS tagger.
| POS_tagger::POS_tagger | ( | bool | r, |
| unsigned int | f | ||
| ) |
Create an instance of the class, initializing options member.
Since tagger is an abstract class, this is called always from child constructors.
| virtual POS_tagger::~POS_tagger | ( | ) | [inline, virtual] |
| void POS_tagger::analyze | ( | sentence & | s | ) | [virtual] |
analyze given sentence
Disambiguate all words in given sentence.
Implements processor.
References annotate(), ERROR_CRASH, force, FORCE_RETOK, force_select(), FORCE_TAGGER, retok, and retokenize().
Referenced by analyze().
| void POS_tagger::analyze | ( | std::list< sentence > & | ls | ) |
| sentence POS_tagger::analyze | ( | const sentence & | s | ) |
| std::list< sentence > POS_tagger::analyze | ( | const std::list< sentence > & | ls | ) |
| virtual void POS_tagger::annotate | ( | sentence & | ) | [pure virtual] |
| void POS_tagger::force_select | ( | sentence & | se | ) | [protected] |
Look for words with remaining ambiguity and force the selection of only one Pos tag.
References TRACE, and TRACE_SENTENCE.
Referenced by analyze().
| void POS_tagger::retokenize | ( | sentence & | se | ) | [protected] |
Look for words whose selected tag has retokenizing rules, and retokenize them appropriately.
References util::int2wstring(), sentence::rebuild_word_index(), TRACE, and TRACE_SENTENCE.
Referenced by analyze().
unsigned int POS_tagger::force [protected] |
Referenced by analyze().
bool POS_tagger::retok [protected] |
Referenced by analyze().
1.7.6.1