Spaces:
Build error
Build error
fix: Add return statement missing in preprocessing function
Browse files
app.py
CHANGED
@@ -28,6 +28,7 @@ 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]
|
|
|
31 |
|
32 |
def _remove_urls(txt_list: List[str]):
|
33 |
url_regex = re.compile(
|
|
|
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]
|
31 |
+
return txt_list
|
32 |
|
33 |
def _remove_urls(txt_list: List[str]):
|
34 |
url_regex = re.compile(
|