diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-07 19:07:11 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-07 19:07:11 +0300 |
commit | c4e45fb128e096f255a624b57b7826febdf06f2e (patch) | |
tree | 74455d64b0e45877c91dc2488838cfe01732b224 /moses/IOWrapper.cpp | |
parent | 2be2481feb2d68d6e4ba366d06fcfa51f7ff664e (diff) |
Code cleanup.
Diffstat (limited to 'moses/IOWrapper.cpp')
-rw-r--r-- | moses/IOWrapper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/moses/IOWrapper.cpp b/moses/IOWrapper.cpp index 297391a99..37ad726b1 100644 --- a/moses/IOWrapper.cpp +++ b/moses/IOWrapper.cpp @@ -87,8 +87,8 @@ IOWrapper::IOWrapper() m_currentLine = staticData.GetStartTranslationId(); - m_inputFactorOrder = &staticData.GetInputFactorOrder(); - + m_inputFactorOrder = &staticData.options().input.factor_order; + size_t nBestSize = staticData.options().nbest.nbest_size; string nBestFilePath = staticData.options().nbest.output_file_path; @@ -129,8 +129,8 @@ IOWrapper::IOWrapper() P.SetParameter<string>(path, "output-word-graph", ""); if (path.size()) m_wordGraphCollector.reset(new OutputCollector(path)); - size_t latticeSamplesSize = staticData.GetLatticeSamplesSize(); - string latticeSamplesFile = staticData.GetLatticeSamplesFilePath(); + size_t latticeSamplesSize = staticData.options().output.lattice_sample_size; + string latticeSamplesFile = staticData.options().output.lattice_sample_filepath; if (latticeSamplesSize) { m_latticeSamplesCollector.reset(new OutputCollector(latticeSamplesFile)); if (m_latticeSamplesCollector->OutputIsCout()) { |