El 2017-10-29 19:22, Xavi Ivars escribió:
2017-10-29 19:15 GMT+01:00 Francis Tyers <fty...@prompsit.com>:



It isn't possible and isn't supposed to be, the new
apertium-separable
module could be used for this kind of thing. :)

Even when you don't want the words to be separable?

The use case we were thinking was for cases like

<e><p><l>marry<s n="vblex"/></l><r>casar<s n="vblex"/>+se<s
n="prn"/></r></p></e>

(Marc can give more/different examples)

In general, handling Catalan pronominal verbs in English is quite
challenging, as you have to handle it in bidix + specific transfer
rules, and adding separable verbs into the equation will make it even
more complex. But if it works, then great!

Yes, this is exactly the kind of thing I was thinking about, then you
could treat "se casa" y "casarse" the same. Something like:

<e lm="casarse" c="marry, get married">
  <p><l>casar<s n="vblex"/></l>
     <r>casarse<s n="vblex"/><s n="ref"/></r></p><i><t/><j/></i>
  <p><l>se<s n="prn"/><s n="enc"/><s n="ref"/><t/><j/></l><r/></p>
</e>

<e lm="casarse" c="marry, get married">
  <p><l>se<s n="prn"/><s n="pro"/><s n="ref"/><t/><j/></l><r/></p>
  <p><l>casar<s n="vblex"/></l>
     <r>casarse<s n="vblex"/><s n="ref"/></r></p><i><t/><j/></i>
</e>

$ echo "^casar<vblex><inf>$ ^se<prn><enc><ref><p3><mf><sp>$" | lsx-proc /tmp/test.bin
^casarse<vblex><ref><inf>$

$ echo "^se<prn><pro><ref><p3><mf><sp>$ ^casar<vblex><pri><p3><sg>$" | lsx-proc /tmp/test.bin
^casarse<vblex><ref><pri><p3><sg>$

Then in the bidix you'd just need:

<e><p><l>marry<s n="vblex"/></l><r>casarse<s n="vblex"/><s n="ref"/></r></p></e> <e><p><l>get<g><b/>married</g><s n="vblex"/></l><r>casarse<s n="vblex"/><s n="ref"/></r></p></e>

The format is a bit painful, the important thing is to understand what is going on with
the transducer (you can look at it using lt-print).

Fran

------------------------------------------------------------------------------
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
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to