amazon-science / wqa_tanda

This repo provides code and data used in our TANDA paper.
Other
108 stars 26 forks source link

Does the Asnq task only need to enter questions and labels? #1

Closed lduml closed 4 years ago

lduml commented 4 years ago

I don't know if I didn't understand the ideas of the paper. After reading the paper, I think the Asnq task needs to input questions, candidates answer sentences, as well as the label. But in the code when handling Asnq task only see the input questions and label, did not see the candidate answer sentences. Can you explain it to me? Thank you very much.

class AsnqProcessor(DataProcessor): ... def _create_examples(self, lines, set_type): ... examples.append( InputExample(guid=guid, text_a=text_a, text_b=None, label=label))

parhamouni commented 4 years ago

text_a is the question, text_b is the answer, and label determines whether it is a true question answer pair or not.

vuthuyfo commented 4 years ago

parhamouni@ has answered the question correctly, so I closed the issue.

lduml commented 4 years ago

thanks

lduml commented 4 years ago

Why the text_b in the code is always None? As I mentioned above.

vuthuyfo commented 4 years ago

thank you lduml@; yes, that line was incorrect, i have fixed it.