File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def remove(self, word: str) -> None:
6262 child .end = False
6363 # prune up the tree
6464 for parent , child , ch in reversed (threes ):
65- if child .end or child .children :
65+ if child .end or child .children :
6666 break
6767 del parent .children [ch ] # remove from parent dict
6868
@@ -97,11 +97,11 @@ def __len__(self) -> int:
9797
9898def dict_trie (dict_source : Union [str , Iterable [str ], Trie ]) -> Trie :
9999 """
100- Create a dictionary trie from a string or an iterable.
100+ Create a dictionary trie from a file or an iterable.
101101
102102 :param str|Iterable[str]|pythainlp.util.Trie dict_source: a path to
103103 dictionary file or a list of words or a pythainlp.util.Trie object
104- :return: a trie object created from a dictionary input
104+ :return: a trie object
105105 :rtype: pythainlp.util.Trie
106106 """
107107 trie = None
You can’t perform that action at this time.
0 commit comments