crf-chain2-generic-0.1.1: Second-order, generic, constrained, linear conditional random fields

Safe HaskellNone

Data.CRF.Chain2.Generic.Inference

Synopsis

Documentation

tag :: Ord f => Model o t f -> Xs o t -> [t]Source

probs :: Ord f => Model o t f -> Xs o t -> [[LogFloat]]Source

marginals :: Ord f => Model o t f -> Xs o t -> [[LogFloat]]Source

expectedFeatures :: Ord f => Model o t f -> Xs o t -> [(f, LogFloat)]Source

accuracy :: (Eq t, Ord f) => Model o t f -> [(Xs o t, Ys t)] -> DoubleSource

Compute the accuracy of the model with respect to the labeled dataset.

zx :: Ord f => Model o t f -> Xs o t -> LogFloatSource

zx' :: Ord f => Model o t f -> Xs o t -> LogFloatSource