Skip to content

Commit 06e016f

Browse files
authored
Update pythainlp/tokenize/han_solo.py
1 parent 54ab172 commit 06e016f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythainlp/tokenize/han_solo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def segment(text: str) -> list[str]:
160160
tagger = _get_tagger()
161161
x = _to_feature.featurize(text)["X"]
162162
y_pred = tagger.tag(x)
163-
list_cut = []
163+
list_cut: list[str] = []
164164
for j, k in zip(list(text), y_pred):
165165
if k == "1" or not list_cut:
166166
list_cut.append(j)

0 commit comments

Comments
 (0)