El 11/03/14 15:09, Gaurav Agrawal ha escrit:
> Hello Mikel,
>
> I am working on the coding challenge for the project: Plain-text
> formats for Apertium data.
>
> I have the following points related to that:
>
> 1. While converting the *.mode file into the the modes.xml, the order
> of the tags <mode>.....</mode> will not be similar to the current
> modes.xml as the *.mode doesn't have any particular order.
That's no problem.
>
> 2. I am using Java language to write my code.
>
That does not seem to be a problem either.
> 3. For the proper conversion of the *.modes file I have taken the
> following assumption:
>
> a) The Parser that will be created will take the path of the language
> folder like: apertium-en-ca
>
OK for the coding challenge.
> b) The *.modes files are present in the folder named modes as
> {language pair folder}/modes e.g. apertium-en-ca/modes
They usually are.
>
> c) The modes.xml is present directly in the language pair folder as
> {language pair folder}/modes.xml e.g. apertium-en-ca/modes.xml
It usually is.
>
>
> 4. Addition:
>
> As a addition to coding challenge, I am also interested to do the
> reverse part:
> Converting the modes.xml file into the *.mode file.
>
The code is already there in Apertium as the *.mode files are created
from the modes.xml file when "make" is invoked. Check it out!
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
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff