bloomsburyai / question-generation

Neural text-to-text question generation
MIT License
217 stars 52 forks source link

List Index Out of Range #42

Closed ayush2051 closed 4 years ago

ayush2051 commented 4 years ago

Hi, I am getting a list out of index error

qs.extend(self.get_q_batches(ctxts[start_ix:end_ix], ans[start_ix:end_ix], ans_pos[start_ix:end_ix])) ctxt_feats[0] = np.array(ctxt_feats[0], dtype=bytes)

Could you please help me regarding the same?

tomhosking commented 4 years ago

I'd guess that your context, answer and answer position arrays are not the same length