mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 07:20:48 +03:00
daily automatic beautifier
This commit is contained in:
parent
a950605795
commit
739165c2b0
@ -74,8 +74,7 @@ pair<HypothesisStackNormal::iterator, bool> HypothesisStackNormal::Add(Hypothesi
|
||||
// prune only if stack is twice as big as needed (lazy pruning)
|
||||
size_t toleratedSize = 2*m_maxHypoStackSize-1;
|
||||
// add in room for stack diversity
|
||||
if (m_minHypoStackDiversity)
|
||||
{
|
||||
if (m_minHypoStackDiversity) {
|
||||
// so what happens if maxdistortion is negative?
|
||||
toleratedSize += m_minHypoStackDiversity
|
||||
<< m_manager.options()->reordering.max_distortion;
|
||||
|
@ -1210,7 +1210,8 @@ void collectWordLabelCounts( SentenceAlignmentWithSyntax &sentence )
|
||||
}
|
||||
}
|
||||
|
||||
void writeUnknownWordLabel(const string & fileName) {
|
||||
void writeUnknownWordLabel(const string & fileName)
|
||||
{
|
||||
ofstream outFile;
|
||||
outFile.open(fileName.c_str());
|
||||
typedef map<string,int>::const_iterator I;
|
||||
|
Loading…
Reference in New Issue
Block a user