I think I've come up with a solution that is minimally intrusive for existing work-flows and usages, and that is, allowing optionalising select tags for generation, i.e.:
Analysing: echo London | lt-proc eng.automorf.bin ^London/London<np><top><sg>/London<np><cog><sg>$ (I didn't even plan this it just happened to be ambiguous... :-D Generating: echo '^London<np><top><sg>$' | lt-proc -g eng.autogen.bin London as before, but also: echo '^London<np><sg>$' | lt-proc -g eng.autogen.bin London Similarly with HFST: echo Lontoo | hfst-lookup fin.automorf.hfst Lontoo Lontoo<np><top><sg><nom> 120,009995 echo 'Lontoo<np><top><sg><nom>' | hfst-lookup fin.autogen.hfst Lontoo<np><top><sg><nom> Lontoo 120,009995 echo 'Lontoo<np><sg><nom>' | hfst-lookup fin.autogen.hfst Lontoo<np><sg><nom> Lontoo I have a refernce implementation for HFST in apes-fin[1] but I may need help with lt-stuff, maybe a new tool in style of lt-trim? I'd probably start with hard-coded optional tags but maybe they should be in some file, even monodix itself? [1] <https://github.com/apertium/apertium-fin/commit/5b1f1edd983297eed6f7d3c84b2d87d56ece212b> -- Regards, Flammie <https://flammie.github.io> (Please note, that I will often include my replies inline instead of top or bottom of the mail)
signature.asc
Description: PGP signature
_______________________________________________ Apertium-stuff mailing list Apertium-stuff@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/apertium-stuff