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-11-12 23:56:18 +04:00
|
|
|
#include "LoaderStandard.h"
|
2011-11-04 21:20:12 +04:00
|
|
|
|
2013-05-29 21:16:15 +04:00
|
|
|
namespace Moses
|
|
|
|
{
|
2011-11-04 21:20:12 +04:00
|
|
|
|
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
|
|
|
size_t tableLimit,
|
2012-01-24 00:41:49 +04:00
|
|
|
RuleTableTrie &);
|
2011-11-04 21:20:12 +04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|