A 2016-12-07 22:33, Parya Razmdide escrigué:
> To whom it may concern,
> To write transfer rules for interrogative sentences especially for
> yes-no questions, we have faced a problem which is related to Persian
> interrogative structures. As Persian has a SOV word order, apposite to
> English structures, between the auxiliary word or question word
> ("آیا") and the main verb, it is not determined exactly how many
> words can be placed. Is there any solution based on Apertium structure
> to relate the question word at the beginning of the sentence and the
> main verb at the end of the sentence with some undetermined words
> between them? For example the following sentences "آیا فیلیپ
> به مدرسه رفت؟" or "آیا مادر غذا را به
> کودکش داد؟" are translated to interrogative question
> sentences respectively "Does Phillip go to school?" and "Does mother
> give her child the food?"
>
There is no way to deal with having an arbitrary number of words
in Apertium. There are two things that you can consider:
1) Use the chunking properties of Apertium to chunk words into longer
sequences, and then work with those. For example:
[SN anne] [SP okula] [V gidiyor] [Qst mu] [? ?]
[Aux Does] [SN mother] [V go] [SP to school] [? ?]
Rules:
SN SP V Qst -> Aux SN V SP
1 2 3 4 -> 1 3 2
2) Use a different open-source rule-based platform, such as
Matxin.[1][2]
Best regards,
Fran
1. https://github.com/matxin/
2. http://wiki.apertium.org/wiki/Matxin_New_Language_Pair_HOWTO
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff