Skip to content

Commit 3ebc831

Browse files
committed
This function can't be called with None lexicon
1 parent c1fa0a8 commit 3ebc831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stanza/models/tokenization/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
logger = logging.getLogger('stanza')
1919
paths = default_paths.get_default_paths()
2020

21-
def create_dictionary(lexicon=None):
21+
def create_dictionary(lexicon):
2222
"""
2323
This function is to create a new dictionary used for improving tokenization model for multi-syllable words languages
2424
such as vi, zh or th. This function takes the lexicon as input and output a dictionary that contains three set:

0 commit comments

Comments
 (0)