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

Safe HaskellNone
LanguageHaskell98

Data.CRF.Chain1.Constrained.Feature

Synopsis

Documentation

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).

Constructors

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

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

All features with assigned probabilities in given labeled sentence.