hs-gizapp 0.1.0.1 → 0.1.0.2
raw patch · 3 files changed
+6/−10 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- NLP.GizaPlusPlus.Parsec: alignChar :: CharParser () Char
+ NLP.GizaPlusPlus: instance Read Align
+ NLP.GizaPlusPlus: instance Read WordPos
Files
- NLP/GizaPlusPlus.hs +2/−2
- NLP/GizaPlusPlus/Parsec.hs +1/−6
- hs-gizapp.cabal +3/−2
NLP/GizaPlusPlus.hs view
@@ -15,8 +15,8 @@ import NLP.GizaPlusPlus.Parsec (alignFile) -data WordPos = WordPos String Int deriving (Show,Eq,Ord)-data Align = Align WordPos WordPos deriving (Show,Eq,Ord)+data WordPos = WordPos String Int deriving (Read,Show,Eq,Ord)+data Align = Align WordPos WordPos deriving (Read,Show,Eq,Ord) -- ---------------------------------------------------------------------- -- GIZA++ configuration
NLP/GizaPlusPlus/Parsec.hs view
@@ -30,12 +30,7 @@ rbrack = string "})" alignWord :: CharParser () String-alignWord = many1 alignChar--alignChar :: CharParser () Char-alignChar =- noneOf " \n\t}"- <|> (try $ do { c <- char '}'; notFollowedBy (char ')'); return c })+alignWord = many1 (noneOf " \n\t") justSpace :: CharParser () Char justSpace = char ' '
hs-gizapp.cabal view
@@ -1,5 +1,5 @@ name: hs-gizapp-version: 0.1.0.1+version: 0.1.0.2 synopsis: Haskell wrapper around the GIZA++ toolkit. description: This provides a simple wrapper around the GIZA++ toolkit, which is used for Statistical Machine Translation for@@ -18,7 +18,7 @@ license: BSD3 license-file: LICENSE author: Eric Kow-maintainer: <E.Y.Kow@brighton.ac.uk>+maintainer: Eric Kow <E.Y.Kow@brighton.ac.uk> build-Depends: base >= 3 && < 4, containers >= 0.1 && < 0.3, directory >= 1.0 && < 1.1,@@ -30,3 +30,4 @@ cabal-version: >= 1.2 Exposed-modules: NLP.GizaPlusPlus+ , NLP.GizaPlusPlus.Parsec