mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +03:00
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:
parent
46a97f6bd5
commit
e8df820628
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user