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

Safe HaskellNone
LanguageHaskell2010

Data.CRF.Chain1.Dataset.Internal

Synopsis

Documentation

newtype Ob Source #

An observation.

Constructors

Ob 

Fields

Instances
Eq Ob Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

(==) :: Ob -> Ob -> Bool #

(/=) :: Ob -> Ob -> Bool #

Ord Ob Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

compare :: Ob -> Ob -> Ordering #

(<) :: Ob -> Ob -> Bool #

(<=) :: Ob -> Ob -> Bool #

(>) :: Ob -> Ob -> Bool #

(>=) :: Ob -> Ob -> Bool #

max :: Ob -> Ob -> Ob #

min :: Ob -> Ob -> Ob #

Read Ob Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Show Ob Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

showsPrec :: Int -> Ob -> ShowS #

show :: Ob -> String #

showList :: [Ob] -> ShowS #

Binary Ob Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

put :: Ob -> Put #

get :: Get Ob #

putList :: [Ob] -> Put #

Unbox Ob Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Vector Vector Ob Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

MVector MVector Ob Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

newtype Vector Ob Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

newtype Vector Ob = V_Ob (Vector Int)
newtype MVector s Ob Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

newtype MVector s Ob = MV_Ob (MVector s Int)

newtype Lb Source #

A label.

Constructors

Lb 

Fields

Instances
Eq Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

(==) :: Lb -> Lb -> Bool #

(/=) :: Lb -> Lb -> Bool #

Num Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

(+) :: Lb -> Lb -> Lb #

(-) :: Lb -> Lb -> Lb #

(*) :: Lb -> Lb -> Lb #

negate :: Lb -> Lb #

abs :: Lb -> Lb #

signum :: Lb -> Lb #

fromInteger :: Integer -> Lb #

Ord Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

compare :: Lb -> Lb -> Ordering #

(<) :: Lb -> Lb -> Bool #

(<=) :: Lb -> Lb -> Bool #

(>) :: Lb -> Lb -> Bool #

(>=) :: Lb -> Lb -> Bool #

max :: Lb -> Lb -> Lb #

min :: Lb -> Lb -> Lb #

Read Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Show Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

showsPrec :: Int -> Lb -> ShowS #

show :: Lb -> String #

showList :: [Lb] -> ShowS #

Ix Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

range :: (Lb, Lb) -> [Lb] #

index :: (Lb, Lb) -> Lb -> Int #

unsafeIndex :: (Lb, Lb) -> Lb -> Int

inRange :: (Lb, Lb) -> Lb -> Bool #

rangeSize :: (Lb, Lb) -> Int #

unsafeRangeSize :: (Lb, Lb) -> Int

Binary Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

put :: Lb -> Put #

get :: Get Lb #

putList :: [Lb] -> Put #

Unbox Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Vector Vector Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

MVector MVector Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

newtype Vector Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

newtype Vector Lb = V_Lb (Vector Int)
newtype MVector s Lb Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

newtype MVector s Lb = MV_Lb (MVector s Int)

newtype X Source #

Simple word represented by a list of its observations.

Constructors

X 

Fields

Instances
Eq X Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

(==) :: X -> X -> Bool #

(/=) :: X -> X -> Bool #

Ord X Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

compare :: X -> X -> Ordering #

(<) :: X -> X -> Bool #

(<=) :: X -> X -> Bool #

(>) :: X -> X -> Bool #

(>=) :: X -> X -> Bool #

max :: X -> X -> X #

min :: X -> X -> X #

Read X Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Show X Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

showsPrec :: Int -> X -> ShowS #

show :: X -> String #

showList :: [X] -> ShowS #

mkX :: [Ob] -> X Source #

X constructor.

unX :: X -> [Ob] Source #

X deconstructor symetric to mkX.

type Xs = Vector X Source #

Sentence of words.

newtype Y Source #

Probability distribution over labels.

Constructors

Y 

Fields

Instances
Eq Y Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

(==) :: Y -> Y -> Bool #

(/=) :: Y -> Y -> Bool #

Ord Y Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

compare :: Y -> Y -> Ordering #

(<) :: Y -> Y -> Bool #

(<=) :: Y -> Y -> Bool #

(>) :: Y -> Y -> Bool #

(>=) :: Y -> Y -> Bool #

max :: Y -> Y -> Y #

min :: Y -> Y -> Y #

Read Y Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Show Y Source # 
Instance details

Defined in Data.CRF.Chain1.Dataset.Internal

Methods

showsPrec :: Int -> Y -> ShowS #

show :: Y -> String #

showList :: [Y] -> ShowS #

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

Y constructor.

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

Y deconstructor symetric to mkY.

type Ys = Vector Y Source #

Sentence of Y (label choices).