mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
fix second element parse error in dict
This commit is contained in:
parent
e3e5f93ca3
commit
0c3cf04b43
@ -118,7 +118,7 @@ class DictTrie {
|
|||||||
} else {
|
} else {
|
||||||
MakeNodeInfo(node_info,
|
MakeNodeInfo(node_info,
|
||||||
buf[0],
|
buf[0],
|
||||||
(buf.size() == 2 ? atoi(buf[1].c_str()) : user_word_default_weight_),
|
(buf.size() == 2 ? user_word_default_weight_ : atoi(buf[1].c_str())),
|
||||||
(buf.size() == 3 ? buf[2] : buf[1]));
|
(buf.size() == 3 ? buf[2] : buf[1]));
|
||||||
}
|
}
|
||||||
static_node_infos_.push_back(node_info);
|
static_node_infos_.push_back(node_info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user