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

Safe HaskellNone

Data.CRF.Chain1.Feature.Hidden

Description

The module provides feature selection functions which extract hidden features, i.e. all features which can be constructed (by means of cartesian product) on the basis of the set of observations and the set of labels. For example, the list of hidden observation features can be defined as OFeature <$> os <*> xs, where os is a list of all observations and xs is a list of all labels.

You can mix functions defined here with the selection functions from the Data.CRF.Chain1.Feature.Present module.

Synopsis

Documentation

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

Hidden Features of all types which can be constructed based on the dataset.

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

Hidden OFeatures which can be constructed based on the dataset.

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

Hidden TFeatures which can be constructed based on the dataset.

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

Hidden SFeatures which can be constructed based on the dataset.