Example #1
0
 def get_sts_score(elem):
     if elem in item_score.keys():
         return abs(float(item_score[elem]))
     else:
         return 0.0
Example #2
0
 def get_score(w):
     if w in item_score.keys():
         return str(item_score[w])
     else:
         return '0'