it's a bit more work than I envisaged. You have to
1. implement word alignment, given the best hypothesis.
2. add the alignment to the mosesserver
For (1), there is code in
IOWrapper::OutputNBestList(
const Syntax::KBestExtractor::KBestVec &nBestList, long translationId)
to output the alignment in the n-best list. Alignment for best hypothesis
is very similar, even easier, but not the same.
For (2), just follow the phrase-based code in mosesserver
On 24 November 2014 at 18:07, Guchun Zhang <[email protected]> wrote:
> Hi Barry,
>
> I will try. Where should I start with?
>
> Thanks,
> Guchun
>
> On 24 November 2014 at 16:58, Barry Haddow <[email protected]>
> wrote:
>
>> Hi Guchun
>>
>> I'm afraid word alignment is not implemented for hiero models, in moses
>> server. You're welcome to add it.
>>
>> cheers - Barry
>>
>> On 24/11/14 14:27, Guchun Zhang wrote:
>>
>>> Hi there,
>>>
>>> When mosesserver is called with phrase based models, I can get both the
>>> translation and alignment using the sample client scripts in /contrib/.
>>> However, when it's used with hiero models, I can't get the alignment with
>>> the same scripts. Is this intentional? Where should I look at to get the
>>> alignment?
>>>
>>> Many thanks,
>>> Guchun
>>>
>>>
>>> _______________________________________________
>>> Moses-support mailing list
>>> [email protected]
>>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>>
>>
>>
>> --
>> The University of Edinburgh is a charitable body, registered in
>> Scotland, with registration number SC005336.
>>
>>
>>
>
>
> --
>
> *Guchun Zhang*
>
> Machine Translation Project Lead
> Alpha CRC | Cambridge, UK
> Direct: +44 1223 431035
>
> www.alphacrc.com
>
> www.linkedin.com/company/alpha-crc
>
> [email protected]
>
> *Alpha CRC = Global, Scalable, In-House Production*
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>
--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support