crf-chain2-tiers-0.4.0: Second-order, tiered, constrained, linear conditional random fields

Safe HaskellNone
LanguageHaskell98

Data.CRF.Chain2.Tiers.Dataset.Internal

Contents

Description

Internal core data types.

Synopsis

Documentation

Input element (word)

type Xs = Vector X Source #

Sentence of words.

Output element (choice)

type Ys = Vector Y Source #

Sentence of Y (label choices).

Indexing

lbOn :: Xs -> Int -> CbIx -> Maybe Cb Source #

Potential label at the given position and at the given index. Return Nothing for positions outside the domain.

lbNum :: Xs -> Int -> Int Source #

Number of potential labels at the given position of the sentence. Function extended to indices outside the positions' domain.

lbIxs :: Xs -> Int -> [CbIx] Source #

List of label indices at the given position. Function extended to indices outside the positions' domain.