Hi,

deep down in ScoreComponentCollection.cpp is the weighting of feature
scores:

GetWeightedScore() const
{
  return
m_scores.inner_product(StaticData::Instance().GetAllWeights().m_scores);
}

So here you have the weights coming from the global StaticData.

This should make instead reference to a weight setting that should be
associated
with the sentence-specific Manager object.

Unfortunately, this function is called at various points in the code where
there is
no apparent current Manager object, so this would require a bit more
reorganization
of the code to make it work.

If you have time to do that, it would be a useful change.

-phi


On Fri, Jun 13, 2014 at 9:34 AM, Lane Schwartz <[email protected]> wrote:

> Looking at the Alternate Weight Settings section of the documentation,
> there is a note "this functionality currently does not work with
> multi-threaded decoding."
>
>
> http://www.statmt.org/moses/?n=Moses.AdvancedFeatures#alternateweightsettings
>
> What is currently preventing this from working in multithreaded mode?
> What changes would be required?
>
> Thanks,
> Lane
> _______________________________________________
> 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