Coote, Ravi | 6 Jul 2012 09:43
Picon
Favicon

Train with Moses, Decode with Pharaoh?

Dear Moses-List,

 

I’d like to integrate a (simple baseline) phrase-based French-English decoder into a java based (service oriented) environment.

 

I trained the phrase tables already with the moses kit and decoding with moses worked also fine.

 

But to integrate it smoothly into the java environment I like to use a decoder that’s written in Java and which can read the phrase tables created with moses.

 

My questions therefore are:

1)      Is Pharaoh able to read phrase tables created with moses?

2)      If yes, do I need to convert them?

3)      Is there another java-based decoder for moses’ phrase tables?

 

Thanks in advance.

 

Best Regards,

Ravi Coote

 

 

_______________________________________________
Moses-support mailing list
Moses-support@...
http://mailman.mit.edu/mailman/listinfo/moses-support
Philipp Koehn | 6 Jul 2012 09:55
Picon
Picon
Favicon

Re: Train with Moses, Decode with Pharaoh?

Hi,

it is possible to use Moses phrase table with Pharaoh (maybe with minor
modifications), but Pharaoh is not written in Java.

-phi

On Fri, Jul 6, 2012 at 12:43 AM, Coote, Ravi
<ravi.coote@...> wrote:
> Dear Moses-List,
>
>
>
> I’d like to integrate a (simple baseline) phrase-based French-English
> decoder into a java based (service oriented) environment.
>
>
>
> I trained the phrase tables already with the moses kit and decoding with
> moses worked also fine.
>
>
>
> But to integrate it smoothly into the java environment I like to use a
> decoder that’s written in Java and which can read the phrase tables created
> with moses.
>
>
>
> My questions therefore are:
>
> 1)      Is Pharaoh able to read phrase tables created with moses?
>
> 2)      If yes, do I need to convert them?
>
> 3)      Is there another java-based decoder for moses’ phrase tables?
>
>
>
> Thanks in advance.
>
>
>
> Best Regards,
>
> Ravi Coote
>
>
>
>
>
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@...
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
Thomas Meyer | 6 Jul 2012 10:16
Picon
Favicon

Re: Train with Moses, Decode with Pharaoh?

Hi Ravi,

You might want to have a look at "Joshua" and "phrasal", two decoders that are implemented in Java and generate similar phrase tables to the ones from Moses, though not exactly in the same format. Some conversion/coding would be needed to process your phrases tables, I guess.

http://cs.jhu.edu/~ccb/joshua/

http://nlp.stanford.edu/projects/mt.shtml

Best,
Thomas


On 06/07/12 09:55, Philipp Koehn wrote:
Hi, it is possible to use Moses phrase table with Pharaoh (maybe with minor modifications), but Pharaoh is not written in Java. -phi On Fri, Jul 6, 2012 at 12:43 AM, Coote, Ravi <ravi.coote-FCsFpRLaMoKatNDF+KUbs4QuADTiUCJX@public.gmane.org> wrote:
Dear Moses-List, I’d like to integrate a (simple baseline) phrase-based French-English decoder into a java based (service oriented) environment. I trained the phrase tables already with the moses kit and decoding with moses worked also fine. But to integrate it smoothly into the java environment I like to use a decoder that’s written in Java and which can read the phrase tables created with moses. My questions therefore are: 1) Is Pharaoh able to read phrase tables created with moses? 2) If yes, do I need to convert them? 3) Is there another java-based decoder for moses’ phrase tables? Thanks in advance. Best Regards, Ravi Coote _______________________________________________ Moses-support mailing list Moses-support-3s7WtUTddSA@public.gmane.org http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________ Moses-support mailing list Moses-support-3s7WtUTddSA@public.gmane.org http://mailman.mit.edu/mailman/listinfo/moses-support


-- Thomas Meyer Research Assistant Idiap Research Institute Centre du Parc Rue Marconi 19 P.O. Box 592 CH-1920 Martigny Switzerland Tel: +41 27 721 77 46 Fax: +41 27 721 77 12 E-Mail: Thomas.Meyer-ByUUbEQIQGw@public.gmane.org Web: www.idiap.ch/~tmeyer www.idiap.ch
_______________________________________________
Moses-support mailing list
Moses-support@...
http://mailman.mit.edu/mailman/listinfo/moses-support
Hieu Hoang | 6 Jul 2012 12:31
Picon

Re: Train with Moses, Decode with Pharaoh?

if you're looking to run moses in java, you can create a moses static library (dll in windows). The moses functions can then be called in Java via JNI. There is some old code for it in the android branch
   https://github.com/moses-smt/mosesdecoder/tree/android-ui

or you can just spawn the moses command line executable in java

On 06/07/2012 08:43, Coote, Ravi wrote:

Dear Moses-List,

 

I’d like to integrate a (simple baseline) phrase-based French-English decoder into a java based (service oriented) environment.

 

I trained the phrase tables already with the moses kit and decoding with moses worked also fine.

 

But to integrate it smoothly into the java environment I like to use a decoder that’s written in Java and which can read the phrase tables created with moses.

 

My questions therefore are:

1)      Is Pharaoh able to read phrase tables created with moses?

2)      If yes, do I need to convert them?

3)      Is there another java-based decoder for moses’ phrase tables?

 

Thanks in advance.

 

Best Regards,

Ravi Coote

 

 



_______________________________________________ Moses-support mailing list Moses-support-3s7WtUTddSA@public.gmane.org http://mailman.mit.edu/mailman/listinfo/moses-support


_______________________________________________
Moses-support mailing list
Moses-support@...
http://mailman.mit.edu/mailman/listinfo/moses-support
Lane Schwartz | 6 Jul 2012 21:02
Picon
Gravatar

Re: Train with Moses, Decode with Pharaoh?

Phramer is a phrase-based decoder written in Java. 



On Friday, July 6, 2012, Coote, Ravi wrote:

Dear Moses-List,

 

I’d like to integrate a (simple baseline) phrase-based French-English decoder into a java based (service oriented) environment.

 

I trained the phrase tables already with the moses kit and decoding with moses worked also fine.

 

But to integrate it smoothly into the java environment I like to use a decoder that’s written in Java and which can read the phrase tables created with moses.

 

My questions therefore are:

1)      Is Pharaoh able to read phrase tables created with moses?

2)      If yes, do I need to convert them?

3)      Is there another java-based decoder for moses’ phrase tables?

 

Thanks in advance.

 

Best Regards,

Ravi Coote

 

 



--
When a place gets crowded enough to require ID's, social collapse is not
far away.  It is time to go elsewhere.  The best thing about space travel
is that it made it possible to go elsewhere.
                -- R.A. Heinlein, "Time Enough For Love"
_______________________________________________
Moses-support mailing list
Moses-support@...
http://mailman.mit.edu/mailman/listinfo/moses-support

Gmane