Skip to content

File not found error in Colab #112

@Irfan-S-1

Description

@Irfan-S-1
from fugashi import Tagger

tagger = Tagger('-Owakati')
text = "麩菓子は、麩を主材料とした日本の菓子。"
tagger.parse(text)
# => '麩 菓子 は 、 麩 を 主材 料 と し た 日本 の 菓子 。'
for word in tagger(text):
    print(word, word.feature.lemma, word.pos, sep='\t')
    # "feature" is the Unidic feature data as a named tuple
RuntimeError                              Traceback (most recent call last)
[/tmp/ipython-input-1764761755.py](https://localhost:8080/#) in <cell line: 0>()
      1 from fugashi import Tagger
      2 
----> 3 tagger = Tagger('-Owakati')
      4 text = "麩菓子は、麩を主材料とした日本の菓子。"
      5 tagger.parse(text)

fugashi/fugashi.pyx in fugashi.fugashi.Tagger.__init__()

fugashi/fugashi.pyx in fugashi.fugashi.GenericTagger.__init__()

RuntimeError: 
Failed initializing MeCab. Please see the README for possible solutions:

    https://github.com/polm/fugashi

If you are still having trouble, please file an issue here, and include the
ERROR DETAILS below:

    https://github.com/polm/fugashi/issues

issueを英語で書く必要はありません。

------------------- ERROR DETAILS ------------------------
arguments: [b'fugashi', b'-C', b'-r', b'/usr/local/lib/python3.12/dist-packages/unidic/dicdir/mecabrc', b'-d', b'/usr/local/lib/python3.12/dist-packages/unidic/dicdir', b'-Owakati']
param.cpp(69) [ifs] no such file or directory: /usr/local/lib/python3.12/dist-packages/unidic/dicdir/mecabrc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions