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

"--with-charset=utf8" option is needed for the Mecab install #3

Closed
tomohideshibata opened this issue Oct 1, 2021 · 2 comments
Closed

Comments

@tomohideshibata
Copy link

Thanks for releasing the codes.
I am testing your codes for Japanese.

In the "Language-specific prerequisites" section of "Setup" in README.md, I think --with-charset=utf8 option is needed for ./configure in "install MeCab" and "install the mecab-ipadic-20070801 dictionary" because the default encoding is euc-jp.

Thanks in advance.

@xplip
Copy link
Collaborator

xplip commented Oct 3, 2021

You're completely right, thanks for pointing this out!
Not using --with-charset=utf8 in the setup will cause errors later on during tokenization. I'll change this in the README.md.

An alternative would be to not specify the mecab path and dictionary paths (in our scripts, using the --is_japanese,--mecab_dir, and mecab_dic_dir flags) at all. Mecab-python3 by default uses the mecab-ipadic-20070801 dictionary with utf-8 charset, which I didn't know about when writing the code originally.

@tomohideshibata
Copy link
Author

Thanks for your response!

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

No branches or pull requests

2 participants