Hironsan / anago

Bidirectional LSTM-CRF and ELMo for Named-Entity Recognition, Part-of-Speech Tagging and so on.
https://anago.herokuapp.com/
MIT License
1.48k stars 368 forks source link

setup error #73

Closed neolone closed 6 years ago

neolone commented 6 years ago

setup.py line: 20 long_description = open(os.path.join(here, 'README.md')).read() --> long_description = open(os.path.join(here, 'README.md'), 'r', encoding='utf-8').read()

else will get error: UnicodeDecodeError: 'gbk' codec can't decode byte 0x93 in position 3100: illegal multibyte sequence

neolone commented 6 years ago

anago/units.py line 64 with open(filename) as f: --> with open(filename, 'r', encoding='utf-8') as f:

else will get error

Hironsan commented 6 years ago

Hi @neolone Thanks to let me know the problem.

Could you tell me the following information?

neolone commented 6 years ago

Thanks~

On Thu, Jun 28, 2018 at 5:07 PM, Hiroki Nakayama notifications@github.com wrote:

Hi @neolone https://github.com/neolone Thanks to let me know the problem.

Could you tell me the following information?

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
  • TensorFlow/Keras version:
  • Python version:
  • anaGo version:

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Hironsan/anago/issues/73#issuecomment-400966506, or mute the thread https://github.com/notifications/unsubscribe-auth/AGEGO7m91txVF1XHIPzFNinkP3psXf5Oks5uBJy1gaJpZM4U5QCQ .

Hironsan commented 6 years ago

Solved.