From 00f9d09cb1612481b0d3c8cabdd0be1165c43327 Mon Sep 17 00:00:00 2001 From: XAKK <39038900+XAKK@users.noreply.github.com> Date: Sat, 23 Mar 2019 20:00:13 +0800 Subject: [PATCH] fix bug --- dataset/semeval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataset/semeval.py b/dataset/semeval.py index d35bd7b..b65f44b 100644 --- a/dataset/semeval.py +++ b/dataset/semeval.py @@ -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['']] * (self.max_len - ori_len)) pos_left.extend([self.limit * 2 + 2] * (self.max_len - ori_len))