Description
Nowadays the default behavior of cabal is to not install libraries globally by default, so these instructions in the readme no longer work:
To get started
Compile the software. You need
- the Haskell compiler GHC, https://www.haskell.org/ghc/
- the PGF library from gf-core, http://www.grammaticalframework.org/
With these in place, you can simply type
$ make
You should make the executable gfud available on your path; otherwise you can call it with
$ ./gfud
In the same directory.
The executable gfud has several modes and options.
Calling it without any arguments prints out a help message.
gfud
typically reads and writes standard IO, and file arguments are used only when many files of different kinds have to be read.
For most commands, the input is UD trees in the CoNLL format, which can be read from files in two ways:
$ gfud ... <file.conllu
$ cat file.conllu | gfud ...
We could either change the recommendation to
- Install the PGF library using
cabal old-install
- Install the PGF library using
cabal install --lib
- Probably easiest: Skip the step of first installing the PGF library and recomend building
gf-ud
usingcabal
orstack
.
On a side-note, these instructions also mention gfud
instead of the new name gf-ud