From ec84d688ef8b61e4409e75fc3b0c065bf752c38d Mon Sep 17 00:00:00 2001 From: mschild Date: Fri, 8 Jun 2018 17:44:27 +0200 Subject: [PATCH] reversed sorting order of sentences (fixes #62) --- src/Backend/classify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backend/classify.py b/src/Backend/classify.py index ce317699..3d9a189d 100644 --- a/src/Backend/classify.py +++ b/src/Backend/classify.py @@ -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):