El dg 26 de 01 de 2014 a les 16:49 +0100, en/na E. D. va escriure:
> Dear all,
>
>
> I am trying to run transfer rules.
>
>
> I tried the following command :
> ~/apertium/apertium-fr-es $ echo "Qu'est-ce que Docefrel ?" | apertium-dstxt
> | lt-proc fr-es.automorf.bin | apertium-tagger -g fr-es.prob |
> apertium-pretransfer | apertium-transfer trules-fr-es.xml trules-fr-es.bin
> fr-es.autobil.bin
>
>
> But there are no 'trules-fr-es.bin' in the directory (neither for language
> pairs en-es, ca-es).
>
> I could run successfully the lexical transfer rules :
>
>
> echo "Qu'est-ce que Docefrel ?" | apertium-destxt | lt-proc
> fr-es.automorf.bin | apertium-tagger -g fr-es.prob | apertium-pretransfer |
> lt-proc -b fr-es.autobil.bin
>
>
> ^Qu'est-ce que<prn><itg><mf><sp>/Qué<prn><itg><mf><sp>$ ^*Docefrel/*Docefrel$
> ^?<sent>/?<sent>$^.<sent>/.<sent>$[][
>
>
>
> Then the 1-level structural transfer :
> ~/apertium/apertium-fr-es $ echo "Qu'est-ce que Docefrel ?" | apertium-destxt
> | lt-proc fr-es.automorf.bin | apertium-tagger -g fr-es.prob |
> apertium-pretransfer | lt-proc -b fr-es.autobil.bin | apertium-transfer -b
> apertium-fr-es.fr-es.t1x fr-es.t1x.bin
>
>
> ^Prnitg<SN><itg><mf><sp>{^qué<prn><itg><mf><sp>$}$
> ^unknown<unknown>{^*Docefrel$}$
> ^punt<sent>{^?<sent>$}$^punt<sent>{^.<sent>$}$[][
>
>
>
> But I am not sure how to run the 2-level and 3-level structural transfer.
> I tried several commands and browsed the documentation unsuccessfully.
>
> Running the morphological generator after the 1-level structural transfert
> doesnt seem to work either :
> ~/apertium/apertium-fr-es $ echo "Qu'est-ce que Docefrel ?" | apertium-destxt
> | lt-proc fr-es.automorf.bin | apertium-tagger -g fr-es.prob |
> apertium-pretransfer | apertium-transfer apertium-fr-es.fr-es.t1x
> fr-es.t1x.bin fr-es.autobil.bin | lt-proc -g fr-es.autogen.bin
>
>
> #Prnitg}$ #unknown\{\^*Docefrel}$ #punt}$#punt}$[][
>
>
> What am I doing wrong ? I would like to go through the whole "detecting
> errors" process described here:
>
>
> http://wiki.apertium.org/wiki/Contributing_to_an_existing_pair#Detecting_errors
>
Hey there, I'm just heading out and will respond more fully when I get
back, but in the meantime, a tip would be to look in the files
modes/*.mode e.g. modes/es-fr-interchunk.mode and see how it is called
there. Let me know if you work it out, and if not I'll reply when get
back.
Fran
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff