debugging preprocess
This commit is contained in:
parent
d3b0af6126
commit
98f9dd1729
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ def preprocess_tweet(tweet):
|
||||||
tweet = re.sub(r'[^\w\s<>@#!?]', '', tweet)
|
tweet = re.sub(r'[^\w\s<>@#!?]', '', tweet)
|
||||||
|
|
||||||
# Remove non-printable/control characters (e.g., \n, \t, emojis, corrupted unicode)
|
# Remove non-printable/control characters (e.g., \n, \t, emojis, corrupted unicode)
|
||||||
tweet = re.sub(r'[^\x20-\x7E]', '', tweet)
|
# tweet = re.sub(r'[^\x20-\x7E]', '', tweet)
|
||||||
|
|
||||||
# Tokenize the tweet into individual words
|
# Tokenize the tweet into individual words
|
||||||
tokens = word_tokenize(tweet)
|
tokens = word_tokenize(tweet)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue