Skip to content

Get some errors #2

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

Closed
vvorakit opened this issue Aug 31, 2016 · 1 comment
Closed

Get some errors #2

vvorakit opened this issue Aug 31, 2016 · 1 comment

Comments

@vvorakit
Copy link

ผมได้ลง pyicu ไปแล้วครับ แล้วตามด้วยตัว pythainlp
เสร็จแล้วจะลองรันตัว test.py ดู แล้วได้ error มาตามนี้

Traceback (most recent call last):
File "test.py", line 5, in
from pythainlp.segment import segment
File "/home/benkit/TH/pythainlp/pythainlp/init.py", line 12, in
from . import postaggers
File "/home/benkit/TH/pythainlp/pythainlp/postaggers/init.py", line 2, in
from .text import tag
File "/home/benkit/TH/pythainlp/pythainlp/postaggers/text.py", line 16, in
data1 =data()
File "/home/benkit/TH/pythainlp/pythainlp/postaggers/text.py", line 14, in data
model = json.load(handle)
File "/usr/lib/python3.4/json/init.py", line 265, in load
return loads(fp.read(),
File "/usr/lib/python3.4/codecs.py", line 319, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 6: invalid start byte

มีคำแนะนำอะไรบ้างคับ

@wannaphong
Copy link
Member

แนะนำให้เอาไฟล์ test.py มารันภายนอกไลบรารีที่เก็บ pythainlp ครับ ตอนนี้ตัว pythainlp มีปัญหาเรื่องระบบ test ครับ เวชั่นต่อไปจะแยกไฟล์ test ออกเป็นอีกระบบหนึ่ง เพื่อแก้ไขปัญหานี้ครับ

wannaphong added a commit that referenced this issue Jul 5, 2017
wannaphong added a commit that referenced this issue Jul 11, 2017
wannaphong pushed a commit that referenced this issue Oct 20, 2018
Merge back from PyThaiNLP main repo
wannaphong pushed a commit that referenced this issue Nov 5, 2023
bact pushed a commit that referenced this issue Dec 11, 2023
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

2 participants