Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding=utf-8
- tweet = "hello!! dude"
- fixedTweet = ""
- punctuationList = '''!()-[]{};:'"\,<>./?@#$%^&*_~'''
- sentimentKeywords =
- for char in tweet:
- if char not in punctuationList:
- fixedTweet = fixedTweet + char
- tweet = fixedTweet.lower()
- tweet = tweet.split(" ")
- `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement