ZGen  0.2.0
a linearization system for natural language.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
opt.cc File Reference
#include <iostream>
#include <boost/log/trivial.hpp>
#include "utils/logging.h"
#include "bestfirst/frontend/opt.h"

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.