minor compile error on gcc

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@908 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
hieuhoang1972 2006-10-21 19:16:20 +00:00
parent 6b1c0837b0
commit d8d278f41b
3 changed files with 5 additions and 5 deletions

View File

@ -46,7 +46,7 @@ LanguageModelSRI::~LanguageModelSRI()
delete m_srilmVocab;
}
void LanguageModelSRI::Load(const std::string &fileName
void LanguageModelSRI::Load(const std::string &filePath
, FactorCollection &factorCollection
, FactorType factorType
, float weight
@ -57,11 +57,11 @@ void LanguageModelSRI::Load(const std::string &fileName
m_factorType = factorType;
m_weight = weight;
m_nGramOrder = nGramOrder;
m_filename = fileName;
m_filePath = filePath;
m_srilmModel->skipOOVs() = false;
File file( fileName.c_str(), "r" );
File file( filePath.c_str(), "r" );
if (m_srilmModel->read(file))
{
}

View File

@ -50,7 +50,7 @@ protected:
public:
LanguageModelSRI(bool registerScore);
~LanguageModelSRI();
void Load(const std::string &fileName
void Load(const std::string &filePath
, FactorCollection &factorCollection
, FactorType factorType
, float weight

View File

@ -38,7 +38,7 @@ class PhraseDictionaryNode
// only these classes are allowed to instantiate this class
friend class PhraseDictionaryMemory;
friend class NodeMap;
friend class std::map<Word, PhraseDictionaryNode>;
protected:
NodeMap m_map;