diff options
author | Rico Sennrich <rico.sennrich@gmx.ch> | 2013-04-22 15:21:59 +0400 |
---|---|---|
committer | Rico Sennrich <rico.sennrich@gmx.ch> | 2013-04-22 15:21:59 +0400 |
commit | 908c006e320bafa030896428ae3648d32b2094cb (patch) | |
tree | 554e46abb659353b1da394c9f9b96cd6dd2a0c5e /moses/StaticData.cpp | |
parent | 477f9135855e68b33245bb56125b3ca65b1f5c64 (diff) |
online combination of multiple phrase tables
- creates a virtual phrase table at decoding time based on a vector of component models and a combination algorithm
- linear interpolation or instance weighting
- two possible component model types supported so far: 0 (in-memory) or 12 (compact)
- weights can be set in config, and overriden on a sentence-level through mosesserver API
- online optimization (perplexity minimization) using dlib and xmlrpc-c call
Diffstat (limited to 'moses/StaticData.cpp')
-rw-r--r-- | moses/StaticData.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/moses/StaticData.cpp b/moses/StaticData.cpp index 991c300b3..2524ae92c 100644 --- a/moses/StaticData.cpp +++ b/moses/StaticData.cpp @@ -355,6 +355,8 @@ bool StaticData::LoadData(Parameter *parameter) m_unknownWordPenaltyProducer = new UnknownWordPenaltyProducer(); SetWeight(m_unknownWordPenaltyProducer, weightUnknownWord); + m_multimodelweights = Scan<float>( m_parameter->GetParam("weight-t-multimodel") ); + // reordering constraints m_maxDistortion = (m_parameter->GetParam("distortion-limit").size() > 0) ? Scan<int>(m_parameter->GetParam("distortion-limit")[0]) |