Skip to content

Commit

Permalink
Merge pull request #1 from XAKK/XAKK-patch-1
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
XAKK authored Mar 23, 2019
2 parents 0f135e8 + 00f9d09 commit b418d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataset/semeval.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def get_sentence_feature(self, sens):
if ori_len > self.max_len:
sen = sen[: self.max_len]
pos_left = pos_left[: self.max_len]
pos_right = pos_left[: self.max_len]
pos_right = pos_right[: self.max_len]
elif ori_len < self.max_len:
sen.extend([self.word2id['<PAD>']] * (self.max_len - ori_len))
pos_left.extend([self.limit * 2 + 2] * (self.max_len - ori_len))
Expand Down

0 comments on commit b418d61

Please sign in to comment.