Skip to content

Commit

Permalink
Fix cleaner by removing #
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangarha committed Mar 1, 2020
1 parent 88bf952 commit f9e96db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions twc.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def remove_emoji(tweet):
def clean_tweet(tweet):
tweet = str(tweet)
tweet = tweet.lower()
tweet = tweet.replace("#", "") # remove # so we preserve hashtags for the cloud
tweet = tp.clean(tweet)
tweet = remove_emoji(tweet)
normalizer = Normalizer()
Expand Down

0 comments on commit f9e96db

Please sign in to comment.