You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> from furigana.furigana import print_html
Failed initializing MeCab. Please see the README for possible solutions:
https://github.com/SamuraiT/mecab-python3#common-issues
If you are still having trouble, please file an issue here, and include the
ERROR DETAILS below:
https://github.com/SamuraiT/mecab-python3/issues
issueを英語で書く必要はありません。
------------------- ERROR DETAILS ------------------------
arguments: -Ochasen
error message: [!tmp.empty()] unknown format type [chasen]
----------------------------------------------------------
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/misp/furigana/furigana/furigana.py", line 12, in <module>
mecab = MeCab.Tagger("-Ochasen")
File "/home/misp/furigana/venv/lib/python3.8/site-packages/MeCab/__init__.py", line 124, in __init__
super(Tagger, self).__init__(args)
RuntimeError
Traceback (most recent call last):
File "proj/.venv/lib/python3.11/site-packages/MeCab/__init__.py", line 133, in __init__
super(Tagger, self).__init__(args)
RuntimeError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "proj/.venv/lib/python3.11/site-packages/furigana/furigana.py", line 84, in split_furigana
mecab = MeCab.Tagger("-Ochasen")
^^^^^^^^^^^^^^^^^^^^^^^^
File "proj/.venv/lib/python3.11/site-packages/MeCab/__init__.py", line 135, in __init__
raise RuntimeError(error_info(rawargs)) from ee
RuntimeError:
----------------------------------------------------------
Failed initializing MeCab. Please see the README for possible solutions:
https://github.com/SamuraiT/mecab-python3#common-issues
If you are still having trouble, please file an issue here, and include the
ERROR DETAILS below:
https://github.com/SamuraiT/mecab-python3/issues
issueを英語で書く必要はありません。
------------------- ERROR DETAILS ------------------------
arguments: -Ochasen
[!tmp.empty()] unkown format type [chasen]
----------------------------------------------------------
Works for me by installed the forked repo alongside and installing it directly into my venv:
git clone git@github.com:Kajen5/furigana.git
cd <project>
pip install six semidbm pykakasi
pip install ../furigana
Would be nice to avoid a fork and upload the fixes.
In case you get:
Make sure to use a specific version of Mecab:
Check out this fork: https://github.com/Kajen5/furigana which uses pykakasi/2.0.0
The text was updated successfully, but these errors were encountered: