Skip to content

Commit febd46e

Browse files
committed
Revert code formatting (break long line) by black.
1 parent 8035ea9 commit febd46e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pythainlp/tokenize/newmm.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,7 @@ def onecut(text, trie):
8282
else: # skip น้อยที่สุด ที่เป็นไปได้
8383
for i in range(p + 1, len(text)):
8484
if i in allow_pos: # ใช้ tcc ด้วย
85-
ww = [
86-
w
87-
for w in trie.prefixes(text[i:])
88-
if (i + len(w) in allow_pos)
89-
]
85+
ww = [w for w in trie.prefixes(text[i:]) if (i + len(w) in allow_pos)]
9086
ww = [w for w in ww if not PAT_TWOCHARS.match(w)]
9187
m = PAT_ENG.match(text[i:])
9288
if ww or m:

0 commit comments

Comments
 (0)