Tanl::POS::HmmTagger Class Reference
List of all members.
Classes |
struct | train_stat |
Public Member Functions |
| HmmTagger (int tag_order, int emission_order) |
| Trainer constructor.
|
| HmmTagger (char const *model_file, char const *morph_file, int max_guessed_tags, double logtheta) |
| Tagger constructor.
|
bool | add_sentence (std::vector< std::string > &words, std::vector< std::string > &tags) |
| Add new training sentence, consisting of the words in words and corresponding tags in tags.
|
void | calculate_probs () |
void | build_suffixtries (int maxfreq, int maxlength) |
void | print_stat () |
void | save (char const *file_name) |
void | tag_sentence (std::vector< std::string > &words, std::vector< std::string > &tags, std::vector< HMM::Observation > *observations=0) |
| Optional arg observations is filled with information on types of words recognized by the tagger: S: Seen *L: LowerCaseSeen *D: SpecialToken *: UnSeen.
|
Constructor & Destructor Documentation
Tanl::POS::HmmTagger::HmmTagger |
( |
int |
tag_order, |
|
|
int |
emission_order | |
|
) |
| | |
Tanl::POS::HmmTagger::HmmTagger |
( |
char const * |
model_file, |
|
|
char const * |
morph_file, |
|
|
int |
max_guessed_tags, |
|
|
double |
logtheta | |
|
) |
| | |
Member Function Documentation
bool Tanl::POS::HmmTagger::add_sentence |
( |
std::vector< std::string > & |
words, |
|
|
std::vector< std::string > & |
tags | |
|
) |
| | |
Add new training sentence, consisting of the words in words and corresponding tags in tags.
- Returns:
true
if successful.
The documentation for this class was generated from the following files: