mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
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:
parent
6b1c0837b0
commit
d8d278f41b
@ -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))
|
||||
{
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user