Advertisement
dmesticg

Untitled

Nov 9th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # coding=utf-8
  2. tweet = "hello!! dude"
  3. fixedTweet = ""
  4. punctuationList = '''!()-[]{};:'"\,<>./?@#$%^&*_~'''
  5. sentimentKeywords =
  6. for char in tweet:
  7. if char not in punctuationList:
  8. fixedTweet = fixedTweet + char
  9. tweet = fixedTweet.lower()
  10. tweet = tweet.split(" ")
  11. `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement