File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2- from pathlib import Path
32from sys import stderr
43from typing import List
54
1615
1716
1817def 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
You can’t perform that action at this time.
0 commit comments