Skip to content

Get some errors #2

Closed
Closed
@vvorakit

Description

@vvorakit

ผมได้ลง 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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions