mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
daily automatic beautifier
This commit is contained in:
parent
9d7f62c05b
commit
0804f69776
@ -1,5 +1,8 @@
|
||||
#ifdef HAVE_XMLRPC_C
|
||||
#include <xmlrpc-c/base.hpp>
|
||||
#else
|
||||
namespace xmlrpc_c { class value; }
|
||||
namespace xmlrpc_c
|
||||
{
|
||||
class value;
|
||||
}
|
||||
#endif
|
||||
|
@ -447,7 +447,7 @@ void ExtractTask::extract(SentenceAlignment &sentence)
|
||||
wordNextOrient = getOrientWordModel(sentence, m_options.isWordType(), connectedLeftTopN, connectedRightTopN, endF, startF, endE, startE, 0, countF, -1, <, &ge);
|
||||
orientationInfo += getOrientString(wordPrevOrient, m_options.isWordType()) + " " + getOrientString(wordNextOrient, m_options.isWordType());
|
||||
// if(m_options.isAllModelsOutputFlag())
|
||||
// " | | ";
|
||||
// " | | ";
|
||||
}
|
||||
addPhrase(sentence, startE, endE, startF, endF, orientationInfo);
|
||||
}
|
||||
@ -561,12 +561,12 @@ REO_POS getOrientPhraseModel (SentenceAlignment & sentence, REO_MODEL_TYPE model
|
||||
connectedLeftTop = false;
|
||||
for(int indexF=startF-2*unit; (*ge)(indexF, zero) && !connectedLeftTop; indexF=indexF-unit)
|
||||
if ((connectedLeftTop = ((it = inBottomRight.find(startE - unit)) != inBottomRight.end() &&
|
||||
it->second.find(indexF) != it->second.end())))
|
||||
it->second.find(indexF) != it->second.end())))
|
||||
return DRIGHT;
|
||||
connectedRightTop = false;
|
||||
for(int indexF=endF+2*unit; (*lt)(indexF, countF) && !connectedRightTop; indexF=indexF+unit)
|
||||
if ((connectedRightTop = ((it = inBottomLeft.find(startE - unit)) != inBottomLeft.end() &&
|
||||
it->second.find(indexF) != it->second.end())))
|
||||
it->second.find(indexF) != it->second.end())))
|
||||
return DLEFT;
|
||||
return UNKNOWN;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user