Skip to content

Commit

Permalink
Merge pull request #1063 from PyThaiNLP/wannaphong/fix-newmm-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
wannaphong authored Jan 11, 2025
2 parents 9a9d11f + aecdd66 commit f56e7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythainlp/tokenize/newmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def segment(
# try to break by space first
space_idx = sample.rfind(" ")
if space_idx >= 0:
cut_pos = space_idx + 1
cut_pos = space_idx + 1 + _TEXT_SCAN_BEGIN
else:
tokens = list(_onecut(sample, custom_dict))
token_max_idx = 0
Expand Down

0 comments on commit f56e7d9

Please sign in to comment.