13 _json[
"ideal"] = _set.
ideal;
14 _json[
"strict"] = _set.
strict;
16 _json[
"robust"] = _set.
robust;
19 _json[
"k_best"] = _set.
k_best;
35 if (_json.
contains(
"lattice_weight"))
44 if (_json.
contains(
"primitive_only"))
57 if (_json.
contains(
"forced_lattices"))
59 _json[
"forced_lattices"].
get<std::vector<std::string> >();
62 _set.
filter = _json[
"filter"].
get<std::string>();
73 if (_json.
contains(
"max_vol_change"))
bool contains(const std::string &name) const
Return true if JSON object contains 'name'.
T get(Args &&... args) const
Get data from json, using one of several alternatives.
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
void from_json(ClexDescription &desc, const jsonParser &json)
INDEX_TYPE Index
For long integer indexing:
Struct with optional parameters for Config Mapping Specifies default parameters for all values,...
double cost_tol
Tolerance used to determine if two mappings have identical cost.
std::vector< std::string > forced_lattices