problem in cg-proc

25 views
Skip to first unread message

Hector

unread,
Mar 20, 2012, 2:18:30 AM3/20/12
to constrain...@googlegroups.com
Hi all,
just noticed this mismatch between vislcg3 and cg-proc:

http://apertium.codepad.org/4FOLAAFx

Note that the output of "vislcg3 --trace -g disamb_en.rlx" is the
expected one, but the output of "cg-proc disamb_en.bin" still has the
wrong reading for "talk<n><sg>".
Is this a bug in cg-proc or am I doing something wrong here?

Best,
--
 Héctor

Francis Tyers

unread,
Mar 20, 2012, 5:00:29 AM3/20/12
to constrain...@googlegroups.com
El dt 20 de 03 de 2012 a les 02:18 -0400, en/na Hector va escriure:

It's about the subreadings, instead of using tagger-to-visl, try using
cg-conv -a

The thing you probably need to do is:

# SELECT (inf) IF (-1C SUB:1 (vaux));

Or something...

Fran

Hector

unread,
Mar 20, 2012, 11:15:55 AM3/20/12
to constrain...@googlegroups.com
On Tue, Mar 20, 2012 at 5:00 AM, Francis Tyers <spe...@ivixor.net> wrote:
> It's about the subreadings, instead of using tagger-to-visl, try using
> cg-conv -a
>
> The thing you probably need to do is:
>
> # SELECT (inf) IF (-1C SUB:1 (vaux));
>
> Or something...
>
> Fran


Thanks Fran!
You were right, it had to do with the sub-readings. This is how I
ended up fixing it:
http://codepad.org/7gEFkf37

There's still some weirdness where the trace in vislcg3 is not being
caught, but cg-proc works fine.
--
 Héctor

Francis Tyers

unread,
Mar 20, 2012, 11:40:36 AM3/20/12
to constrain...@googlegroups.com
El dt 20 de 03 de 2012 a les 11:15 -0400, en/na Hector va escriure:

I think your syntax might be a bit off, try this:

$ cat /tmp/grammar
DELIMITERS = "<$.>" ;

SECTION
SELECT (inf) IF (-1/1 (vaux)) ;

$ echo "She cannot talk." | lt-proc en-es.automorf.bin | cg-conv -a |
vislcg3 --trace -g /tmp/bin
Codepage UTF-8, locale en_US_POSIX
Converting Apertium to VISL...
Warning: No soft or hard delimiters defined in grammar. Hard limit of
500 cohorts may break windows in unintended places.
"<She>"
"Prpers" prn subj p3 f sg
"<cannot>"
"not" adv
"can" vaux pres
"<talk>"
"talk" vblex inf SELECT:4
; "talk" n sg SELECT:4
; "talk" vblex pres SELECT:4
"<.>"
"." sent


$ echo "She cannot talk." | lt-proc en-es.automorf.bin |
cg-proc /tmp/bin
^She/Prpers<prn><subj><p3><f><sg>$ ^cannot/can<vaux><pres>+not<adv>$
^talk/talk<vblex><inf>$^./.<sent>$

Fran

Reply all
Reply to author
Forward
0 new messages