YichenGong / Densely-Interactive-Inference-Network

Cleaned code for paper "Natural Language Inference over Interaction Space"
Apache License 2.0
250 stars 57 forks source link

cannot find key 'sentence1_binary_parse_index_sequence' #9

Closed BrazilForever11 closed 6 years ago

BrazilForever11 commented 6 years ago

Hello, I am going through your code trying to understand the model.

in get_minibatch function there is a line

premise_vectors = fill_feature_vector_with_cropping_or_padding([dataset[i]['sentence1_binary_parse_index_sequence'][:] for i in indices], premise_pad_crop_pair, 1)

'sentence1_binary_parse_index_sequence' is supposed to be a key in train_snli list of dictionaries.

However, I cannot find where you create this key. Original snli set does not have it.

Regards,

BrazilForever11 commented 6 years ago

Sorry, it was dumb question.