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
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
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