Spaces:
Build error
Build error
fix: Fix ident of preprocessing functions
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def _remove_urls(txt_list: List[str]):
|
|
43 |
def _remove_punctuation(txt_list: List[str]):
|
44 |
punctuation = string.punctuation + '¿¡|'
|
45 |
txt_list = [tweet.split(' ') for tweet in txt_list]
|
46 |
-
|
47 |
|
48 |
preprocess_pipeline = [
|
49 |
_remove_unk_chars,
|
|
|
43 |
def _remove_punctuation(txt_list: List[str]):
|
44 |
punctuation = string.punctuation + '¿¡|'
|
45 |
txt_list = [tweet.split(' ') for tweet in txt_list]
|
46 |
+
return [' '.join([word.translate(str.maketrans('', '', punctuation)) for word in tweet]) for tweet in txt_list]
|
47 |
|
48 |
preprocess_pipeline = [
|
49 |
_remove_unk_chars,
|