Spaces:
Sleeping
Sleeping
Commit
•
3c42c62
1
Parent(s):
aa7c4d4
don't remove hyphens
Browse files
app.py
CHANGED
@@ -45,7 +45,6 @@ number_normalizer = EnglishNumberNormalizer()
|
|
45 |
|
46 |
def preprocess(text):
|
47 |
text = number_normalizer(text).strip()
|
48 |
-
text = text.replace("-", " ")
|
49 |
if text[-1] not in punctuation:
|
50 |
text = f"{text}."
|
51 |
|
|
|
45 |
|
46 |
def preprocess(text):
|
47 |
text = number_normalizer(text).strip()
|
|
|
48 |
if text[-1] not in punctuation:
|
49 |
text = f"{text}."
|
50 |
|