Hi,

During training the mkcls word classes for each word are stored in
path-to-working-dir/corpus/en.vcb.classes
path-to-working-dir/corpus/en.vcb.classes.cats

Or change en to the language code you're working on. Based on these files you can recover the class for each word.

Best,
Sara


On 01/29/2013 10:31 PM, Abdullah AlRajeh wrote:
Hi,
In moses, the following line can access any source word during decoding:

hypo.GetInput().GetWord(i).GetString(0)

The mkcls program produces word classes for GIZA++. I wonder is there a way to know the class of each word in a hypothesis?

Thanks,
Abdullah



_______________________________________________
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