23 namespace po = boost::program_options;
39 po::variables_map *vm ) {
41 po::options_description desc (
"Command-line/configuration file options" );
44 "Indices of sentences to translate" )
46 "Fst(s) to count strings (use ? for multiple instances) " )
48 "Text file output containing counts, one line per fst (use ? for multiple instances )" )
50 po::value<std::string>()->default_value (
"stdarc"),
51 "Choose between stdarc, lexstdarc, and tuplearc (for the tropical sparse tuple arc semiring)")
54 }
catch ( std::exception& e ) {
55 cerr <<
"error: " << e.what() <<
"\n";
56 exit ( EXIT_FAILURE );
58 cerr <<
"Exception of unknown type!\n";
59 exit ( EXIT_FAILURE );
61 LINFO (
"Configuration loaded" );
void parseOptionsGeneric(bpo::options_description &desc, bpo::variables_map *vm, int argc, const char *argv[])
std::string const kHifstSemiring
void init_param_options(int argc, const char *argv[], po::variables_map *vm)
Function to initialize boost program_options module with command-line and config file options...
std::string const kOutputExtended
std::string const kRangeExtended
List of constants to be used both across program options and class runners.
std::string const kInputExtended