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

Safe HaskellNone
LanguageHaskell98

Data.CRF.Chain1.Constrained.DAG.Feature

Synopsis

Documentation

featuresIn :: DAG a (X, Y) -> [(Feature, LogFloat)] Source #

Return the list of features, together with the corresponding probabilities (specified in the dataset), in the labeled DAG.

WARNING: this function is unsuitable to compute the potential of a given (X, Y) pair w.r.t. to a CRF model for at least two reasons: * The parameters (second elements of the output list) are not from the model. * More importantly, the function does not take into account the potential labels of the OOV words.

features :: EdgeID -> DAG a (X, Y) -> [(Feature, LogFloat)] Source #

Return the list of features with the corresponding probabilities corresponding to the given DAG edge.