Skip to content

Commit

Permalink
🐛 fix cls => sep HIT-SCIR#538
Browse files Browse the repository at this point in the history
  • Loading branch information
AlongWY committed Sep 30, 2021
1 parent f3d4a25 commit 534de4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ltp/transformer_rel_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def forward(self, input, attention_mask=None, word_index=None, word_attention_ma
if not is_processed:
if not self.use_cls:
input = input[:, 1:, :]
if not self.use_cls:
if not self.use_sep:
input = input[:, :-1, :]

if word_attention_mask is None:
Expand Down

0 comments on commit 534de4e

Please sign in to comment.