Skip to content

Commit

Permalink
delete a fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
k47ha authored May 11, 2020
1 parent 98e1d3f commit bd2b30e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions labeling/measure_agreement.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ def write_to_file(filename, kappa_dict):
parser = argparse.ArgumentParser()
parser.add_argument('infile_1', help='the first annotator csv file')
parser.add_argument('infile_2', help='the second annotator csv file')
parser.add_argument('outfile', help='the outputfile name')
parser.add_argument('

', help='the outputfile name')
args = parser.parse_args()

annotations_1, annotations_2 = load_annotations(
Expand All @@ -153,7 +155,7 @@ def write_to_file(filename, kappa_dict):
accuracy_dict = compute_accuracy(annotations_1, annotations_2)
for column, accuracy in accuracy_dict.items():
print(f"For the category {column}, the accuracy is: {accuracy} {rating}")
out_acc = args.outfile + "_accuracy.csv"a
out_acc = args.outfile + "_accuracy.csv"
write_to_file(out_acc, accuracy_dict)

# compute f1 score
Expand Down

0 comments on commit bd2b30e

Please sign in to comment.