-
Clear all existence of
apertium*,lt-*,hfstfrom the machine. Usewhichto find them (usually in/usr/local/bin) -
This will install all of the Apertium packages, but we will replace half of them later:
apt install apertium-dev cg3 hfst # Ubuntu -
Go to
lttoolbox-javash autogen.sh make make # Might require running second time if the first one failsYou should be able to run:
> lt-proc-j -v org.apertium.lttoolbox.LTProc version 3.4.2 -
Go to
lttoolboxgit checkout tags/v3.4.2 -b v3.4.2 sh autogen.sh make
You should be able to run:
> lt-proc -v lt-proc version 3.4.2Check with
ls -l /usr/local/bin/ -
Go to
apertium-kirEdit
configure.ac:- PKG_CHECK_MODULES(APERTIUM, apertium >= 3.6.1) + PKG_CHECK_MODULES(APERTIUM, apertium >= 3.5.0) - PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox >= 3.5.1) + PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox >= 3.4.2) - PKG_CHECK_MODULES(CG3, cg3 >= 1.3.0) PKG_CHECK_MODULES(HFST, hfst >= 3.15.0)
sh autogen.sh make # can take 10+ minutes -
In IntelliJ IDEA, create a new project and add
lttoolbox-java/dist/lttoolbox.jaras a dependency. Check the box to copy it tolib -
Copy
apertium-kir/kir.automorf.bintokotlin_test/src/main/resources/
Note
Currectly ther are symbolic links to lttoolbox.jar and kir.automorf.bin everywhere in the project
echo "боюнча" | java -jar lttoolbox.jar lt-proc apertium-kir/kir.automorf.bin