00001 #pragma once
00002
00003 #include <istream>
00004 #include <ostream>
00005 #include <string>
00006
00007 #include "syntax-common/tool.h"
00008
00009 namespace MosesTraining
00010 {
00011 namespace Syntax
00012 {
00013 namespace PostprocessEgretForests
00014 {
00015
00016 struct Options;
00017 class SplitPointFileParser;
00018
00019 class PostprocessEgretForests : public Tool
00020 {
00021 public:
00022 PostprocessEgretForests() : Tool("postprocess-egret-forests") {}
00023
00024 virtual int Main(int argc, char *argv[]);
00025
00026 private:
00027 void OneBestTree(std::istream &, std::ostream &, SplitPointFileParser *,
00028 const Options &);
00029
00030 void ProcessForest(std::istream &, std::ostream &, SplitPointFileParser *,
00031 const Options &);
00032
00033 void ProcessOptions(int, char *[], Options &) const;
00034 };
00035
00036 }
00037 }
00038 }