mosesdecoder/phrase-extract/extract-ghkm/Options.h

91 lines
2.3 KiB
C
Raw Normal View History

/***********************************************************************
Moses - statistical machine translation system
Copyright (C) 2006-2011 University of Edinburgh
2013-05-29 21:16:15 +04:00
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.
2013-05-29 21:16:15 +04:00
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.
2013-05-29 21:16:15 +04:00
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>
2013-05-29 21:16:15 +04:00
namespace Moses
{
namespace GHKM
{
struct Options {
2013-05-29 21:16:15 +04:00
public:
Options()
2013-05-29 21:16:15 +04:00
: allowUnary(false)
, conditionOnTargetLhs(false)
, gzOutput(false)
2015-01-21 00:36:55 +03:00
, includeSentenceId(false)
2013-05-29 21:16:15 +04:00
, maxNodes(15)
, maxRuleDepth(3)
, maxRuleSize(3)
, maxScope(3)
, minimal(false)
, pcfg(false)
, phraseOrientation(false)
2013-05-29 21:16:15 +04:00
, sentenceOffset(0)
2014-11-12 17:03:24 +03:00
, sourceLabels(false)
2014-11-21 14:30:29 +03:00
, stsg(false)
2014-11-12 17:03:24 +03:00
, t2s(false)
, treeFragments(false)
2013-05-29 21:16:15 +04:00
, unknownWordMinRelFreq(0.03f)
2014-11-12 17:03:24 +03:00
, unknownWordUniform(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;
2012-05-15 23:00:38 +04:00
bool gzOutput;
2015-01-21 00:36:55 +03:00
bool includeSentenceId;
int maxNodes;
int maxRuleDepth;
int maxRuleSize;
int maxScope;
bool minimal;
bool pcfg;
bool phraseOrientation;
2014-11-12 17:03:24 +03:00
int sentenceOffset;
bool sourceLabels;
std::string sourceLabelSetFile;
std::string sourceUnknownWordFile;
2014-11-21 14:30:29 +03:00
bool stsg;
2014-11-12 17:03:24 +03:00
bool t2s;
std::string targetUnknownWordFile;
bool treeFragments;
float unknownWordMinRelFreq;
2014-11-12 17:03:24 +03:00
std::string unknownWordSoftMatchesFile;
bool unknownWordUniform;
2014-11-12 17:03:24 +03:00
bool unpairedExtractFormat;
};
} // namespace GHKM
} // namespace Moses
#endif