Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import config
- if __name__ == '__main__':
- for tag in config.relevant_tags:
- f = open(config.output_folder + '/' + tag + '-withResponseTime.txt', 'r')
- g = open(config.output_folder + '/' + tag + '-withResponseTime-negativeRemoved.txt', 'w')
- g.write('Id Score FavoriteCount ViewCount ResponseTime Sentiment\n')
- f.next()
- for line in f:
- p = line.split(' ')
- assert len(p) == 6
- print p[0]
- if p[4] == 'NA' or float(p[4]) >= 0:
- g.write(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement