daily automatic beautifier

This commit is contained in:
MosesAdmin 2015-12-11 00:00:33 +00:00
parent a950605795
commit 739165c2b0
21 changed files with 69 additions and 69 deletions

View File

@ -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;

View File

@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
namespace Moses
{
InputType::InputType(AllOptions::ptr const& opts, long translationId)
InputType::InputType(AllOptions::ptr const& opts, long translationId)
: m_options(opts)
, m_translationId(translationId)
{

View File

@ -9,7 +9,7 @@
namespace Moses
{
class AllOptions;
class AllOptions;
namespace Syntax
{
namespace F2S

View File

@ -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;