Viktorya031 commited on
Commit
318ea53
·
verified ·
1 Parent(s): 2aae7f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = '👍', 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
  """
 
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
  """