Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <fishandfrolick@gmail.com>2012-05-31 20:24:06 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-05-31 20:24:06 +0400
commit4eef94b1217a82eb979242dd3e06d8a4b6255e6e (patch)
treebab044ee77c9bf699954ea789078f4c885d66723 /phrase-extract/extract-ghkm/Options.h
parentc3d4615fc012a5ad5b33a2b587df31064e0ec82b (diff)
move c++ code out of /script/ to /
Diffstat (limited to 'phrase-extract/extract-ghkm/Options.h')
-rw-r--r--phrase-extract/extract-ghkm/Options.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/phrase-extract/extract-ghkm/Options.h b/phrase-extract/extract-ghkm/Options.h
new file mode 100644
index 000000000..362fc95d2
--- /dev/null
+++ b/phrase-extract/extract-ghkm/Options.h
@@ -0,0 +1,67 @@
+/***********************************************************************
+ Moses - statistical machine translation system
+ Copyright (C) 2006-2011 University of Edinburgh
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+***********************************************************************/
+
+#pragma once
+#ifndef EXTRACT_GHKM_OPTIONS_H_
+#define EXTRACT_GHKM_OPTIONS_H_
+
+#include <string>
+
+namespace Moses {
+namespace GHKM {
+
+struct Options {
+ public:
+ Options()
+ : allowUnary(false)
+ , conditionOnTargetLhs(false)
+ , gzOutput(false)
+ , maxNodes(15)
+ , maxRuleDepth(3)
+ , maxRuleSize(3)
+ , maxScope(3)
+ , minimal(false)
+ , pcfg(false)
+ , unpairedExtractFormat(false) {}
+
+ // Positional options
+ std::string targetFile;
+ std::string sourceFile;
+ std::string alignmentFile;
+ std::string extractFile;
+
+ // All other options
+ bool allowUnary;
+ bool conditionOnTargetLhs;
+ std::string glueGrammarFile;
+ bool gzOutput;
+ int maxNodes;
+ int maxRuleDepth;
+ int maxRuleSize;
+ int maxScope;
+ bool minimal;
+ bool pcfg;
+ bool unpairedExtractFormat;
+ std::string unknownWordFile;
+};
+
+} // namespace GHKM
+} // namespace Moses
+
+#endif