hs-gizapp-0.1.0.3: Haskell wrapper around the GIZA++ toolkit.

NLP.GizaPlusPlus

Synopsis

Documentation

data Align Source

Constructors

Align WordPos WordPos 

fromGizaCfg :: GizaCfg -> StringSource

Convert a GizaCfg into a (fragment of a) GIZA++ configuration file (when we call giza, we will append other entries)

alignSource

Arguments

:: GizaCfg 
-> [(String, String)]

aligned sentence pairs

-> IO [Alignment] 

Run GIZA++ and extract a list of word alignments

count :: Ord a => [a] -> [(a, Int)]Source