Skip to content

Commit ee8f40c

Browse files
committed
Bug fixed: SystemError: Parent Module '' not loaded, cannot perform relative import
1 parent 470d922 commit ee8f40c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythainlp/segment/pyicu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import absolute_import
22
from __future__ import print_function
3-
from .isthai import isThai
3+
from isthai import isThai
44
import PyICU
55
# ตัดคำภาษาไทย
66
def segment(txt):
@@ -22,4 +22,4 @@ def segment(txt):
2222
pass
2323
return retTxt.split(',')
2424
if __name__ == "__main__":
25-
print(segment('ทดสอบระบบตัดคำด้วยไอซียู'))
25+
print(segment('ทดสอบระบบตัดคำด้วยไอซียู'))

0 commit comments

Comments
 (0)