mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 15:48:05 +03:00
Fix compile errors
This commit is contained in:
parent
c397d2068b
commit
30900141e7
@ -28,6 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#include "Parameter.h"
|
||||
#include "Util.h"
|
||||
#include "InputFileStream.h"
|
||||
#include "StaticData.h"
|
||||
#include "UserMessage.h"
|
||||
|
||||
using namespace std;
|
||||
|
@ -123,9 +123,9 @@ PhraseDictionary* PhraseDictionaryFeature::LoadPhraseTable(const TranslationSyst
|
||||
|
||||
RuleTableTrie *dict;
|
||||
if (staticData.GetParsingAlgorithm() == ParseScope3) {
|
||||
dict = new RuleTableUTrie(m_numScoreComponent, this);
|
||||
dict = new RuleTableUTrie(GetNumScoreComponents(), this);
|
||||
} else {
|
||||
dict = new PhraseDictionarySCFG(m_numScoreComponent, this);
|
||||
dict = new PhraseDictionarySCFG(GetNumScoreComponents(), this);
|
||||
}
|
||||
bool ret = dict->Load(GetInput()
|
||||
, GetOutput()
|
||||
@ -134,7 +134,7 @@ PhraseDictionary* PhraseDictionaryFeature::LoadPhraseTable(const TranslationSyst
|
||||
, m_tableLimit
|
||||
, system->GetLanguageModels()
|
||||
, system->GetWordPenaltyProducer());
|
||||
assert(ret);
|
||||
CHECK(ret);
|
||||
return dict;
|
||||
} else if (m_implementation == ALSuffixArray) {
|
||||
// memory phrase table
|
||||
|
Loading…
Reference in New Issue
Block a user