Skip to content

Commit

Permalink
Fix incorrect passing of flags to re.split
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja authored Aug 8, 2023
1 parent 7569644 commit b4d4f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythainlp/tokenize/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def sent_tokenize(

segments = segment(text)
elif engine == "whitespace":
segments = re.split(r" +", text, re.U)
segments = re.split(r" +", text, flags=re.U)
elif engine == "whitespace+newline":
segments = text.split()
elif engine == "tltk":
Expand Down

0 comments on commit b4d4f37

Please sign in to comment.