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

Safe HaskellNone

Data.CRF.Chain1.Dataset.Internal

Synopsis

Documentation

newtype Ob Source

An observation.

Constructors

Ob 

Fields

unOb :: Int
 

newtype Lb Source

A label.

Constructors

Lb 

Fields

unLb :: Int
 

newtype X Source

Simple word represented by a list of its observations.

Constructors

X 

Fields

_unX :: Vector Ob
 

Instances

Eq X 
Ord X 
Read X 
Show X 

mkX :: [Ob] -> XSource

X constructor.

unX :: X -> [Ob]Source

X deconstructor symetric to mkX.

type Xs = Vector XSource

Sentence of words.

newtype Y Source

Probability distribution over labels.

Constructors

Y 

Fields

_unY :: Vector (Lb, Double)
 

Instances

Eq Y 
Ord Y 
Read Y 
Show Y 

mkY :: [(Lb, Double)] -> YSource

Y constructor.

unY :: Y -> [(Lb, Double)]Source

Y deconstructor symetric to mkY.

type Ys = Vector YSource

Sentence of Y (label choices).