ModErn Text Analysis
META Enumerates Textual Applications
viterbi_scorer.h
Go to the documentation of this file.
1 
10 #ifndef META_SEQUENCE_CRF_VITERBI_SCORER_H_
11 #define META_SEQUENCE_CRF_VITERBI_SCORER_H_
12 
13 #include "sequence/crf/scorer.h"
14 
15 namespace meta
16 {
17 namespace sequence
18 {
19 
24 {
25  public:
30  viterbi_scorer(const crf& model);
31 
40  viterbi_trellis viterbi(const sequence& seq);
41 
42  private:
46  const crf* model_;
47 };
48 }
49 }
50 #endif
Internal class that holds scoring information for sequences under the current model.
Definition: scorer.h:24
Represents a tagged sequence of observations.
Definition: sequence.h:24
Linear-chain conditional random field for POS tagging and chunking applications.
Definition: crf.h:40
viterbi_trellis viterbi(const sequence &seq)
Runs the viterbi algorithm to produce a trellis with back-pointers.
Definition: viterbi_scorer.cpp:21
Special trellis for the Viterbi algorithm.
Definition: trellis.h:108
The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
Definition: analyzer.h:24
Scorer for performing viterbi-based tagging.
Definition: viterbi_scorer.h:23
viterbi_scorer(const crf &model)
Constructs a new scorer against the given model.
Definition: viterbi_scorer.cpp:13
const crf * model_
a back-pointer to the model this scorer uses to tag
Definition: viterbi_scorer.h:46
crf::scorer scorer_
the internal scorer used
Definition: viterbi_scorer.h:44