El ds 12 de 04 de 2014 a les 08:09 -0700, en/na Rafi Kamal va escriure:
> 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.

You should solve the problem in Apertium. You could add another transfer
file after the .t3x file which just has a single rule which is to match
^.<sent>$ and any word ^*<*>$ and to set the case of the 'any word' to
uppercase using modify-case. 

Fran



------------------------------------------------------------------------------
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

Reply via email to