Skip to content

Commit dd4ebfe

Browse files
Update crfcut.py
Removed redundant brackets.
1 parent 55556b1 commit dd4ebfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythainlp/tokenize/crfcut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def segment(text: str) -> List[str]:
201201

202202
# To ensure splitting of sentences using Terminal Punctuation
203203
for idx, _ in enumerate(toks):
204-
if(toks[idx].strip().endswith(('!', '.', '?'))):
204+
if toks[idx].strip().endswith(('!', '.', '?')):
205205
labs[idx] = "E"
206206

207207
# Spaces or empty strings would no longer be treated as end of sentence.

0 commit comments

Comments
 (0)