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

Safe HaskellNone

Data.CRF.Chain2.Pair.Codec

Synopsis

Documentation

type CodecData a b c = (AtomCodec a, AtomCodec (Maybe b), AtomCodec (Maybe c))Source

A codec. The first component is used to encode observations of type a, the second one is used to encode labels of type b, third -- labels of type c from the third level.

obMax :: CodecData a b c -> ObSource

The maximum internal observation included in the codec.

lb1Max :: CodecData a b c -> Lb1Source

The maximum internal label included in the codec.

lb2Max :: CodecData a b c -> Lb2Source

The maximum internal label included in the codec.

codec :: (Ord a, Ord b, Ord c) => Codec a (b, c) (CodecData a b c) Ob LbSource