El 2019-10-17 09:20, kiran srigiri escribió:
I have bootstrapped and complied both English and Hausa language for
inter-translation. It will be great help if anyone could install and
use to find any issues.
Link to my GitHub repository -
https://github.com/Kiransrigiri/apertium-eng-hau
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff
$ bash autogen.sh --prefix=/home/fran/local
--with-lang1=/home/fran/source/apertium/languages/apertium-eng
--with-lang2=../apertium-hau
Makefile.am: error: required file './NEWS' not found
Makefile.am: error: required file './AUTHORS' not found
Makefile.am: error: required file './ChangeLog' not found
autoreconf: automake failed with exit status: 1
$ touch NEWS AUTHORS ChangeLog
$ bash autogen.sh --prefix=/home/fran/local
--with-lang1=/home/fran/source/apertium/languages/apertium-eng
--with-lang2=../apertium-hau
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for APERTIUM... yes
checking for cg-comp... /usr/bin/cg-comp
checking for cg-proc... /usr/bin/cg-proc
checking for lrx-comp... /home/fran/local/bin/lrx-comp
checking for lrx-proc... /home/fran/local/bin/lrx-proc
checking for gzcat... no
checking for zcat... /bin/zcat
Using apertium-eng from
/home/fran/source/apertium/languages/apertium-eng
Using apertium-hau from ../apertium-hau
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
$ make
/bin/mkdir -p .deps
touch .deps/.d
cp /home/fran/source/apertium/languages/apertium-eng/eng.automorf.bin
.deps/eng.automorf.bin
apertium-validate-dictionary apertium-eng-hau.eng-hau.dix
lt-comp lr apertium-eng-hau.eng-hau.dix eng-hau.autobil.bin
main@standard 9 17
lt-trim .deps/eng.automorf.bin eng-hau.autobil.bin eng-hau.automorf.bin
contractions@standard 434 571
Warning: section had no final state after trimming! Skipping it ...
final@inconditional 110 2975
main@standard 69404 132865
cp /home/fran/source/apertium/languages/apertium-eng/eng.prob
eng-hau.prob
cg-comp
/home/fran/source/apertium/languages/apertium-eng/apertium-eng.eng.rlx
eng-hau.rlx.bin
Sections: 1, Rules: 203, Sets: 85, Tags: 119
1 rules cannot be skipped by index.
lrx-comp apertium-eng-hau.eng-hau.lrx eng-hau.autolex.bin
1: 28@29
cp ../apertium-hau/hau.autogen.bin eng-hau.autogen.bin
cp ../apertium-hau/hau.autopgen.bin eng-hau.autopgen.bin
apertium-validate-transfer apertium-eng-hau.eng-hau.t1x
apertium-preprocess-transfer apertium-eng-hau.eng-hau.t1x
eng-hau.t1x.bin
apertium-validate-interchunk apertium-eng-hau.eng-hau.t2x
apertium-preprocess-transfer apertium-eng-hau.eng-hau.t2x
eng-hau.t2x.bin
apertium-validate-postchunk apertium-eng-hau.eng-hau.t3x
apertium-preprocess-transfer apertium-eng-hau.eng-hau.t3x
eng-hau.t3x.bin
cp ../apertium-hau/hau.automorf.bin .deps/hau.automorf.bin
apertium-validate-dictionary apertium-eng-hau.eng-hau.dix
lt-comp rl apertium-eng-hau.eng-hau.dix hau-eng.autobil.bin
main@standard 9 17
lt-trim .deps/hau.automorf.bin hau-eng.autobil.bin hau-eng.automorf.bin
Error: empty set of final states
Makefile:754: recipe for target 'hau-eng.automorf.bin' failed
make: *** [hau-eng.automorf.bin] Error 1
.....................
<section id="main" type="standard">
<!-- Define entries within <e> here. -->
- <e><p><l>house<s n="n"/></l><r>casa<s n="n"/><s
n="f"/></r></p></e>
+ <e><p><l>river<s n="n"/></l><r>gulbi<s n="n"/><s
n="m"/></r></p></e>
.....................
Looks like you're missing some actual Hausa bidix entries. Add:
<e><p><l>river<s n="n"/></l><r>gulbi<s n="n"/><s
n="m"/></r></p></e>
Also, it looks like the tagger mode is not using -x:
- <program name="apertium-tagger -g $2">
+ <program name="apertium-tagger -x -g $2">
<file name="hau-eng.prob"/>
</program>
.....................
You'll also want to update apertium-hau.
Regards,
Fran
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff