Skip to content

Commit cc03ec9

Browse files
committed
remove pythainlp.text.Text
1 parent a53d994 commit cc03ec9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pythainlp/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from pythainlp.soundex import lk82, metasound, udom83
1010
from pythainlp.spell import spell
1111
from pythainlp.tag import pos_tag
12-
from pythainlp.text import Text
1312
from pythainlp.tokenize import etcc, sent_tokenize, tcc, word_tokenize
1413
from pythainlp.util import bigrams, ngrams, trigram
1514

tests/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
thaiword,
1717
tone,
1818
wordnet,
19-
ttc
19+
ttc,
2020
)
2121
from pythainlp.date import now, reign_year_to_ad, now_reign_year
2222
from pythainlp.keywords import find_keyword
@@ -31,7 +31,7 @@
3131
from pythainlp.tokenize import etcc, isthai, syllable_tokenize, tcc, word_tokenize
3232
from pythainlp.util import listtext_num2num, normalize
3333
from pythainlp.g2p import ipa
34-
from pythainlp.text import Text
34+
3535

3636
class TestUM(unittest.TestCase):
3737
"""
@@ -262,8 +262,8 @@ def test_Text(self):
262262
self.assertIsNotNone(Text("ทดสอบภาษาไทย"))
263263

264264
def test_ipa(self):
265-
t=ipa("คน")
266-
self.assertEqual(t.str(),'kʰon')
265+
t = ipa("คน")
266+
self.assertEqual(t.str(), "kʰon")
267267
self.assertIsNotNone(t.list())
268268
self.assertIsNotNone(t.xsampa_list())
269269

0 commit comments

Comments
 (0)