00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #pragma once
00021
00022 #include <string>
00023
00024 namespace MosesTraining
00025 {
00026 namespace Syntax
00027 {
00028 namespace GHKM
00029 {
00030
00031 struct Options {
00032 public:
00033 Options()
00034 : allowUnary(false)
00035 , conditionOnTargetLhs(false)
00036 , gzOutput(false)
00037 , includeSentenceId(false)
00038 , maxNodes(15)
00039 , maxRuleDepth(3)
00040 , maxRuleSize(3)
00041 , maxScope(3)
00042 , minimal(false)
00043 , partsOfSpeech(false)
00044 , partsOfSpeechFactor(false)
00045 , pcfg(false)
00046 , phraseOrientation(false)
00047 , sentenceOffset(0)
00048 , sourceLabels(false)
00049 , stripBitParLabels(false)
00050 , stsg(false)
00051 , t2s(false)
00052 , treeFragments(false)
00053 , unknownWordMinRelFreq(0.03f)
00054 , unknownWordUniform(false)
00055 , unpairedExtractFormat(false) {}
00056
00057
00058 std::string targetFile;
00059 std::string sourceFile;
00060 std::string alignmentFile;
00061 std::string extractFile;
00062
00063
00064 bool allowUnary;
00065 bool conditionOnTargetLhs;
00066 std::string glueGrammarFile;
00067 bool gzOutput;
00068 bool includeSentenceId;
00069 int maxNodes;
00070 int maxRuleDepth;
00071 int maxRuleSize;
00072 int maxScope;
00073 bool minimal;
00074 bool partsOfSpeech;
00075 bool partsOfSpeechFactor;
00076 bool pcfg;
00077 bool phraseOrientation;
00078 int sentenceOffset;
00079 bool sourceLabels;
00080 std::string sourceLabelSetFile;
00081 std::string sourceUnknownWordFile;
00082 bool stripBitParLabels;
00083 bool stsg;
00084 bool t2s;
00085 std::string targetUnknownWordFile;
00086 bool treeFragments;
00087 float unknownWordMinRelFreq;
00088 std::string unknownWordSoftMatchesFile;
00089 bool unknownWordUniform;
00090 bool unpairedExtractFormat;
00091 };
00092
00093 }
00094 }
00095 }