ModErn Text Analysis
META Enumerates Textual Applications
Public Member Functions | Private Attributes | List of all members
meta::sequence::crf::tagger Class Reference

Public Member Functions

 tagger (const crf &model)
 Constructs a tagger against the given model. More...
 
void tag (sequence &seq)
 Tags a sequence. More...
 

Private Attributes

crf::viterbi_scorer scorer_
 the scorer used internally to run viterbi
 
uint64_t num_labels_
 the number of labels
 

Constructor & Destructor Documentation

meta::sequence::crf::tagger::tagger ( const crf model)

Constructs a tagger against the given model.

Parameters
modelThe model to use for the tagging

Member Function Documentation

void meta::sequence::crf::tagger::tag ( sequence seq)

Tags a sequence.

The tags will be filled in on the label field of each observation within the sequence. (You will need to ask your analyzer for what the human-readable tag_t is for each label_id yourself.)

Parameters
seqThe sequence to be tagged.

The documentation for this class was generated from the following files: