return"Label for the relevant action: Sentences describing the context, with an incomplete sentence trailing\nanswer that plausibly completes the situation."
defdoc_to_text(self,doc,include_target=True):
text=doc['activity_label']+': '+doc['ctx']+'\n'
ifinclude_target:
letter_answer=doc['label']
ifletter_answer=='0':
index=0
elifletter_answer=='1':
index=1
elifletter_answer=='2':
index=2
elifletter_answer=='3':
index=3
else:
raiseValueError("HellaSwag from HF datasets contained an invalid answer key")