24 namespace po = boost::program_options;
29 "Indices of sentences to process" )
31 "Number of threads (trimmed to number of cpus in the machine) " )
33 "Load a synchronous context-free grammar file" )
35 po::value<std::string>()->default_value (
"1" ),
36 "One or more scales. Must match the number of features in the grammar" )
38 po::value<std::string>()->default_value (
"" ),
39 "Store a file containing patterns" )
41 po::value<std::string>()->default_value (
"" ),
42 "Store a file containing non-terminal table" )
44 po::value<std::string>()->default_value (
"-" ),
45 "Source text file -- this option is ignored in server mode" )
47 po::value<std::string>()->default_value (
"no" ),
48 "Tokenize input (yes|no) -- NOT IMPLEMENTED" )
50 po::value<std::string>()->default_value (
"" ),
"NOT IMPLEMENTED" )
52 "Add sentence markers to tokenized input" )
54 po::value<std::string>()->default_value (
"" ),
55 "Loads a map file that will be used to integer-map the words of the source sentence. " )
57 po::value<unsigned>()->default_value ( 10 ),
"Maximum span" )
59 po::value<unsigned>()->default_value ( 9 ),
"Maximum gap span" )
61 po::value<std::string>()->default_value (
"" ),
"wordmap file" )
63 po::value<std::string>()->default_value (
"" ),
64 "Store sentence-specific grammar" )
66 po::value<std::string>()->default_value (
"no" ),
"Add oov rules (yes|no)" )
68 po::value<std::string>()->default_value (
"yes" ),
69 "If OOVs added, then delete oovs rather than pass them through (yes|no)" )
79 exit ( EXIT_FAILURE );
86 " not defined, mandatory unless running on server mode " );
87 exit ( EXIT_FAILURE );
void checkCreateSSGrammarOptions(po::variables_map *vm)
const std::string kServerEnable
const std::string kPreproTokenizeEnable
const std::string kGrammarFeatureweights
const std::string kPreproWordmapLoad
const std::string kPatternstoinstancesStore
std::string const kRangeExtended
List of constants to be used both across program options and class runners.
const std::string kNThreads
const std::string kSsgrammarAddoovsSourcedeletions
const std::string kSsgrammarAddoovsEnable
const std::string kPreproAddsentencemarkers
void initAllCreateSSGrammarOptions(po::options_description &desc)
const std::string kSourceLoad
const std::string kSsgrammarStore
const std::string kGrammarStorepatterns
const std::string kPatternstoinstancesGapmaxspan
const std::string kGrammarStorentorder
const std::string kPreproTokenizeLanguage
const std::string kPatternstoinstancesMaxspan
const std::string kGrammarLoad