diff --git a/Source/Skript/german/run_LR_SBERT.py b/Source/Skript/german/run_LR_SBERT.py index f86ca5be6c36472240583166f98bdfa30b8118fe..6f3fd5ed57564160310c1e2c36c964bd58487aca 100644 --- a/Source/Skript/german/run_LR_SBERT.py +++ b/Source/Skript/german/run_LR_SBERT.py @@ -136,7 +136,6 @@ def main(): # Check if obs_grade contains "NONE" values or is empty if not obs_grade or all(grade == 'NONE' for grade in obs_grade): - # print("obs_grade is empty or contains 'NONE' values. Skipping classification report.") count += 1 else: @@ -165,23 +164,6 @@ def main(): new_wt_avg_line = wt_avg_line.replace("\t", " ", 1) # print(new_wt_avg_line) - # - # wt_avg_line = report_lines[7].split() - # - # #wt_avg_line - # - # wg_element_1 = wt_avg_line[0] - # wg_element_2 = wt_avg_line[1] - # - # print(wg_element_1) - # print(wg_element_2) - # - # new_wt_line_out_1_2 = - - # formatted_wt_with_tabs = (wt_avg_line[:wt_avg_line.index('\t', - # wt_avg_line.index('\t')) +1 ] + '\t' + - # wt_avg_line[wt_avg_line.index('\t', wt_avg_line.index('\t')):]) - # Join the entire newly formatted list into a single string formatted_output = "\n".join([ "\t precision \t recall \t f1-score \t support", @@ -191,10 +173,6 @@ def main(): new_wt_avg_line ]) - # Print the entire formatted output - # print("\nFormatted Output:") - # print(formatted_output) - # UP print results with open(args.output_dir + "\\predictions.txt", "w") as writer: writer.write("question\treferenceAnswer\tstudentAnswer\tsuggested_grade\tobserved_grade\n")