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 b109809 commit 9e4129a
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 9e4129a

Please sign in to comment.