Portabilityportable
Stabilityexperimental
Maintainerwww.ailab.tj.chiba-u.jp/~shinot

WFST

Description

A weighted finite state transducer (WFST) module.

Synopsis

Documentation

data Arc

Instances

Eq Arc 
Show Arc 
Storable Arc 

data WFST

Instances

Show WFST 

type Path = Vector Arc

Path is a sequence of arcs whose length is equal to or longer than 1.

type PathList = Vector Arc

PathList is a set of Paths

data StateScores

StateScores is a set of WFST states with their scores.

initArc :: (Real a4, Integral a1, Integral a3, Integral a2, Integral a) => a -> a1 -> a2 -> a3 -> a4 -> Arc

arcSt :: Num b => Arc -> b

arcEd :: Num b => Arc -> b

inLbl :: Num b => Arc -> b

outLbl :: Num b => Arc -> b

arcWght :: Fractional b => Arc -> b

finSt :: WFST -> Int

iniSt :: WFST -> Int

nSt :: WFST -> Int

inspectWFST :: WFST -> Double

stateScoresFromList :: [(Int, Double)] -> StateScores

stateScoresToList :: StateScores -> [(Int, Double)]

pathListTakeWhileScore :: (Double -> Bool) -> PathList -> PathList

wfstFromFile :: String -> IO WFST

readWFST :: ByteString -> WFST

outSymFromFile :: String -> IO (Vector ByteString)