Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

moot::mootHMMTrainer Class Reference

High-level class to gather training data for a mootHMM or mootCHMM.

#include <mootHMMTrainer.h>

Collaboration diagram for moot::mootHMMTrainer:

Collaboration graph
[legend]
List of all members.

Public Types

Training types

Public Methods

Constructor / destructor
Reset / Clear
Top-level training methods
Mid-level training methods
Warnings / Errors

Public Attributes

Training data
Flags
Pragmatic constants

Protected Attributes

Runtime training state

Member Typedef Documentation

typedef mootNgrams::NgramCount moot::mootHMMTrainer::CountT
 

Type for counts

typedef mootNgrams::Ngram moot::mootHMMTrainer::Ngram
 

Type for an N-gram

typedef set<mootTagString> moot::mootHMMTrainer::TagSet
 

Type for current tag-sets


Constructor & Destructor Documentation

moot::mootHMMTrainer::mootHMMTrainer void    [inline]
 

Default constructor

moot::mootHMMTrainer::~mootHMMTrainer void    [inline]
 

Default destructor


Member Function Documentation

void moot::mootHMMTrainer::carp char *    fmt,
...   
 

Error reporting

void moot::mootHMMTrainer::clear void    [inline]
 

Reset / clear the object.

void moot::mootHMMTrainer::train_bos void   
 

Initialize data for training a new sentence

void moot::mootHMMTrainer::train_eos void   
 

Gather training information for a sentence boundary.

bool moot::mootHMMTrainer::train_from_file const string &    filename
 

Gather training data from a file using mootTaggerLexer

bool moot::mootHMMTrainer::train_from_reader TokenReader   reader
 

Gather training data using TokenIO layer

bool moot::mootHMMTrainer::train_from_stream FILE *    in = stdin,
const string &    srcname = "(unknown)"
[inline]
 

Gather training data from a native text-format C-stream

void moot::mootHMMTrainer::train_init void   
 

Initialize training data

void moot::mootHMMTrainer::train_token const mootToken   curtok
 

Gather training information for a single token, using mootToken interface


Member Data Documentation

mootTagString moot::mootHMMTrainer::eos_tag
 

String indicating end-of-sentence: this is usually __$

bool moot::mootHMMTrainer::last_was_eos [protected]
 

Stupid hack

mootClassfreqs moot::mootHMMTrainer::lcfreqs
 

Raw lexical-class frequency data

mootLexfreqs moot::mootHMMTrainer::lexfreqs
 

Raw lexical frequency data

Ngram moot::mootHMMTrainer::ng [protected]
 

Current n-gram window

mootNgrams moot::mootHMMTrainer::ngrams
 

Raw n-gram frequency data

bool moot::mootHMMTrainer::want_classfreqs
 

Whether to gather lexical-class frequency data

bool moot::mootHMMTrainer::want_lexfreqs
 

Whether to gather lexical frequency data

bool moot::mootHMMTrainer::want_ngrams
 

Whether to gather n-gram frequency data


The documentation for this class was generated from the following file:
Generated on Mon Sep 11 16:10:36 2006 for libmoot by doxygen1.2.18