Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ print("Most common emojis in negative tweets:", negative_emojis_count.most_commo
|
|
| 61 |
# Паттерн для поиска имен пользователей (если нужен)
|
| 62 |
username_pattern = re.compile(r"@\w+")
|
| 63 |
|
| 64 |
-
def data_preprocessing(text: str, positive_emoji_placeholder: str = '
|
| 65 |
"""Preprocessing string: lowercase, removing html-tags, punctuation, stopwords, and replacing emojis.
|
| 66 |
Also calculates the count of swear words.
|
| 67 |
"""
|
|
|
|
| 61 |
# Паттерн для поиска имен пользователей (если нужен)
|
| 62 |
username_pattern = re.compile(r"@\w+")
|
| 63 |
|
| 64 |
+
def data_preprocessing(text: str, positive_emoji_placeholder: str = 'отлично', negative_emoji_placeholder: str = 'плохо') -> Tuple[str, int]:
|
| 65 |
"""Preprocessing string: lowercase, removing html-tags, punctuation, stopwords, and replacing emojis.
|
| 66 |
Also calculates the count of swear words.
|
| 67 |
"""
|