Hi Marcin

This sounds like a pretty useful feature. How hard would it be to get it 
merged into trunk? How does it interact with Moses caching/pruning of 
translation options?

cheers - Barry

On Friday 06 Apr 2012 07:16:01 Marcin Junczys-Dowmunt wrote:
> At the moment the branch is based on a Moses version from
> September/October 2011. I am scheduled to do an update to the current
> version in the second half of June.
> 
> Best,
> Marcin
> 
> On 06.04.2012 01:25, Prashant Mathur wrote:
> > Hi Marcin,
> > This is very close to what we need.
> >
> > Thanks,
> > Prashant
> >
> > -----Original Message----- From: Marcin Junczys-Dowmunt
> > Sent: Thursday, April 05, 2012 8:05 PM
> > To: Prashant Mathur
> > Subject: Re: [Moses-support] Adding special instructions to the decoder
> > via input
> >
> > Hi,
> > take a look at the WIPO branch of Moses. We have something very similar,
> > but thread-safe. You can specify weights and other moses parameters by
> > using <specOpt switches="-lm 0.5 -tm 2 -v 2"> anywhere in a sentence.
> > The weights specified in one sentence do not affect translation of
> > another sentence.
> >
> > Best,
> > Marcin
> >
> > On 05.04.2012 17:54, Prashant Mathur wrote:
> >> Hi all,
> >>
> >> We are trying to update feature weights dynamically during decoding. We
> >> are doing this by adding additional lines of input, delimited with a
> >> special token to tell Moses to update weights.
> >>
> >> For example,
> >> ----
> >> First sentence.
> >> @CMD@ weight-l=0.5
> >> Change the LM weight for this sentence.
> >> ----
> >> While debugging our new code, we noticed that several lines of the input
> >> were read before being translated.
> >>
> >> For instance, this is the input file:
> >> sentence0
> >> @CMD@ weight-l=0.5
> >> sentence1
> >> @CMD@ weight-l=0.3
> >> sentence2
> >>
> >> Whenever a @CMD@ line is read, we execute the corresponding command to
> >> change the weights. So we would expect all three sentences to be
> >> translated with different weights.
> >> Instead what happens is that all the commands are executed before
> >> translating *any* sentence, so that all sentences are translated with
> >> the last modified weights (i.e weight-l=0.3)
> >>
> >> This happens when the inputfile is given as an argument (to -i) and also
> >> when it is read from the stdin.
> >> Only if we type the lines to the console one by one do we get the
> >> expected result.
> >>
> >> Is there any way to force Moses to read and process each line at a time?
> 
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to