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

UnicodeDecodeError #1

Open
dddouble opened this issue Apr 4, 2019 · 0 comments
Open

UnicodeDecodeError #1

dddouble opened this issue Apr 4, 2019 · 0 comments

Comments

@dddouble
Copy link

dddouble commented Apr 4, 2019

Dear, downloaded the code, run with error below

---------- python ----------
Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\DOUBLE\AppData\Local\Temp\jieba.cache
Loading model cost 0.501 seconds.
Prefix dict has been built succesfully.
Traceback (most recent call last):
File "anaysis.py", line 94, in
draw_wordcloud()
File "anaysis.py", line 83, in draw_wordcloud
wc.generate_from_frequencies(extract_keywords())
File "anaysis.py", line 61, in extract_keywords
tags = jieba.analyse.extract_tags(preprocessing(), 1500, withWeight=True)
File "anaysis.py", line 48, in preprocessing
content = f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xbf in position 2: illegal multibyte sequence

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

1 participant