Mahiruoshi
commited on
Commit
•
42750a9
1
Parent(s):
9d11cc1
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def extrac(text):
|
|
107 |
if len(i)>1:
|
108 |
if len(i) > 20:
|
109 |
try:
|
110 |
-
cur_list = re.split(r'
|
111 |
for i in cur_list:
|
112 |
if len(i)>1:
|
113 |
final_list.append(i+'。')
|
|
|
107 |
if len(i)>1:
|
108 |
if len(i) > 20:
|
109 |
try:
|
110 |
+
cur_list = re.split(r'。|!', i)
|
111 |
for i in cur_list:
|
112 |
if len(i)>1:
|
113 |
final_list.append(i+'。')
|