2011-11-04 21:20:12 +04:00
|
|
|
//
|
|
|
|
// RuleTableLoaderHiero.cpp
|
|
|
|
// moses
|
|
|
|
//
|
|
|
|
// Created by Hieu Hoang on 04/11/2011.
|
|
|
|
// Copyright 2011 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include <iostream>
|
2012-01-23 19:54:38 +04:00
|
|
|
#include "RuleTable/LoaderHiero.h"
|
2011-11-04 21:20:12 +04:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
namespace Moses {
|
|
|
|
|
|
|
|
bool RuleTableLoaderHiero::Load(const std::vector<FactorType> &input,
|
|
|
|
const std::vector<FactorType> &output,
|
2012-10-14 23:52:12 +04:00
|
|
|
const std::string &inFile,
|
2011-11-04 21:20:12 +04:00
|
|
|
const std::vector<float> &weight,
|
|
|
|
size_t tableLimit,
|
|
|
|
const LMList &languageModels,
|
|
|
|
const WordPenaltyProducer* wpProducer,
|
2012-01-24 00:41:49 +04:00
|
|
|
RuleTableTrie &ruleTable)
|
2011-11-04 21:20:12 +04:00
|
|
|
{
|
|
|
|
bool ret = RuleTableLoaderStandard::Load(HieroFormat
|
|
|
|
,input, output
|
2012-10-14 23:52:12 +04:00
|
|
|
,inFile, weight
|
2011-11-04 21:20:12 +04:00
|
|
|
,tableLimit, languageModels
|
|
|
|
,wpProducer, ruleTable);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|