zhiguowang / BiMPM

BiMPM: Bilateral Multi-Perspective Matching for Natural Language Sentences
Apache License 2.0
438 stars 150 forks source link

Bug in SentenceMatchDataStream #11

Closed anonymous012345678 closed 7 years ago

anonymous012345678 commented 7 years ago

Should line 62 of SentenceMatchDataStream.py be:

if len(word_idx_2)>max_sent_length:
    word_idx_2 = word_idx_2[:max_sent_length]
    char_matrix_idx_2 = char_matrix_idx_2[:max_sent_length] # char_matrix_idx_2, instead of char_matrix_idx_1
zhiguowang commented 7 years ago

Fixed it. Thanks very much!