> Hi!
>
>  I develop the transfer rule file for Urdu - hindi pair
> The first command run fine
>
> $ apertium-preprocess-transfer apertium-ur-hi.ur-hi.t1x ur-hi.t1x.bin
>
>  and generate a
>
> ur-hi.t1x.bin file.
>
> But the other commands are not giving any output
> echo "ہے " | lt-proc ur-hi.automorf.bin
>
> echo "ہے" | lt-proc ur-hi.automorf.bin | \
>
>   gawk 'BEGIN{RS="$"; FS="/";}{nf=split($1,COMPONENTS,"^"); for(i = 1;
> i<nf; i++) printf COMPONENTS[i]; if($2 != "") printf("^%s$",$2);}'
>
> echo "ہے" | lt-proc ur-hi.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-ur-hi.ur-hi.t1x ur-hi.t1x.bin
> ur-hi.autobil.bin
>
> as we have not any Pos tagger and using Gawk command. So,  are these
> commands
>  used to all the language pairs like used for sh - en? Please tell me
> what wrong I am doing while running them
>   Thanks
> Sanam Ali

Here is an example that outputs something:

$ echo "&#1575;&#1740;&#1705; &#1583;&#1575;&#1574;&#1585;&#1577;
&#1575;&#1604;&#1605;&#1593;&#1575;&#1585;&#1601;&#1548; &#1580;&#1608;
&#1729;&#1585; &#1705;&#1608;&#1574;&#1740; &#1605;&#1585;&#1578;&#1576;
&#1705;&#1585;&#1587;&#1705;&#1578;&#1575; &#1729;&#1746;&#1748;" |
lt-proc ur-hi.automorf.bin
^&#1575;&#1740;&#1705;/&#1575;&#1740;&#1705;<n><m><sg><nom>/&#1575;&#1740;&#1705;<n><m><sg><obl>/&#1575;&#1740;&#1705;<n><m><sg><voc>/&#1575;&#1740;&#1705;<n><m><pl><nom>$
^&#1583;&#1575;&#1574;&#1585;/*&#1583;&#1575;&#1574;&#1585;$&#1577;
^&#1575;&#1604;&#1605;&#1593;&#1575;&#1585;&#1601;/*&#1575;&#1604;&#1605;&#1593;&#1575;&#1585;&#1601;$&#1548;
^&#1580;&#1608;/*&#1580;&#1608;$ ^&#1729;&#1585;/*&#1729;&#1585;$
^&#1705;&#1608;&#1574;&#1740;/*&#1705;&#1608;&#1574;&#1740;$
^&#1605;&#1585;&#1578;&#1576;/*&#1605;&#1585;&#1578;&#1576;$
^&#1705;&#1585;&#1587;&#1705;&#1578;&#1575;/*&#1705;&#1585;&#1587;&#1705;&#1578;&#1575;$
^&#1729;&#1746;/*&#1729;&#1746;$&#1748;

Seems like the word you are writing is not in the dictionary:

$ echo "&#1729;&#1746; " | lt-proc ur-hi.automorf.bin
^&#1729;&#1746;/*&#1729;&#1746;$

Add it and try again!

Regards,

Fran


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to