Beispiel #1
0
 def funny(self):
     """Most talked about for being funny"""
     relevant = [
         t for t in self.tweets
         if t.has_tok('funny')
     ]
     return Tweet.common_names(relevant)[:5]
Beispiel #2
0
 def hosts(self):
     """Returns top 5 candidates for host"""
     relevant = [
         t for t in self.tweets
         if 'hosting' in t.rawtext
     ]
     return Tweet.common_names(relevant)[:5]
Beispiel #3
0
 def dressed(self):
     """Most talked about their dress"""
     relevant = [
         t for t in self.tweets
         if t.has_tok('dress')            
     ]
     return Tweet.common_names(relevant)[:5]
Beispiel #4
0
 def find_presenter(self, tweets):
     """Find the presenter of an award"""
     relevant = [
         t for t in self.filter_tweets(tweets)
         if t.has_tok('pres') # lancaster stems presenter to pres
     ]
     common =  Tweet.common_names(relevant)
     filtered = [
         cand for cand in common
         if not ('Best' in cand) and 'Golden Globes' != cand
     ]
     return filtered[:3]