Spaces:
Runtime error
Runtime error
peter szemraj
commited on
Commit
•
91e513f
1
Parent(s):
ea23ea9
:art: format code to black
Browse files
utils.py
CHANGED
@@ -433,6 +433,7 @@ def split_sentences(text: str):
|
|
433 |
"""
|
434 |
return re.split(r"(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=\.|\?)\s", text)
|
435 |
|
|
|
436 |
def cleantxt_wrap(ugly_text):
|
437 |
"""
|
438 |
cleantxt_wrap - applies the clean function to a string.
|
@@ -447,4 +448,3 @@ def cleantxt_wrap(ugly_text):
|
|
447 |
return clean(ugly_text)
|
448 |
else:
|
449 |
return ugly_text
|
450 |
-
|
|
|
433 |
"""
|
434 |
return re.split(r"(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=\.|\?)\s", text)
|
435 |
|
436 |
+
|
437 |
def cleantxt_wrap(ugly_text):
|
438 |
"""
|
439 |
cleantxt_wrap - applies the clean function to a string.
|
|
|
448 |
return clean(ugly_text)
|
449 |
else:
|
450 |
return ugly_text
|
|