El dj 28 de 10 de 2010 a les 17:16 +0100, en/na Antonio Toral va
escriure:
> > No, the error is in your dictionary entries. English placenames do not
> > have gender, they only have number. The rules do not, and will not,
> > take it into account. Fix your entries.
> > 
> > FWIW, it's generally safe to assume <m><sg> for placenames in Spanish,
> > and <sg> for English.
> 
> thanks for your answer Jim! I've modified the entries, so:
> 
> - en.metadix:
> <pardef n="Aachen__np"><e><p><l/><r><s n="np"/><s
> n="sg"/></r></p></e></pardef>
> <e lm="Yekaterinburg"><i>Yekaterinburg</i><par n="Aachen__np"/></e>
> 
> - es.dix:
> <pardef n="Aquisgrán__np"><e><p><l/><r><s n="np"/><s n="m"/><s
> n="sg"/></r></p></e></pardef>
> <e lm="Ekaterimburgo"><i>Ekaterimburgo</i><par n="Aquisgrán__np"/></e>
> 
> - en-es.dix:
> <e><p><l>Yekaterinburg<s n="np"/></l><r>Ekaterimburgo<s n="np"/><s
> n="m"></r></p></e>
> 
> 
> but still no luck with en->es:
> 
> echo "Yekaterinburg" | apertium-destxt | lt-proc en-es.automorf.bin |
> apertium-tagger -g en-es.prob | apertium-pretransfer | apertium-transfer
> apertium-en-es.en-es.t1x en-es.t1x.bin en-es.autobil.bin
> ^nom<SN><UNDET><m><sg>{^Ekaterimburgo<3><4>$}$^punt<sent>{^.<sent>$}$[][
> ]
> 
> es->en is ok as before:
> 
> echo "Ekaterimburgo" | apertium-destxt | lt-proc es-en.automorf.bin |
> apertium-tagger -g es-en.prob | apertium-pretransfer | apetium-transfer
> apertium-en-es.es-en.t1x es-en.t1x.bin  es-en.autobil.bin
> ^default<default>{^Yekaterinburg<np><sg>$}$^punt<sent>{^.<sent>$}$[][
> ]

You probably don't have plain <np> in the def-attr for a_nom...

Either add it, or you could just mark the entries as <np><loc>

Fran



------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to