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