2011-11-04 21:20:12 +04:00
|
|
|
//
|
|
|
|
// RuleTableLoaderHiero.h
|
|
|
|
// moses
|
|
|
|
//
|
|
|
|
// Created by Hieu Hoang on 04/11/2011.
|
|
|
|
// Copyright 2011 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef moses_RuleTableLoaderHiero_h
|
|
|
|
#define moses_RuleTableLoaderHiero_h
|
|
|
|
|
2012-01-23 19:54:38 +04:00
|
|
|
#include "RuleTable/LoaderStandard.h"
|
2011-11-04 21:20:12 +04:00
|
|
|
|
|
|
|
namespace Moses {
|
|
|
|
|
2012-06-29 02:29:46 +04:00
|
|
|
//! specific implementation of SCFG loader to load rule tables formatted in Hiero-style format
|
2011-11-04 21:20:12 +04:00
|
|
|
class RuleTableLoaderHiero : public RuleTableLoaderStandard
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool 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 &);
|
2011-11-04 21:20:12 +04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|