mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
daily automatic beautifier
This commit is contained in:
parent
883c34aee9
commit
21aa5af640
@ -216,8 +216,7 @@ batch_run()
|
||||
boost::shared_ptr<TranslationTask> task;
|
||||
task = TranslationTask::create(source, ioWrapper, lscope);
|
||||
|
||||
if (cw)
|
||||
{
|
||||
if (cw) {
|
||||
if (context_string.size())
|
||||
context_window->push_back(context_string);
|
||||
if(!use_sliding_context_window)
|
||||
|
@ -253,8 +253,7 @@ ReadInput(boost::shared_ptr<std::vector<std::string> >* cw)
|
||||
source->SetTranslationId(m_currentLine++);
|
||||
|
||||
// when using a sliding context window, remove obsolete past input from buffer:
|
||||
if (m_past_input.size() && m_look_back != std::numeric_limits<size_t>::max())
|
||||
{
|
||||
if (m_past_input.size() && m_look_back != std::numeric_limits<size_t>::max()) {
|
||||
list<boost::shared_ptr<InputType> >::iterator m = m_past_input.end();
|
||||
for (size_t cnt = 0; cnt < m_look_back && --m != m_past_input.begin();)
|
||||
cnt += (*m)->GetSize();
|
||||
|
@ -52,8 +52,7 @@ public:
|
||||
, m_isHoldingDebugStream(false) {}
|
||||
|
||||
OutputCollector(std::string xout, std::string xerr = "")
|
||||
: m_nextOutput(0)
|
||||
{
|
||||
: m_nextOutput(0) {
|
||||
// TO DO open magic streams instead of regular ofstreams! [UG]
|
||||
|
||||
if (xout == "/dev/stderr") {
|
||||
|
@ -182,7 +182,8 @@ bool TargetPhrase::HasTtaskSPtr() const
|
||||
return m_ttask_flag;
|
||||
}
|
||||
|
||||
const ttasksptr TargetPhrase::GetTtask() const {
|
||||
const ttasksptr TargetPhrase::GetTtask() const
|
||||
{
|
||||
return m_ttask.lock();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user