Spaces:
Build error
Build error
fix: Typo in preprocessing function name
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ model_to_use = {
|
|
| 24 |
"Use all the ones you know (~15 lang)": "paraphrase-multilingual-MiniLM-L12-v2"
|
| 25 |
}
|
| 26 |
|
| 27 |
-
def
|
| 28 |
txt_list = [re.sub('\s+', ' ', tweet) for tweet in txt_list]
|
| 29 |
txt_list = [re.sub("\'", "", tweet) for tweet in txt_list]
|
| 30 |
txt_list = [deaccent(tweet).lower() for tweet in txt_list]
|
|
|
|
| 24 |
"Use all the ones you know (~15 lang)": "paraphrase-multilingual-MiniLM-L12-v2"
|
| 25 |
}
|
| 26 |
|
| 27 |
+
def _remove_unk_chars(txt_list: List[str]):
|
| 28 |
txt_list = [re.sub('\s+', ' ', tweet) for tweet in txt_list]
|
| 29 |
txt_list = [re.sub("\'", "", tweet) for tweet in txt_list]
|
| 30 |
txt_list = [deaccent(tweet).lower() for tweet in txt_list]
|