Commit 43c24325 authored by erenup's avatar erenup
Browse files

avoid invalid labels of truth

parent 3c7e676f
......@@ -249,6 +249,7 @@ class ArcProcessor(DataProcessor):
return int(truth) - 1
else:
logger.info("truth ERROR!")
examples = []
three_choice = 0
four_choice = 0
......@@ -267,6 +268,7 @@ class ArcProcessor(DataProcessor):
continue
four_choice += 1
truth = str(normalize(data_raw["answerKey"]))
assert truth is not None
question_choices = data_raw["question"]
question = question_choices["stem"]
id = data_raw["id"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment