ZGen  0.2.0
a linearization system for natural language.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
opt.h File Reference
#include <boost/program_options.hpp>
#include "bestfirst/option.h"

Go to the source code of this file.

Functions

bool parse_options (bool learn, const boost::program_options::variables_map &vm, ZGen::BestFirst::Option &opts)
 

Function Documentation

bool parse_options ( bool  learn,
const boost::program_options::variables_map &  vm,
ZGen::BestFirst::Option opts 
)

Convert the options in variable maps into an option types.

Parameters
[in]learnIf the learning mode is activated.
[in]vmThe variables map.
[out]optsThe options.
Returns
bool If the input variable_map is correct, return true, otherwise false.