00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #pragma once
00021 #ifndef EXTRACT_GHKM_OPTIONS_H_
00022 #define EXTRACT_GHKM_OPTIONS_H_
00023
00024 #include <string>
00025
00026 namespace Moses
00027 {
00028 namespace GHKM
00029 {
00030
00031 struct Options {
00032 public:
00033 Options()
00034 : allowUnary(false)
00035 , conditionOnTargetLhs(false)
00036 , gzOutput(false)
00037 , maxNodes(15)
00038 , maxRuleDepth(3)
00039 , maxRuleSize(3)
00040 , maxScope(3)
00041 , minimal(false)
00042 , pcfg(false)
00043 , sentenceOffset(0)
00044 , unpairedExtractFormat(false)
00045 , unknownWordMinRelFreq(0.03f)
00046 , unknownWordUniform(false) {}
00047
00048
00049 std::string targetFile;
00050 std::string sourceFile;
00051 std::string alignmentFile;
00052 std::string extractFile;
00053
00054
00055 bool allowUnary;
00056 bool conditionOnTargetLhs;
00057 std::string glueGrammarFile;
00058 bool gzOutput;
00059 int maxNodes;
00060 int maxRuleDepth;
00061 int maxRuleSize;
00062 int maxScope;
00063 bool minimal;
00064 bool pcfg;
00065 int sentenceOffset;
00066 bool unpairedExtractFormat;
00067 std::string unknownWordFile;
00068 float unknownWordMinRelFreq;
00069 bool unknownWordUniform;
00070 };
00071
00072 }
00073 }
00074
00075 #endif