From ee8f40c94087f6c8075d6cff6dc9635a4b79ba9c Mon Sep 17 00:00:00 2001 From: c4n Date: Wed, 21 Sep 2016 20:59:51 +0700 Subject: [PATCH] Bug fixed: SystemError: Parent Module '' not loaded, cannot perform relative import --- pythainlp/segment/pyicu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythainlp/segment/pyicu.py b/pythainlp/segment/pyicu.py index d257bb3bf..fd5b38b10 100644 --- a/pythainlp/segment/pyicu.py +++ b/pythainlp/segment/pyicu.py @@ -1,6 +1,6 @@ from __future__ import absolute_import from __future__ import print_function -from .isthai import isThai +from isthai import isThai import PyICU # ตัดคำภาษาไทย def segment(txt): @@ -22,4 +22,4 @@ def segment(txt): pass return retTxt.split(',') if __name__ == "__main__": - print(segment('ทดสอบระบบตัดคำด้วยไอซียู')) \ No newline at end of file + print(segment('ทดสอบระบบตัดคำด้วยไอซียู'))