We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55556b1 commit dd4ebfeCopy full SHA for dd4ebfe
pythainlp/tokenize/crfcut.py
@@ -201,7 +201,7 @@ def segment(text: str) -> List[str]:
201
202
# To ensure splitting of sentences using Terminal Punctuation
203
for idx, _ in enumerate(toks):
204
- if(toks[idx].strip().endswith(('!', '.', '?'))):
+ if toks[idx].strip().endswith(('!', '.', '?')):
205
labs[idx] = "E"
206
207
# Spaces or empty strings would no longer be treated as end of sentence.
0 commit comments