Skip to content

Commit

Permalink
Update dictionary.cpp
Browse files Browse the repository at this point in the history
ContextID and Matrix left and right sizes are probably reversed.

taku910/issues/10
  • Loading branch information
s10018 authored Apr 11, 2023
1 parent 046fa78 commit 0af3f8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mecab/src/dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ bool Dictionary::assignUserDictionaryCosts(

cid.open(left_id_file.c_str(),
right_id_file.c_str(), &config_iconv);
CHECK_DIE(cid.left_size() == matrix.left_size() &&
cid.right_size() == matrix.right_size())
CHECK_DIE(cid.left_size() == matrix.right_size() &&
cid.right_size() == matrix.left_size())
<< "Context ID files("
<< left_id_file
<< " or "
Expand Down Expand Up @@ -352,8 +352,8 @@ bool Dictionary::compile(const Param &param,
cid.reset(new ContextID);
cid->open(left_id_file.c_str(),
right_id_file.c_str(), &config_iconv);
CHECK_DIE(cid->left_size() == matrix.left_size() &&
cid->right_size() == matrix.right_size())
CHECK_DIE(cid->left_size() == matrix.right_size() &&
cid->right_size() == matrix.left_size())
<< "Context ID files("
<< left_id_file
<< " or "
Expand Down

0 comments on commit 0af3f8b

Please sign in to comment.