Skip to content

Commit 37d288b

Browse files
committed
speedup newmm
1 parent 5d598c6 commit 37d288b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pythainlp/tokenize/newmm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import absolute_import,division,unicode_literals,print_function
3-
from builtins import *
3+
#from builtins import *
44
'''
55
โปรแกรม multi-cut
66
ตัดคำภาษาไทยโดยใช้ Maximum Matching algorithm
@@ -61,7 +61,6 @@ def serialize(p, p2): # helper function
6161
elif p_ < p2:
6262
for path in serialize(p_, p2):
6363
yield w+'/'+path
64-
6564
q = {0}
6665
last_p = 0 # last position for yield
6766
while min(q) < len(text):

0 commit comments

Comments
 (0)