diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-31 15:50:52 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-31 15:50:52 +0300 |
commit | 324c378f7fc54f02a8ea264915d3eade867ff23d (patch) | |
tree | 2bb934fee448845b0524427d437c871e7118ac2c /moses/IOWrapper.h | |
parent | dc8ad899454bd82408c6a371d5f50e497ede0caa (diff) |
Options refactoring. Moses crashed in server mode when asked to provide n-best translations with scores.
Diffstat (limited to 'moses/IOWrapper.h')
-rw-r--r-- | moses/IOWrapper.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/IOWrapper.h b/moses/IOWrapper.h index c55793329..02c3470bb 100644 --- a/moses/IOWrapper.h +++ b/moses/IOWrapper.h @@ -216,6 +216,7 @@ boost::shared_ptr<InputType> IOWrapper:: BufferInput() { + AllOptions const& opts = StaticData::Instance().options(); boost::shared_ptr<itype> source; boost::shared_ptr<InputType> ret; if (m_future_input.size()) { @@ -224,13 +225,13 @@ BufferInput() m_buffered_ahead -= ret->GetSize(); } else { source.reset(new itype); - if (!source->Read(*m_inputStream, *m_inputFactorOrder)) + if (!source->Read(*m_inputStream, *m_inputFactorOrder, opts)) return ret; ret = source; } while (m_buffered_ahead < m_look_ahead) { source.reset(new itype); - if (!source->Read(*m_inputStream, *m_inputFactorOrder)) + if (!source->Read(*m_inputStream, *m_inputFactorOrder, opts)) break; m_future_input.push_back(source); m_buffered_ahead += source->GetSize(); |