Per Tunedal <per.tune...@operamail.com>
writes:

> Hi,
> Yes, you're right. Sorry for that.
>
> One example, I try to translate "en annan" with "man" (an other possible
> translation would be "jeg"):
>
> En annan får se upp, så att han inte petar mig också.
>
> ^En annan/En annan<prn><pers><p3><ut><sg><nom>/En
> annan<prn><pers><p3><ut><sg><acc>$
> ^får/få<vblex><pres><actv>/får<n><nt><sp><ind><nom>/får<n><nt><sp><ind><cmp><compound-only-L>/får<n><nt><sp><ind><nom><compound-R>$
> ^se/se<vblex><imp>/se<vblex><inf><actv>$ ^upp/upp<adv>$^,/,<cm>$
> ^så/så<adv>/så<cnjsub>/så<vblex><imp>/så<vblex><inf><actv>$
> ^att/att<cnjsub>$ ^han/han<prn><pers><p3><m><sg><nom>$ ^inte/inte<adv>$
> ^petar/*petar$ ^mig/jag<prn><pers><p1><un><sg><acc>$
> ^också/också<adv>$^./.<sent>$
>
> ^En annan<prn><pers><p3><ut><sg><nom>$ ^få<vblex><pres><actv>$
> ^se<vblex><inf><actv>$ ^upp<adv>$^,<cm>$ ^så<vblex><imp>$ ^att<cnjsub>$
> ^han<prn><pers><p3><m><sg><nom>$ ^inte<adv>$ ^*petar$
> ^jag<prn><pers><p1><un><sg><acc>$ ^också<adv>$^.<sent>$
>
> ^En annan<prn><pers><p3><ut><sg><nom>$ ^få<vblex><pres><actv>$
> ^se<vblex><inf><actv>$ ^upp<adv>$^,<cm>$ ^så<vblex><imp>$ ^att<cnjsub>$
> ^han<prn><pers><p3><m><sg><nom>$ ^inte<adv>$ ^*petar$
> ^jag<prn><pers><p1><un><sg><acc>$ ^också<adv>$^.<sent>$
>
> ^En annan<prn><pers><p3><ut><sg><nom>/Man<prn><pers><p3><ut><sg><nom>$
> ^få<vblex><pres><actv>/få<vblex><pres><actv>$
> ^se<vblex><inf><actv>/se<vblex><inf><actv>$
> ^upp<adv>/op<adv>$^,<cm>/,<cm>$ ^så<vblex><imp>/så<vblex><imp>$
> ^att<cnjsub>/at<cnjsub>$
> ^han<prn><pers><p3><m><sg><nom>/han<prn><pers><p3><m><sg><nom>$
> ^inte<adv>/ikke<adv>$ ^*petar/*petar$
> ^jag<prn><pers><p1><un><sg><acc>/jeg<prn><pers><p1><un><sg><acc>$
> ^också<adv>/også<adv>$^.<sent>/.<sent>$
>
> ^Man<prn><pers><p3><ut><sg><nom>$ ^få<vblex><pres><actv>$
> ^se<vblex><inf><actv>$ ^op<adv>$^,<cm>$ ^så<vblex><imp>$ ^at<cnjsub>$
> ^han<prn><pers><p3><m><sg><nom>$ ^ikke<adv>$ ^*petar$
> ^jeg<prn><pers><p1><un><sg><acc>$ ^også<adv>$^.<sent>$

We see that the # is introduced between these two final steps.

> #Man får se op, så at han ikke *petar mig også.

So this means that

    ^Man<prn><pers><p3><ut><sg><nom>$

was not generated correctly by the danish monodix. I also get:

$ echo '^Man<prn><pers><p3><ut><sg><nom>$' | lt-proc -g sv-da.autogen.bin
#Man


My first instinct is to check whether there are any other forms of of
the lemma "man" defined in the dictionary. So I do

$ lt-expand apertium-sv-da.da.dix | grep ':man<'

but this gives me no results. However, when I open
apertium-sv-da.da.dix, I do see a pardef

<pardef n="/man__prn">
  <e a="PT">       <p><l>man</l>        <r>man<s n="prn"/><s n="pers"/><s 
n="p3"/><s n="ut"/><s n="sg"/><s n="nom"/></r></p></e>
  <e>       <p><l>en</l>         <r>man<s n="prn"/><s n="pers"/><s n="p3"/><s 
n="ut"/><s n="sg"/><s n="acc"/></r></p></e>
  <e>       <p><l>ens</l>        <r>man<s n="prn"/><s n="pers"/><s n="p3"/><s 
n="ut"/><s n="sg"/><s n="gen"/></r></p></e>
</pardef>

which looks fine to me, but there's an error further down where the
pardef is called:

<e lm="man">             <i>m</i><par n="/man__prn"/></e>

An "m" is added to the beginning of all forms and analyses of that
pardef. Remove <i>m</i> and it should work.


-- 
Kevin Brubeck Unhammer

GPG: 0x766AC60C


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to