Hi Mikel
Thanks for the reply. The <modify-case> option will be very helpful for me to
write complex transfer rules. But there is a problem, I'm working on
Bangla-English translation and Bangla is a case insensitive language. So when I
translate some sentence from Bangla to English, every letter is in lower case.
Currently I'm trying to capitalize just the first letter of every sentence. I
think it will be a little difficult to do so using modify-case, because I need
to manually handle case in almost every type of chunk.
I think it will be easier to just write a script to do this task, which will
run after morphological generation. But how can I instruct apertium to run this
script? I can modify the modes file, but these files will be regenerated every
time after executing the makefile.
I'll be looking forward to your suggestion.
On Saturday, April 12, 2014 8:41 PM, Mikel Forcada <[email protected]> wrote:
Al 04/12/2014 04:07 PM, En/na Rafi Kamal ha escrit:
<chunk name="pronoun" case="caseFirstWord">
This just transfers the case of the first word, but does not capitalize it. You
may want to use modify-case: see p. 96 of the official documentation, which you
can find here: http://wiki.apertium.org/wiki/Documentation
Mikel
--
Mikel L. Forcada (http://www.dlsi.ua.es/~mlf/)
Departament de Llenguatges i Sistemes Informàtics
Universitat d'Alacant
E-03071 Alacant, Spain
Phone: +34 96 590 9776
Fax: +34 96 590 9326
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff