Hi everyone,
I am having some difficulties in performing the add a new language pair howto.
Firstly, I really didn't understand the part in the HOW_TO where it is
told that
"The astute reader will have realised by this point that we can't just
translate vidim gramofoni because it is not a grammatically correct
sentence in Serbo-Croatian. The correct sentence would be vidim
gramofone, as the noun takes the accusative case. We'll have to add
that form too, no need to add the case information for now though, we
just add it as another option for plural. So, just copy the 'e' block
for 'i' and change the 'i' to 'e' there.. So, just copy the 'e' block
for 'i' and change the 'i' to 'e' there."
I didn't get the part where it is told to change the 'i' into 'e'. I
mean which 'i' and 'e' are being referred here ?
Also I am having trouble when I try to compile the bilingual and
Monolingual dictionaries. Here is the code that I wrote. I am not
getting the response from the system (as in main xx yy) when
compiling. Moreover when I run further some steps, I find the
following error.
aishraj@ubuntu:~$ echo "vidim" | lt-proc sh-en.automorf.bin | \
> gawk 'BEGIN{RS="$"; FS="/";}{nf=split($1,COMPONENTS,"^"); for(i = 1; i<nf;
> i++) printf COMPONENTS[i]; if($2 != "") printf("^%s$",$2);}' | \
> apertium-transfer apertium-sh-en.sh-en.t1x sh-en.t1x.bin sh-en.autobil.bin
Error: can't stat file 'sh-en.t1x.bin'.
aishraj@ubuntu:~$
aishraj@ubuntu:~$ echo "vidim" | lt-proc sh-en.automorf.bin | \
> gawk 'BEGIN{RS="$"; FS="/";}{nf=split($1,COMPONENTS,"^"); for(i = 1; i<nf;
> i++) printf COMPONENTS[i]; if($2 != "") printf("^%s$",$2);}' | \
> apertium-transfer apertium-sh-en.sh-en.t1x sh-en.t1x.bin sh-en.autobil.bin
> | \
> lt-proc -g sh-en.autogen.bin
Error: can't stat file 'sh-en.t1x.bin'.
aishraj@ubuntu:~$
Here is my apertium-sh-en.sh.dix file
<?xml version="1.0" encoding="UTF-8"?>
<dictionary>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
<sdef n="vblex"/>
<sdef n="p1"/>
<sdef n="pri"/>
</sdefs>
<pardefs>
<pardef n="gramofon__n">
<e><p><l/><r><s n="n"/><s n="sg"/></r></p></e>
<e><p><l>i</l><r><s n="n"/><s n="pl"/></r></p></e>
</pardef>
<pardef n="vid/eti__vblex">
<e><p><l>im</l><r>eti<s n="vblex"/><s n="pri"/><s n="p1"/><s
n="sg"/></r></p></e>
<e lm="videti"><i>vid</i><par n="vid/eti__vblex"/></e>
</pardef>
</pardefs>
<section id="main" type="standard">
<e lm="gramofon"><i>gramofon</i><par n="gramofon__n"/></e>
</section>
</dictionary>
Also here is my apertium-sh-en.en.dix
<?xml version="1.0" encoding="UTF-8"?>
<dictionary>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
<sdef n="vblex"/>
<sdef n="p1"/>
<sdef n="pri"/>
</sdefs>
<pardefs>
<pardef n="s/ee__vblex">
<e><p><l>ee</l><r>ee<s n="vblex"/><s n="pri"/></r></p></e>
<e lm="see"><i>s</i><par n="s/ee__vblex"/></e>
</pardef>
<pardef n="gramofone__n">
<e><p><l/><r><s n="n"/><s n="sg"/></r></p></e>
<e><p><l>s</l><r><s n="n"/><s n="pl"/></r></p></e>
</pardef>
</pardefs>
<section id="main" type="standard">
<e lm="gramofone"><i>gramofone</i><par n="gramofone__n"/></e>
</section>
</dictionary>
Also here is my apertium-sh-en.sh-en.dix file
<?xml version="1.0" encoding="UTF-8"?>
<dictionary>
<alphabet/>
<sdefs>
<sdef n="n"/>
<sdef n="sg"/>
<sdef n="pl"/>
<sdef n="vblex"/>
<sdef n="p1"/>
<sdef n="pri"/>
</sdefs>
<section id="main" type="standard">
<e><p><l>gramofon<s n="n"/></l><r>gramophone<s n="n"/></r></p></e>
<e><p><l>videti<s n="vblex"/></l><r>see<s n="vblex"/></r></p></e>
</section>
</dictionary>
Here is the file for my transfer rules:
<?xml version="1.0" encoding="UTF-8"?>
<transfer>
<section-def-cats>
<def-cat n="nom">
<cat-item tags="n.*"/>
</def-cat>
</section-def-cats>
<section-def-attrs>
<def-attr n="nbr">
<attr-item tags="sg"/>
<attr-item tags="pl"/>
</def-attr>
<def-attr n="a_nom">
<attr-item tags="n"/>
</def-attr>
</section-def-attrs>
<section-def-vars>
<def-var n="number"/>
</section-def-vars>
<section-rules>
<rule>
<pattern>
<pattern-item n="nom"/>
</pattern>
<action>
<out>
<lu>
<clip pos="1" side="tl" part="lem"/>
<clip pos="1" side="tl" part="a_nom"/>
<clip pos="1" side="tl" part="nbr"/>
</lu>
</out>
</action>
</rule>
</section-rules>
</transfer>
(PS I tried to post my code on codepad and ask my doubts the IRC
Channel but I was told that it was 6am in Europe. ;)
Hence, I am asking my doubts here.
I hope this won't be much of a trouble)
I would be really very thankful to anyone who would spare some of
their valuable time to clarify my doubts, and help guide me.
--
Aishraj Dahal
Bachelor's of Technology
Computer Science and Engineering
National Institute of Technology Warangal
India
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff