Kevin Brubeck Unhammer <[email protected]> čálii: > If I have this in foo.dix: > > <e><p><l>PC-ane</l><r>PC<s n="n"/><s n="m"/><s n="pl"/><s > n="def"/></r></p></e> > > then I get > > $ echo '^PC<n><m><pl><def>$' | lt-proc -d foo.autogen.bin > PC-ane > > which is what I want. However, sometimes people write compounds in > lowercase, so I try including both upper and lower-case lemmas (I only > care about generation now): > > <e><p><l>pc-ane</l><r>pc<s n="n"/><s n="m"/><s n="pl"/><s > n="def"/></r></p></e> > <e><p><l>PC-ane</l><r>PC<s n="n"/><s n="m"/><s n="pl"/><s > n="def"/></r></p></e> > > but that gives > > $ echo '^PC<n><m><pl><def>$' | lt-proc -d foo.autogen.bin > PC-ane/PC-ANE > > Would it make sense for lt-proc to not output forced-uppercase analyses > if there's an otherwise identical dictionary-uppercase analysis? (Would > it be easily implementable?)
jimregan has now implemented the fix https://sourceforge.net/p/apertium/tickets/121/ Thanks =D Where the regular generation gives $ echo '^pc<n><m><pl><def>$' | lt-proc -g foo.autogen.bin pc-ane $ echo '^PC<n><m><pl><def>$' | lt-proc -g foo.autogen.bin PC-ane/PC-ANE for <e><p><l>pc-ane</l><r>pc<s n="n"/><s n="m"/><s n="pl"/><s n="def"/></r></p></e> <e><p><l>PC-ane</l><r>PC<s n="n"/><s n="m"/><s n="pl"/><s n="def"/></r></p></e> , the new --careful-case/-C option gives $ echo '^pc<n><m><pl><def>$' | lt-proc -C foo.autogen.bin pc-ane $ echo '^PC<n><m><pl><def>$' | lt-proc -C foo.autogen.bin PC-ane It's already available in the nightly builds of lttoolbox.
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
