Hi Minh,

the script is now checked in (revision 4233).  It's called extract-target-trees.py and is in the scripts/analysis directory.  Let me if you encounter any issues with it.

Phil


On 18 Sep, 2011,at 05:23 AM, Nghiêm Quốc Minh <[email protected]> wrote:

Hi Phil,

Thank you very much for your answer.

I'm looking forward to the Python script.

Regards,

Minh

2011/9/16 Phil Williams <[email protected]>
Hi Minh,

it's possible to extract the tree structure given the output file produced by moses_chart's -T option.  In fact, I have a Python script that does exactly that.  I'll clean it up and add it to the moses scripts directory.

Phil



On 16 Sep, 2011,at 04:20 AM, Nghiêm Quốc Minh <[email protected]> wrote:


Dear all,

Is there any way (or parameter) to create the tree structure output from moses_chart?

For example, the input is:

<tree label="..."> ... </tree>

And I want the output has the same format:

<tree label=".."> ... </tree>

(The output I have right now is plain text)

Thanks all,

Minh

_______________________________________________
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
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to