Closed SherryW0424 closed 6 years ago
hello, I'm new to meCab. I use the code and get an error on 'mecab.parse' . Here is my code :
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?
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?