Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tweet = "hello!! dude"
- fixedTweet = ""
- tweetsFile = "tweets1.txt"
- keywordsFile = "key1.txt"
- def removePunct(string):
- punctuationList = '''!()-[]{};:'"\,<>./?@#$%^&*_~'''
- for char in string:
- if char not in punctuationList:
- fixedString = fixedTweet + char
- with open(tweetsFile) as tf:
- lines = tf.read()
- lines = lines.split("\n")
- for tweet in lines:
- tweet = lines.split(" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement