Skip to content

Commit

Permalink
reversed sorting order of sentences (fixes #62)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschild committed Jun 8, 2018
1 parent b80590a commit ec84d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Backend/classify.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def evaluate(sentences, prepared_sentences, classification_results, obj_a, obj_b
return object_comparer.build_final_dict(obj_a, obj_b)

def prepare_sentence_list(sentences_with_confidence):
sentences_with_confidence.sort()
sentences_with_confidence.sort(reverse = True)
return list(DataFrame(sentences_with_confidence, columns=['confidence', 'sentence'])['sentence'])

def add_points(contained_aspects, winner, sentence_score, sentence, max_sentscore, classification_confidence):
Expand Down

0 comments on commit ec84d68

Please sign in to comment.