Hi Ryan
(Did you see Tom’s message?)
Here is what I meant by writing a wrapper.
The moses decoder can read from STDIN, so it will translate
echo “this is a test” | moses -f moses.ini
Now if you have a script that does proper segmentation of a Thai input sentence:
echo “notproperlysegmentedThaisentence” | segment.sh
properly segmented Thai sentence
and you plug this in in the middle:
echo “notproperlysegmentedThaisentence” | segment.sh | moses -f moses.ini
And for English-Thai, you would need a script that undoes segmentation (=
restores to the proper uses for spacing, thanks Tom for explaining this), and
can also read from STDIN, write to STDOUT:
echo “this is a test” | moses -f moses.ini | unsegment.sh
For instance, it the task were to just remove spaces,
echo “this is a test” | moses -f moses.ini | sed 's/ //g'
Regards!
Mathias
> On 22 Dec 2017, at 02:26, Ryan Coughlin wrote:
>
> Hi all,
>
> Mathias recommended to me that I should write a lite wrapper for the Moses
> decoder. Is anyone aware of any documentation for doing such a thing? I'm not
> able to find it with any kind of search.
>
> thank you,
> Ryan
> ___
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support
___
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support