mosesdecoder/phrase-extract/filter-rule-table/CfgFilter.h

31 lines
580 B
C
Raw Normal View History

#pragma once
#include <istream>
#include <ostream>
#include <string>
#include <vector>
namespace MosesTraining
{
namespace Syntax
{
namespace FilterRuleTable
{
// Base class for StringCfgFilter and TreeCfgFilter, both of which filter rule
// tables where the source-side is CFG.
2015-02-19 15:27:23 +03:00
class CfgFilter
{
public:
virtual ~CfgFilter() {}
// Read a rule table from 'in' and filter it according to the test sentences.
virtual void Filter(std::istream &in, std::ostream &out) = 0;
2015-02-19 15:27:23 +03:00
protected:
};
} // namespace FilterRuleTable
} // namespace Syntax
} // namespace MosesTraining