maybe you can call command line programs, like moses, from java.

You can also uses java JNI to call the moses functions. There is an example
how to do it in the Android UI

http://mosesdecoder.svn.sourceforge.net/viewvc/mosesdecoder/branches/android-ui/
If you want to do this, I can give you some advice but you will have to help
yourself most of the way

On 12 September 2011 10:01, Rasha R <[email protected]> wrote:

> thanks for your answer
> it is working under Cygwin
> but it is a project for NLP study at collage
> and  i need to make a user interface for it and call moses inside it
> i use java and my OS is windows XP
> so lets make the question like that
> how can i call cygwin moses from windows java code.
>
> On Mon, Sep 12, 2011 at 5:49 AM, Amittai Axelrod 
> <[email protected]>wrote:
>
>>  If you have Moses installed & working correctly under Cygwin, then just
>> run it from Cygwin.****
>>
>> ** **
>>
>> If it turns out that you do not have Moses installed & working correctly
>> under Cygwin, or have not installed all the necessary packages in Cygwin,
>> then check out the handy-dandy guide:****
>>
>> http://ssli.ee.washington.edu/people/amittai/Moses-on-Win7.pdf****
>>
>> ** **
>>
>> (which is already in need of an update, but hey, it still works)****
>>
>> ~amittai****
>>
>> ** **
>>
>> *From:* [email protected] [mailto:
>> [email protected]] *On Behalf Of *Rasha R
>> *Sent:* Saturday, September 10, 2011 2:20 PM
>> *To:* [email protected]
>> *Subject:* [Moses-support] Run Moses with cygwin from windows cmd****
>>
>> ** **
>>
>> Hi All****
>>
>> Can you help me with that****
>>
>> I want to run moses which is installed and working correctly under cygwin
>> ****
>>
>> from windows command line cmd****
>>
>> first i am running moses under cygwin with this****
>>
>> /home/<USERNAME>/moses/moses-cmd/src/moses -config
>> /home/<USERNAME>/work/evaluation/filtered/moses.ini -input-file
>> /cygdrive/d/Data.ar 1> /cygdrive/d/Eval.tuned-filtered.output 2>
>> /cygdrive/d/tuned-filtered.decode.out &****
>>
>>  ****
>>
>> i do some research on internet and and i  found this wayto run cygwin from
>> cmd i try to test it with file which print Hello World and it is working
>> ****
>>
>> c:\cygwin\bin\bash -c "/home/<USERNAME>/TEST.sh"****
>>
>> when i try the same command with the previous moses call like that****
>>
>> I got this error in the tuned-filtered.decode.out file****
>>
>> /home/<USERNAME>/moses/moses-cmd/src/moses.exe: error while loading shared
>> libraries: ?: cannot open shared object file: No such file or directory**
>> **
>>
>> can you help me please****
>>
>> thanks ****
>>
>
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to