Thanks to the European Commission and/or Fran hijacking that project,
we now have a new feature for language pair developers: trace
Trace mode shows you (on stderr) which rule(s) and input were matched
before output:
$ echo '^the<det><def><sp>$ ^dog<n><sg>$' |apertium-transfer -t
apertium-en-es.en-es.t1x en-es.t1x.bin en-es.autobil.bin
Rule 92 the<det><def><sp>
Rule 5 the<det><def><sp> dog<n><sg>
^Det_nom<SN><DET><GD><sg>{^el<det><def><3><4>$ ^perro<n><3><4>$}$
I'm still not sure if displaying all the rules matched along the way
to a final match is a bug or a feature, so debate among yourselves.
Interchunk will follow later today.
--
<Leftmost> jimregan, that's because deep inside you, you are evil.
<Leftmost> Also not-so-deep inside you.
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff