-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
52 lines (47 loc) · 3.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# deprecated
extractbilingualvocab:
@cat en-cni.dix.part1
@perl convertFsttoLttoolbox.pl --file ../AshMorph/vroot.prq.foma --file ../AshMorph/oroot.prq.foma --file ../AshMorph/neg.prq.foma
@cat en-cni.dix.part2
@perl convertFsttoLttoolbox.pl --file ../AshMorph/nroot.prq.foma --label "@section:noun@" --rootlabel "NRoot" --section "Noun"
@cat en-cni.dix.part3
enbilingualvocab:
@cp en-cni.base.dix en-cni.dix
@perl convertFsttoLttoolbox.pl --file ../AshMorph/prnposs.prq.foma --label "@section:prnposs@" --rootlabel "PrnPoss" --section "Possessive_pronoun" > file1
@sed -i -e '/POINTERPRNPOSS/r file1' en-cni.dix
@perl convertFsttoLttoolbox.pl --file ../AshMorph/vroot.prq.foma --file ../AshMorph/oroot.prq.foma --file ../AshMorph/neg.prq.foma > file1
@sed -i -e '/POINTERVROOT/r file1' en-cni.dix
@perl convertFsttoLttoolbox.pl --file ../AshMorph/nroot.prq.foma --file ../AshMorph/vroot.prq.foma --file ../AshMorph/aroot.prq.foma --file ../AshMorph/nroot.es.foma --label "@section:noun@" --rootlabel "NRoot" --section "Noun" > file1
@sed -i -e '/POINTERNROOT/r file1' en-cni.dix
@perl convertFsttoLttoolbox.pl --file ../AshMorph/prnpers.prq.foma --label "@section:prnpers@" --rootlabel "PrnPers" --section "Personal_pronoun" > file1
@sed -i -e '/POINTERPRNPERS/r file1' en-cni.dix
# @perl httpclient.pl -s -c /db/HNTAshaninka/BilingualMorphology en-cni.dix
bilingualvocab:
@cp en-cni.base.dix es-cni.dix
@perl convertFsttoLttoolbox.pl --file ../AshMorph/vroot.prq.foma --label "@section:verb@" --rootlabel "VRoot" --section "Verb" --language "ES" > file1
@sed -i -e '/POINTERVROOT/r file1' es-cni.dix
@perl convertFsttoLttoolbox.pl --file ../AshMorph/nroot.prq.foma --label "@section:noun@" --rootlabel "NRoot" --section "Noun" --language "ES" > file1
@sed -i -e '/POINTERNROOT/r file1' es-cni.dix
@perl convertFsttoLttoolbox.pl --file ../AshMorph/nroot.prq.foma --label "@section:noun@" --rootlabel "NRoot" --section "Noun" --language "PT" > pt-cni.dix
@perl convertFsttoLttoolbox.pl --file ../AshMorph/nroot.prq.foma --label "@section:noun@" --rootlabel "NRoot" --section "Noun" --language "QU" > qu-cni.dix
compile:
@sudo cp freeling/en/locucions.dat /usr/local/share/freeling/en/locucions.dat
@sudo cp freeling/en/dicc.src /usr/local/share/freeling/en/dicc.src
@rm -f es-cni.bin
@lt-comp lr es-cni.dix es-cni.bin
@echo "pedregal" | lt-proc es-cni.bin
@echo "cascajal" | lt-proc es-cni.bin
@echo "cosho" | lt-proc es-cni.bin
@rm -f en-cni.bin
@lt-comp lr en-cni.dix en-cni.bin
@echo "grass" | lt-proc en-cni.bin
@echo "herb" | lt-proc en-cni.bin
@echo "tree" | lt-proc en-cni.bin
@echo "fat" | lt-proc en-cni.bin
@echo "stick" | lt-proc en-cni.bin
@echo "to_hunt" | lt-proc en-cni.bin
@echo "but" | lt-proc en-cni.bin
@lt-comp lr prq.monodix prq-monodix.bin
@cp /usr/local/share/freeling/pt/locucions.dat freeling/pt
# (cd /home/hinantin/ashaninka/AshaninkaMT && make enbilingualvocab; git commit -a -m "Adding changes"; git push -u origin master; lt-comp lr en-cni.dix en-cni.bin)
# (cd /home/hinantin/ashaninka/AshaninkaMT && bash translate.sh "machine translation")