El dc 11 de 12 de 2013 a les 16:14 +0100, en/na Yannis Haralambous va escriure: > Hi, > > I'm facing the following problem: in the SL I have the sentence > > incidenti che nel trasporto su strada, per ferrovia e sulle vie navigabili > provocano > > which should be translated into > > incidents qui sur les routes, les voies ferrées et navigables provoquent > > Here "che" is a subject relative pronoun and hence must be translated by > "qui" in > French (and not by "que" which would be the translation of the same "che" but > as an > object relative pronoun). To find out the nature of "che" I need to skip the > whole > chunk "nel trasporto su strada, per ferrovia e sulle vie navigabili" and find > the > verb "provocano", then check whether it is transitive or not, etc. > > My first thought was to use advanced structural transfer so that "che", "nel > trasporto > su strada, per ferrovia e sulle vie navigabili", "provocano" become chunks, > so that "che" > can communicate with "provocano" and we can deduce that it is a subject and > therefore > translate it by "qui". > > But this would mean to have a rule in .t1x of variable length (I cannot know > in > advance how many words will follow the "nel" as in "nel trasporto su strada, > per > ferrovia e sulle vie navigabili"), and I gather that this is impossible. > > How would you deal with this situation?
By using canonical Apertium (e.g. no extra programs) what I would do is as you suggested and make .t1x rules to cover the most frequent patterns, doubling up rules in the .t2x if necessary. There is another option of using two stages of interchunk, the first would chunk "nel trasporto su strada, per ferrovia e sulle vie navigabili" together and then the second would do the concordance. By using VISLCG3 you could write a CG rule which would disambiguate the "che" depending on the following verb (e.g. by mapping a subject or object tag), then have two entries in the bilingual dictionary: che<rel><subj> -> qui che<rel><obj> -> que or something like that. Fran ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Apertium-stuff mailing list Apertium-stuff@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/apertium-stuff