|
5 | 5 |
|
6 | 6 | from pythainlp.change import texttoeng, texttothai
|
7 | 7 | from pythainlp.collation import collate
|
8 |
| -from pythainlp.corpus.conceptnet import edges |
9 |
| -from pythainlp.corpus.tnc import get_word_frequency_all |
10 | 8 | from pythainlp.corpus import (
|
11 | 9 | alphabet,
|
12 | 10 | country,
|
|
15 | 13 | stopwords,
|
16 | 14 | thaiword,
|
17 | 15 | tone,
|
18 |
| - wordnet, |
19 | 16 | ttc,
|
| 17 | + wordnet, |
20 | 18 | )
|
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 |
22 | 23 | from pythainlp.keywords import find_keyword
|
23 | 24 | from pythainlp.ner import ThaiNameRecognizer
|
24 | 25 | from pythainlp.number import numtowords
|
|
30 | 31 | from pythainlp.tag import pos_tag, pos_tag_sents
|
31 | 32 | from pythainlp.tokenize import etcc, isthai, syllable_tokenize, tcc, word_tokenize
|
32 | 33 | from pythainlp.util import listtext_num2num, normalize
|
33 |
| -from pythainlp.g2p import ipa |
34 | 34 |
|
35 | 35 |
|
36 | 36 | class TestUM(unittest.TestCase):
|
@@ -258,9 +258,6 @@ def test_ner(self):
|
258 | 258 | ],
|
259 | 259 | )
|
260 | 260 |
|
261 |
| - def test_Text(self): |
262 |
| - self.assertIsNotNone(Text("ทดสอบภาษาไทย")) |
263 |
| - |
264 | 261 | def test_ipa(self):
|
265 | 262 | t = ipa("คน")
|
266 | 263 | self.assertEqual(t.str(), "kʰon")
|
|
0 commit comments