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-11-12 23:56:18 +04:00
|
|
|
#include "LoaderHiero.h"
|
2011-11-04 21:20:12 +04:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
2013-05-29 21:16:15 +04:00
|
|
|
namespace Moses
|
|
|
|
{
|
|
|
|
|
2011-11-04 21:20:12 +04:00
|
|
|
bool RuleTableLoaderHiero::Load(const std::vector<FactorType> &input,
|
2013-05-29 21:16:15 +04:00
|
|
|
const std::vector<FactorType> &output,
|
|
|
|
const std::string &inFile,
|
|
|
|
size_t tableLimit,
|
|
|
|
RuleTableTrie &ruleTable)
|
2011-11-04 21:20:12 +04:00
|
|
|
{
|
|
|
|
bool ret = RuleTableLoaderStandard::Load(HieroFormat
|
2013-05-29 21:16:15 +04:00
|
|
|
,input, output
|
|
|
|
,inFile
|
|
|
|
,tableLimit
|
|
|
|
,ruleTable);
|
2011-11-04 21:20:12 +04:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|