mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
32 lines
651 B
C++
32 lines
651 B
C++
//
|
|
// 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
|
|
|
|
#include "LoaderStandard.h"
|
|
|
|
namespace Moses
|
|
{
|
|
|
|
//! specific implementation of SCFG loader to load rule tables formatted in Hiero-style format
|
|
class RuleTableLoaderHiero : public RuleTableLoaderStandard
|
|
{
|
|
public:
|
|
bool Load(const std::vector<FactorType> &input,
|
|
const std::vector<FactorType> &output,
|
|
const std::string &inFile,
|
|
size_t tableLimit,
|
|
RuleTableTrie &);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|