mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 06:52:34 +03:00
b9a382aa78
This will eventually replace filter-rule-table.py. At the moment it can only filter rule tables where the source-side is a STSG fragment and when the test sentences have parse trees.
25 lines
404 B
C++
25 lines
404 B
C++
#pragma once
|
|
|
|
#include <istream>
|
|
#include <ostream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace MosesTraining
|
|
{
|
|
namespace Syntax
|
|
{
|
|
namespace FilterRuleTable
|
|
{
|
|
|
|
class StringBasedFilter {
|
|
public:
|
|
StringBasedFilter(const std::vector<std::vector<std::string> > &);
|
|
|
|
void Filter(std::istream &, std::ostream &);
|
|
};
|
|
|
|
} // namespace FilterRuleTable
|
|
} // namespace Syntax
|
|
} // namespace MosesTraining
|