mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
39 lines
789 B
C++
39 lines
789 B
C++
#pragma once
|
|
|
|
#include <istream>
|
|
#include <ostream>
|
|
#include <string>
|
|
|
|
#include "syntax-common/tool.h"
|
|
|
|
namespace MosesTraining
|
|
{
|
|
namespace Syntax
|
|
{
|
|
namespace PostprocessEgretForests
|
|
{
|
|
|
|
struct Options;
|
|
class SplitPointFileParser;
|
|
|
|
class PostprocessEgretForests : public Tool
|
|
{
|
|
public:
|
|
PostprocessEgretForests() : Tool("postprocess-egret-forests") {}
|
|
|
|
virtual int Main(int argc, char *argv[]);
|
|
|
|
private:
|
|
void OneBestTree(std::istream &, std::ostream &, SplitPointFileParser *,
|
|
const Options &);
|
|
|
|
void ProcessForest(std::istream &, std::ostream &, SplitPointFileParser *,
|
|
const Options &);
|
|
|
|
void ProcessOptions(int, char *[], Options &) const;
|
|
};
|
|
|
|
} // namespace PostprocessEgretForests
|
|
} // namespace Syntax
|
|
} // namespace MosesTraining
|