Add mgiza

Julien LepillerTue Mar 06 23:38:26+0100 2018

6d3a102

Add mgiza

more/packages/moses.scm

2525
  #:use-module (guix download)
2626
  #:use-module (guix git-download)
2727
  #:use-module (guix utils)
28+
  #:use-module (guix build-system cmake)
2829
  #:use-module (guix build-system gnu))
2930
3031
(define-public cmph

6869
                "13wvxizbvzrklswf1s8751r0vqd71xfn55biy76ifni2pg6pcwrm"))))
6970
    (build-system gnu-build-system)
7071
    (arguments
71-
     `(#:tests? #f
72+
     `(#:tests? #f; Tests run during build
7273
       #:make-flags
7374
       `(,(string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
7475
         ,(string-append "--with-cmph=" (assoc-ref %build-inputs "cmph"))

104105
each sentence in one language is matched with its corresponding translated
105106
sentence in the other language.")
106107
    (license license:asl2.0)))
108+
109+
(define-public mgiza
110+
  (package
111+
    (name "mgiza")
112+
    (version "0")
113+
    (source (origin
114+
              (method git-fetch)
115+
              (uri (git-reference
116+
                     (url "https://github.com/moses-smt/mgiza")
117+
                     (commit "d643960de98565d208114780ba8025799208afa7")))
118+
              (sha256
119+
               (base32
120+
                "1zvs18fxdw9frhlxlrmq3pjzm9b9chcjvppmn2yljqdxpzmqimc6"))))
121+
    (build-system cmake-build-system)
122+
    (arguments
123+
     `(#:tests? #f; no tests
124+
       #:phases
125+
       (modify-phases %standard-phases
126+
         (add-before 'configure 'chdir
127+
           (lambda _
128+
             (chdir "mgizapp")
129+
             #t)))))
130+
    (inputs
131+
     `(("boost" ,boost)))
132+
    (home-page "https://github.com/moses-smt/mgiza")
133+
    (synopsis "Word alignement tool")
134+
    (description "Mgiza is a word alignment tool based on the famous GIZA++,
135+
extended to support multi-threading, resume training and incremental training.")
136+
    (license license:gpl2+)))