def get_keyword_phrases():
 phrases = []
 with open(jasperpath.data('keyword_phrases'), mode='r') as f:
  for line in f:
   phrase = line.strip()
   if phrase:
    phrases.append(phrase)
 return phrases

def get_keyword_phrases ( ) : phrases = [ ] with open ( jasperpath . data ( 'keyword_phrases' ) , mode = 'r' ) as f : for line in f : phrase = line . strip ( ) if phrase : phrases . append ( phrase ) return phrases
gets the keyword phrases from the keywords file in the jasper data dir .