clean up syntaX

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@55 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
redpony 2006-07-11 18:42:07 +00:00
parent 46a97f6bd5
commit e8df820628
2 changed files with 4 additions and 3 deletions

View File

@ -167,13 +167,14 @@ void PhraseDictionary::AddEquivPhrase(const Phrase &source
const TargetPhraseCollection *PhraseDictionary::FindEquivPhrase(const Phrase &source) const
{
std::map<Phrase , TargetPhraseCollection >::const_iterator iter = m_collection.find(source);
std::map<Phrase , TargetPhraseCollection >::const_iterator iter =
m_collection.find(source);
if (iter == m_collection.end())
{ // can't find source phrase
return NULL;
}
return &(*iter).second;
return &iter->second;
}
PhraseDictionary::~PhraseDictionary()

View File

@ -42,7 +42,7 @@ const float DEFAULT_BEAM_THRESHOLD = 0.00001f;
#include "config.h"
#define TRACE_ENABLE 1 // REMOVE after we figure this out
#define N_BEST 1 // REMOVE
// #define N_BEST 1 // REMOVE
# ifdef HAVE_SRILM
# define LM_SRI 1