(cc [email protected] )
About
http://wiki.apertium.org/wiki/Ideas_for_Google_Summer_of_Code/Make_lttoolbox-java_embeddable


2012/3/20 Mikel Artetxe <[email protected]>

> Hi,
>
> I am a 2nd year undergraduate in Computer Science at the University of the
> Basque Country that would like to participate in GSoC with Apertium (I
> really like programming and I really like languages, so Apertium is an
> ideal choice). Although my initial idea was to work on bringing Apertium to
> iOS making use of the existing C++ code as part of the "Apertium on your
> mobile" task (I thought about it and start preparing myself when things
> weren't too clearly specified at the wiki yet), I later realized that your
> idea for this task was something very different (it just consists on
> developing an Android app based on the existing Java code, right?).


Yes, that is correct.

Your first option (C++) is also a possibility, but I am much less
well-suited as a mentor for that (and I think its a bigger task that takes
more than a GSoC to do).




> After that, I became interested in the "Make lttoolbox-java embeddable"
> task since I saw that it better fitted my skills, and I am now working on
> the coding challenge that you propose at the wiki. Nevertheless, I have
> some doubts about it, and this is way I am writing to you.
>

Great that you ask. We love questions.



>
> When making the demo JAR file for translation for the language pair we
> have chosen, should the resources of this language pair be embedded at the
> JAR file? If the answer is no, I would say that a very simple replacement
> of the main method at CommandLineInterface.java should be enough (a single
> line of code that calls the main method of the ApertiumMain class with the
> correct parameters would suffice). And, if the answer is yes, much deeper
> changes would be needed (after all, the current code assumes that all the
> files can be accessed by using common paths expressed by Strings, but this
> is not possible for embedded resources). I have also thought about copying
> the embedded resources to a temporary folder at runtime as an intermediate
> solution, but I guess that this is not the "elegant" way of doing things...
>

+1
You've looked at
http://apertium.svn.sourceforge.net/viewvc/apertium/trunk/lttoolbox-java/src/org/apertium/CommandLineInterface.java?revision=24980&view=markup
http://apertium.svn.sourceforge.net/viewvc/apertium/trunk/lttoolbox-java/src/org/apertium/pipeline/ApertiumMain.java?revision=27363&view=markup
and concluded correctly.




>
> So, which path should I follow?



Copying the embedded resources to a temporary folder at runtime is fine for
now.

I'm in doubt myself what is really the best long term overall solution to
your question, and deciding that will, to some extent, actually have to be
decided by the student.

One important goal is to ensure wider accesibility of the great Apertium
platform by making a zero-installation JAR file containing everything.

Therefore a first task is to get something like

echo "Saluton mi estas Jacob" | java -jar apertium.jar eo-en

to give the output
"Hello, I am Jacob"

for an end user that just downloaded just only this JAR file and have
nothing but a JVM installed on her machine.
A second task would probably be to make a it possible for the user to
double click on the JAR file and get a simple interface for testing a
language pair with an input textarea, a translate button and an output
textarea for the translated text.

Very cool of course would be if Apertium-viewer (
http://wiki.apertium.org/wiki/Apertium-viewer) could be made to function
with the JAR file (but that would require access to the intermediary stages
and I don't expect that).


Looking at
http://wiki.apertium.org/wiki/Ideas_for_Google_Summer_of_Code/Make_lttoolbox-java_embeddableit
could seem that there's not much work to be done.
Of course there is, but it would depend on the student's opinions and
capabilites. We have to settle that together.

I am not aware of the SCoC framework allows for such a loose formulation.
If its not I can make stricter, more narrow, goals.




> And, after completing the coding challenge, what would be the next step
> for my GSoC application?
>
>
I'll let others reply on that, its been some years since I was last mentor
and I don't really remember.

Play around, ask questions, do stuff, improve stuff, be on IRC (my nick is
jacobEo)  is always good :-)

Yours,
Jacob

-- 
Jacob Nordfalk <https://plus.google.com/114820443085046080944>
http://javabog.dk
Android-udvikler og underviser på
IHK<http://cv.ihk.dk/diplomuddannelser/itd/vf/MAU>og
Lund&Bendsen <https://www.lundogbendsen.dk/undervisning/beskrivelse/LB1809/>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to