mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
35 lines
809 B
C++
35 lines
809 B
C++
//
|
|
// RuleTableLoaderHiero.cpp
|
|
// moses
|
|
//
|
|
// Created by Hieu Hoang on 04/11/2011.
|
|
// Copyright 2011 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#include <iostream>
|
|
#include "LoaderHiero.h"
|
|
|
|
using namespace std;
|
|
|
|
namespace Moses {
|
|
|
|
bool RuleTableLoaderHiero::Load(const std::vector<FactorType> &input,
|
|
const std::vector<FactorType> &output,
|
|
const std::string &inFile,
|
|
const std::vector<float> &weight,
|
|
size_t tableLimit,
|
|
const LMList &languageModels,
|
|
const WordPenaltyProducer* wpProducer,
|
|
RuleTableTrie &ruleTable)
|
|
{
|
|
bool ret = RuleTableLoaderStandard::Load(HieroFormat
|
|
,input, output
|
|
,inFile, weight
|
|
,tableLimit, languageModels
|
|
,wpProducer, ruleTable);
|
|
return ret;
|
|
}
|
|
|
|
}
|
|
|