Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on making user dictionary. #10

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Open

error on making user dictionary. #10

GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. making user-dictionary.
  $ /usr/local/libexec/mecab/mecab-dict-index -m model.def -d . -u user2.csv -f utf-8 -t utf-8 -a user.csv 
  model.def is not a binary model. reopen it as text mode...
  dictionary.cpp(183) [cid.left_size() == matrix.left_size() && cid.right_size() == matrix.right_size()] Context ID files(./left-id.def or ./right-id.def may be broken: 1999 2894 2894 1999

What is the expected output? What do you see instead?
  $ /usr/local/libexec/mecab/mecab-dict-index -m model.def -d . -u user2.csv -f utf-8 -t utf-8 -a user.csv 
  model.def is not a binary model. reopen it as text mode...
  reading user.csv ... 
  done!


What version of the product are you using? On what operating system?
  mecab-0.996.tar.gz, ubuntu 13/10


Please provide any additional information below.
  it looks like bug. Perhaps it seems to be fixed like this.

  dictionary.cpp:182, 355  
  [before]
  ------------------------------------------------------------
  CHECK_DIE(cid.left_size()  == matrix.left_size() &&
            cid.right_size() == matrix.right_size())
  ------------------------------------------------------------
  [after]
  ------------------------------------------------------------
  CHECK_DIE(cid->left_size()  == matrix.right_size() &&
            cid->right_size() == matrix.left_size()) 

Original issue reported on code.google.com by [email protected] on 10 Mar 2014 at 10:39

@togiso
Copy link

togiso commented Apr 11, 2023

The following issues with user dictionaries in unidic 2.3.0 and later is caused by this, not by UniDic dictionaries.
#42
polm/unidic-py#8

I would like to request a priority to address this issue.

s10018 added a commit to s10018/mecab that referenced this issue Apr 11, 2023
ContextID and Matrix left and right sizes are probably reversed.

taku910/issues/10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants