Spaces:
Build error
Build error
Update utils.py
Browse files
utils.py
CHANGED
@@ -18,7 +18,7 @@ starters = "(Mr|Mrs|Ms|Dr|He\s|She\s|It\s|They\s|Their\s|Our\s|We\s|But\s|Howeve
|
|
18 |
acronyms = "([A-Z][.][A-Z][.](?:[A-Z][.])?)"
|
19 |
websites = "[.](com|net|org|io|gov)"
|
20 |
|
21 |
-
def
|
22 |
text = " " + text + " "
|
23 |
text = text.replace("\n"," ")
|
24 |
text = re.sub(prefixes,"\\1<prd>",text)
|
|
|
18 |
acronyms = "([A-Z][.][A-Z][.](?:[A-Z][.])?)"
|
19 |
websites = "[.](com|net|org|io|gov)"
|
20 |
|
21 |
+
def split(text):
|
22 |
text = " " + text + " "
|
23 |
text = text.replace("\n"," ")
|
24 |
text = re.sub(prefixes,"\\1<prd>",text)
|