SamuraiT / mecab-python3

:snake: mecab-python. you can find original version here:http://taku910.github.io/mecab/
https://pypi.python.org/pypi/mecab-python3
Other
541 stars 52 forks source link

Caught UnicodeDecodeError when use ‘mecab.parse’ #5

Closed SherryW0424 closed 6 years ago

SherryW0424 commented 6 years ago

hello, I'm new to meCab. I use the code and get an error on 'mecab.parse' . Here is my code :

coding = 'utf8'

import MeCab

mecab = MeCab.Tagger ("-Owakati") sentence = '太郎はこの本を二郎を見た女性に渡した。' print(mecab.parse(sentence))

UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 0-1: invalid continuation byte. Is there something wrong in my configure?