Skip to content

Commit f5cd8dc

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

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tests/__init__.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
from pythainlp.change import texttoeng, texttothai
77
from pythainlp.collation import collate
8-
from pythainlp.corpus.conceptnet import edges
9-
from pythainlp.corpus.tnc import get_word_frequency_all
108
from pythainlp.corpus import (
119
alphabet,
1210
country,
@@ -15,10 +13,13 @@
1513
stopwords,
1614
thaiword,
1715
tone,
18-
wordnet,
1916
ttc,
17+
wordnet,
2018
)
21-
from pythainlp.date import now, reign_year_to_ad, now_reign_year
19+
from pythainlp.corpus.conceptnet import edges
20+
from pythainlp.corpus.tnc import get_word_frequency_all
21+
from pythainlp.date import now, now_reign_year, reign_year_to_ad
22+
from pythainlp.g2p import ipa
2223
from pythainlp.keywords import find_keyword
2324
from pythainlp.ner import ThaiNameRecognizer
2425
from pythainlp.number import numtowords
@@ -30,7 +31,6 @@
3031
from pythainlp.tag import pos_tag, pos_tag_sents
3132
from pythainlp.tokenize import etcc, isthai, syllable_tokenize, tcc, word_tokenize
3233
from pythainlp.util import listtext_num2num, normalize
33-
from pythainlp.g2p import ipa
3434

3535

3636
class TestUM(unittest.TestCase):
@@ -258,9 +258,6 @@ def test_ner(self):
258258
],
259259
)
260260

261-
def test_Text(self):
262-
self.assertIsNotNone(Text("ทดสอบภาษาไทย"))
263-
264261
def test_ipa(self):
265262
t = ipa("คน")
266263
self.assertEqual(t.str(), "kʰon")

0 commit comments

Comments
 (0)