We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad41eff commit 4c78a08Copy full SHA for 4c78a08
pythainlp/__init__.py
@@ -1,5 +1,9 @@
1
# -*- coding: utf-8 -*-
2
from __future__ import absolute_import
3
+import six
4
+if six.PY3:
5
+ from pythainlp.sentiment import *
6
+ from pythainlp.spell import *
7
from pythainlp.romanization import *
8
from pythainlp.segment import * # เตรียมลบออก 1
9
from pythainlp.tokenize import * # แทนที่ 1
@@ -10,7 +14,5 @@
10
14
from pythainlp.postaggers import * # เตรียมลบออก 2
11
15
from pythainlp.tag import * # แทนที่ 2
12
16
from pythainlp.collation import *
13
-#from pythainlp.spell import *
-from pythainlp.sentiment import *
17
from pythainlp.test import *
18
from pythainlp.Text import *
0 commit comments