Add the <gen> tag without a blank between it and the previous lemma:

<chunk name="REALGEN" case="caseFirstWord">
  <tags>
    <tag><lit-tag v="NP-GEN"/></tag>
  </tags>
  <lu>
    <clip pos="1" side="tl" part="lem"/>
    <clip pos="1" side="tl" part="a_supernominal"/>
    <clip pos="1" side="tl" part="a_nbr"/>
    <lit v="+"/>
    <lit v="'s"/>
    <lit-tag v="gen"/>
  </lu>
    <b pos="1"/>
  <lu>
    <clip pos="2" side="tl" part="whole"/>
  </lu>
</chunk>

This should do the trick.

2017-07-25 12:46 GMT+02:00 Tommi A Pirinen <
tommi.antero.piri...@uni-hamburg.de>:

> [Replies inline]
> On Mon, 24 Jul 2017 23:15:15 +0200
> Marc Riera Irigoyen
> <marc.riera.irigo...@gmail.com> wrote:
>
> > Sorry, I made a mistake in the reference bidix entry in the last
> > message that could break pairs already using genitives. The good
> > entry should be like this (what I originally said in a previous
> > message):
> >
> > <e r="LR"><p><l>'s<s n="gen"/></l><r></r></p></e>
> >
> > I have tweaked the CG rules and now everything should work even
> > better. Thanks!
>
> Thanks for the update. I have changed fin-eng a bit and set up some
> tests using Apertium's canonical standard testing methods like[1]. The
> only issue I have is generating, I use:
>
>     <rule comment="REGLA: gen owner">
>       <pattern>
>         <pattern-item n="gen-subj"/>
>         <pattern-item n="nom"/>
>       </pattern>
>       <action>
>         <call-macro n="case-handler1">
>           <with-param pos="2"/>
>         </call-macro>
>         <out>
>           <chunk name="REALGEN" case="caseFirstWord">
>             <tags>
>               <tag><lit-tag v="NP-GEN"/></tag>
>             </tags>
>             <lu>
>               <clip pos="1" side="tl" part="lem"/>
>               <clip pos="1" side="tl" part="a_supernominal"/>
>               <clip pos="1" side="tl" part="a_nbr"/>
>           </lu>
>           <lu>
>               <lit v="'s"/>
>               <lit-tag v="gen"/>
>             </lu>
>                 <b pos="1"/>
>             <lu>
>                 <clip pos="2" side="tl" part="whole"/>
>             </lu>
>           </chunk>
>         </out>
>       </action>
>   </rule>
>
> But I seem to get:
>
> fin-eng   Jamesin kissa.
>         - James' cat.
>         + James's/' cat.
>
>
> fin-eng   Jackin kissa.
>         - Jack's cat.
>         + Jack's/' cat.
>
>
> fin-eng   pojan kissa.
>         - boy's cat.
>         + boy's/' cat.
>
> Other way it goes almost right, except for the lexical selection:
>
> eng-fin   James' cat.
>         - Jamesin kissa.
>         + James’ kolli.
>
>
> eng-fin   Jack's cat.
>         - Jackin kissa.
>         + Jackin kolli.
>
>
> eng-fin   boy's cat.
>         - pojan kissa.
>         + pojan kolli.
>
>
> [1]
> <http://wiki.apertium.org/wiki/Apertium-fin-eng/Pending_tests#Genitives>
>
> --
> Doktor Tommi A Pirinen, Computational Linguist,
> <https://flammie.github.io/purplemonkeydishwasher/>, Universität
> Hamburg, Hamburger Zentrum für Sprachkorpora <http://hzsk.de>. CLARIN-D
> Entwickler.  President of ACL SIGUR SIG for Uralic languages
> <http://gtweb.uit.no/sigur/>.
> I tend to follow inline-posting style in desktop e-mail messages.
>
>
>
> ------------------------------------------------------------
> ------------------
> 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
>



-- 

*Marc Riera Irigoyen*
Freelance Translator EN/JA>CA/ES

(+34) 652 492 008
------------------------------------------------------------------------------
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