Skip to content

Commit 8ef30c5

Browse files
authored
Update nlpo3.py
1 parent 1feb8e7 commit 8ef30c5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pythainlp/tokenize/nlpo3.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
from pathlib import Path
32
from sys import stderr
43
from typing import List
54

@@ -16,13 +15,12 @@
1615

1716

1817
def load_dict(file_path: str, dict_name: str) -> bool:
19-
"""
20-
Load a dictionary file into an in-memory dictionary collection.
18+
"""Load a dictionary file into an in-memory dictionary collection.
2119
2220
The loaded dictionary will be accessible throught the assigned dict_name.
2321
*** This function does not override an existing dict name. ***
2422
25-
:param file_path: Absolute path to a dictionary file
23+
:param file_path: Path to a dictionary file
2624
:type file_path: str
2725
:param dict_name: A unique dictionary name, use for reference.
2826
:type dict_name: str
@@ -44,8 +42,7 @@ def segment(
4442
safe_mode: bool = False,
4543
parallel_mode: bool = False
4644
) -> List[str]:
47-
"""
48-
Break text into tokens.
45+
"""Break text into tokens.
4946
5047
Python binding for nlpO3. It is newmm engine in Rust.
5148

0 commit comments

Comments
 (0)