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

Scorer for performing viterbi-based tagging. More...

#include <viterbi_scorer.h>

Public Member Functions

 viterbi_scorer (const crf &model)
 Constructs a new scorer against the given model. More...
 
viterbi_trellis viterbi (const sequence &seq)
 Runs the viterbi algorithm to produce a trellis with back-pointers. More...
 

Private Attributes

crf::scorer scorer_
 the internal scorer used
 
const crfmodel_
 a back-pointer to the model this scorer uses to tag
 

Detailed Description

Scorer for performing viterbi-based tagging.

Constructor & Destructor Documentation

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

Constructs a new scorer against the given model.

Parameters
modelThe model to score with

Member Function Documentation

viterbi_trellis meta::sequence::crf::viterbi_scorer::viterbi ( const sequence seq)

Runs the viterbi algorithm to produce a trellis with back-pointers.

Parameters
seqThe sequence to score
Returns
a trellis with back-pointers indicating the path with the highest score

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