2015-03-10 16:51:30 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <istream>
|
|
|
|
#include <ostream>
|
|
|
|
#include <string>
|
|
|
|
|
2015-06-04 18:54:31 +03:00
|
|
|
#include "syntax-common/tool.h"
|
|
|
|
|
2015-03-10 16:51:30 +03:00
|
|
|
namespace MosesTraining
|
|
|
|
{
|
|
|
|
namespace Syntax
|
|
|
|
{
|
|
|
|
namespace PostprocessEgretForests
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Options;
|
|
|
|
class SplitPointFileParser;
|
|
|
|
|
2015-06-04 18:54:31 +03:00
|
|
|
class PostprocessEgretForests : public Tool
|
2015-03-10 16:51:30 +03:00
|
|
|
{
|
|
|
|
public:
|
2015-06-04 18:54:31 +03:00
|
|
|
PostprocessEgretForests() : Tool("postprocess-egret-forests") {}
|
2015-03-10 16:51:30 +03:00
|
|
|
|
2015-06-04 18:54:31 +03:00
|
|
|
virtual int Main(int argc, char *argv[]);
|
2015-03-10 16:51:30 +03:00
|
|
|
|
|
|
|
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
|