Moses-support Digest, Vol 97, Issue 76

Send Moses-support mailing list submissions to
moses-support@mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu

You can reach the person managing the list at
moses-support-owner@mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."


Today's Topics:

1. Re: Alignment output from mosesserver for hiero models
(Guchun Zhang)
2. Re: Alignment output from mosesserver for hiero models
(Hieu Hoang)
3. Re: Alignment output from mosesserver for hiero models
(Guchun Zhang)


----------------------------------------------------------------------

Message: 1
Date: Mon, 24 Nov 2014 18:07:50 +0000
From: Guchun Zhang <gzhang@alphacrc.com>
Subject: Re: [Moses-support] Alignment output from mosesserver for
hiero models
To: Barry Haddow <bhaddow@staffmail.ed.ac.uk>
Cc: "moses-support@MIT.EDU" <moses-support@mit.edu>
Message-ID:
<CA+cfSVLYAohF7yQBw_cFf2Em79g4x4EZkbwVpcqQ9A7ctcFQ-A@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Barry,

I will try. Where should I start with?

Thanks,
Guchun

On 24 November 2014 at 16:58, Barry Haddow <bhaddow@staffmail.ed.ac.uk>
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
>> Moses-support@mit.edu
>> 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

gzhang@alphacrc.com

*Alpha CRC = Global, Scalable, In-House Production*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20141124/64dfaad4/attachment-0001.htm

------------------------------

Message: 2
Date: Mon, 24 Nov 2014 18:26:45 +0000
From: Hieu Hoang <Hieu.Hoang@ed.ac.uk>
Subject: Re: [Moses-support] Alignment output from mosesserver for
hiero models
To: Guchun Zhang <gzhang@alphacrc.com>
Cc: "moses-support@MIT.EDU" <moses-support@mit.edu>, Barry Haddow
<bhaddow@staffmail.ed.ac.uk>
Message-ID:
<CAEKMkbjDY_SK_b28zn5P3rO7t1GXAZY3sW3vG1G-FHQOzRd48w@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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 <gzhang@alphacrc.com> wrote:

> Hi Barry,
>
> I will try. Where should I start with?
>
> Thanks,
> Guchun
>
> On 24 November 2014 at 16:58, Barry Haddow <bhaddow@staffmail.ed.ac.uk>
> 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
>>> Moses-support@mit.edu
>>> 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
>
> gzhang@alphacrc.com
>
> *Alpha CRC = Global, Scalable, In-House Production*
>
> _______________________________________________
> Moses-support mailing list
> Moses-support@mit.edu
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>


--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20141124/a2ae6396/attachment-0001.htm

------------------------------

Message: 3
Date: Mon, 24 Nov 2014 22:08:23 +0000
From: Guchun Zhang <gzhang@alphacrc.com>
Subject: Re: [Moses-support] Alignment output from mosesserver for
hiero models
To: Hieu Hoang <Hieu.Hoang@ed.ac.uk>
Cc: "moses-support@MIT.EDU" <moses-support@mit.edu>, Barry Haddow
<bhaddow@staffmail.ed.ac.uk>
Message-ID:
<CA+cfSV+eufDpEiU7gjN5zDWGv8T=rc-+4VQnzO5p1YqYYrTXwg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Thanks, Hieu. I will try and probably seek support from you later on.

Regards,
Guchun

On 24 November 2014 at 18:26, Hieu Hoang <Hieu.Hoang@ed.ac.uk> wrote:

> 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 <gzhang@alphacrc.com> wrote:
>
>> Hi Barry,
>>
>> I will try. Where should I start with?
>>
>> Thanks,
>> Guchun
>>
>> On 24 November 2014 at 16:58, Barry Haddow <bhaddow@staffmail.ed.ac.uk>
>> 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
>>>> Moses-support@mit.edu
>>>> 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
>>
>> gzhang@alphacrc.com
>>
>> *Alpha CRC = Global, Scalable, In-House Production*
>>
>> _______________________________________________
>> Moses-support mailing list
>> Moses-support@mit.edu
>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>
>>
>
>
> --
> Hieu Hoang
> Research Associate
> University of Edinburgh
> http://www.hoang.co.uk/hieu
>
>


--

*Guchun Zhang*

Machine Translation Project Lead
Alpha CRC | Cambridge, UK
Direct: +44 1223 431035

www.alphacrc.com

www.linkedin.com/company/alpha-crc

gzhang@alphacrc.com

*Alpha CRC = Global, Scalable, In-House Production*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20141124/418a405c/attachment.htm

------------------------------

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


End of Moses-support Digest, Vol 97, Issue 76
*********************************************

0 Response to "Moses-support Digest, Vol 97, Issue 76"

Post a Comment