Skip to content

Commit 1fd07e9

Browse files
committed
Rename pythainlp.llm to pythainlp.lm
1 parent 207425d commit 1fd07e9

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

docs/api/llm.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/api/lm.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. currentmodule:: pythainlp.lm
2+
3+
pythainlp.lm
4+
============
5+
6+
Modules
7+
-------
8+
9+
.. autofunction:: remove_repeated_ngrams
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def remove_repeated_ngrams(string_list: List[str], n: int = 2) -> List[str]:
1919
:Example:
2020
::
2121
22-
from pythainlp.llm import remove_repeated_ngrams
22+
from pythainlp.lm import remove_repeated_ngrams
2323
2424
remove_repeated_ngrams(['เอา', 'เอา', 'แบบ', 'ไหน'], n=1)
2525
# output: ['เอา', 'แบบ', 'ไหน']
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
import unittest
77

8-
from pythainlp.llm import remove_repeated_ngrams
8+
from pythainlp.lm import remove_repeated_ngrams
99

1010

11-
class LlmTestCase(unittest.TestCase):
11+
class LMTestCase(unittest.TestCase):
1212
def test_remove_repeated_ngrams(self):
1313
texts = ['เอา', 'เอา', 'แบบ', 'แบบ', 'แบบ', 'ไหน']
1414
self.assertEqual(

0 commit comments

Comments
 (0)