Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-12-11 13:12:54 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-12-11 16:52:48 +0300
commit65f4f1f92af3d645b1dfc2f161bbcf47bdce1402 (patch)
treed24edefd5cbe1e954021958b5214471c29c96a04 /moses/IOWrapper.cpp
parent40ed3df9cb513681569a2fcde32a5215c38253f3 (diff)
Code cleanup and refactoring.
Diffstat (limited to 'moses/IOWrapper.cpp')
-rw-r--r--moses/IOWrapper.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/moses/IOWrapper.cpp b/moses/IOWrapper.cpp
index 8049a2893..8def04b86 100644
--- a/moses/IOWrapper.cpp
+++ b/moses/IOWrapper.cpp
@@ -78,19 +78,18 @@ IOWrapper::IOWrapper(AllOptions const& opts)
Parameter const& P = staticData.GetParameter();
// context buffering for context-sensitive decoding
- m_look_ahead = staticData.options()->context.look_ahead;
- m_look_back = staticData.options()->context.look_back;
- m_inputType = staticData.options()->input.input_type;
+ m_look_ahead = m_options->context.look_ahead;
+ m_look_back = m_options->context.look_back;
+ m_inputType = m_options->input.input_type;
UTIL_THROW_IF2((m_look_ahead || m_look_back) && m_inputType != SentenceInput,
"Context-sensitive decoding currently works only with sentence input.");
- m_currentLine = staticData.GetStartTranslationId();
+ m_currentLine = m_options->output.start_translation_id;
+ m_inputFactorOrder = &m_options->input.factor_order;
- m_inputFactorOrder = &staticData.options()->input.factor_order;
-
- size_t nBestSize = staticData.options()->nbest.nbest_size;
- string nBestFilePath = staticData.options()->nbest.output_file_path;
+ size_t nBestSize = m_options->nbest.nbest_size;
+ string nBestFilePath = m_options->nbest.output_file_path;
staticData.GetParameter().SetParameter<string>(m_inputFilePath, "input-file", "");
if (m_inputFilePath.empty()) {