crf-chain1-0.2.2: First-order, linear-chain conditional random fields

Safe HaskellNone




data Feature Source

A Feature is either an observation feature OFeature o x, which models relation between observation o and label x assigned to the same word, or a transition feature TFeature x y (SFeature x for the first position in the sentence), which models relation between two subsequent labels, x (on i-th position) and y (on (i-1)-th positoin).


SFeature !Lb 
TFeature !Lb !Lb 
OFeature !Ob !Lb 

featuresIn :: Xs -> Ys -> [(Feature, LogFloat)]Source

All features with assigned probabilities in given labeled sentence.