Skip to main content
5 votes
Accepted

pset6 tweets, analyze.py and application.py

Maybe a simple typo in tweets here score = analyzer.analyze(tweets), since you want to send one tweet at a time. Also, beware here: token.lower(). The lower method returns the string in lower case, ...
DinoCoderSaurus's user avatar
3 votes
Accepted

Help with analyzer.py please?

Why do you use open with self.positives? As self.positives is a set, you could simply use if token in self.positives: or maybe if token.lower() in self.positives: Also, return the score, not just -1, ...
Blauelf's user avatar
  • 21k

Only top scored, non community-wiki answers of a minimum length are eligible