-
Notifications
You must be signed in to change notification settings - Fork 4
MtJaenAce
1. Download the latest version of ACE [http://sweaglesw.org/linguistics/ace/download]. (As of today (2014-09-01), if you are using Mac, you want to download [ace-0.9.18-osx.tar.gz]. If you are using a lunux machine, you want to download [ace-0.9.19-x86-64.tar.gz].) Note that ACE does not work on Windows. Plus, you want to use a 64 bit machine for the running the precompiled ACE binary.
2. Download the lasted ERG data file from the above ACE repository. Note that you have to take notice of version. For example, if your ACE version is 0.9.19, you want to download [erg-1212-x86-64-0.9.19.dat.bz2]. Extract the data file of ERG into the same directory as the ACE binary.
3. Add your the ACE directory on the regular PATH variable (~/.bashrc)
1. Compile the data file of Jacy. For example,
$ cd $LOGONROOT/dfki/jacy
$ ace -g ace/config.tdl -G jacy.dat
2. Compile the data file of Jaen. For instance,
$ cd $LOGONROOT/uio/tm/jaen
$ ace -g ace/config.tdl -G jaen.dat
Note that you have to compile one of these or both, when you make some changes.
1. In your ~/.bashrc (or whatever), you can add the following lines. (The suffix [+m] means "with messages".)
alias jaen+ace="ace -g $LOGONROOT/dfki/jacy/jacy.dat 2>/dev/null | ace -g $LOGONROOT/uio/tm/jaen/jaen.dat 2>/dev/null | ace -g YOUR_ACE_FOLDER/erg-1212-x86-64-0.9.19.dat -e 2>/dev/null"
alias jaen+ace+m="ace -g $LOGONROOT/dfki/jacy/jacy.dat | ace -g $LOGONROOT/uio/tm/jaen/jaen.dat | ace -g YOUR_ACE_FOLDER/erg-1212-x86-64-0.9.19.dat -e"
2. After logout and login again, now you run jaen+ace.
$ echo " 犬 が 猫 を 食べる " | jaen+ace
The dog eats the cat.
The dog eats the cats.
The dog eats a cat.
A dog eats the cat.
A dog eats the cats.
A dog eats a cat.
The dogs eat the cat.
The dogs eat the cats.
The dogs eat a cat.
Dogs eat the cat.
The dog eats cats.
Dogs eat the cats.
Dogs eat a cat.
A dog eats cats.
The dogs eat cats.
Dogs eat cats.
Home | Forum | Discussions | Events