We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71a80a8 commit c9f7222Copy full SHA for c9f7222
exts/smallseg.py
@@ -86,7 +86,7 @@ def cut(self,text):
86
elif mem2!=None:
87
delta = mem2[0]-i
88
if delta>=1:
89
- if (delta<5) and (re.search(ur"[\w\u2E80-\u9FFF]",t)!=None):
+ if (delta<5) and (re.search(u"[\w\u2E80-\u9FFF]",t)!=None):
90
pre = text[i-j]
91
#print pre
92
if not (pre in self.specialwords):
@@ -141,4 +141,4 @@ def cut(self,text):
141
recognised.append(text[i-j:i])
142
else:
143
recognised.extend(self._pro_unreg(text[i-j:z]))
144
- return recognised
+ return recognised
0 commit comments