Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Xing Wang committed Jan 18, 2024
1 parent 897b3c2 commit 3f3361a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flair/models/sequence_tagger_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1183,9 +1183,7 @@ def augment_sentence(
]
else:
label_span = augmented_sentence[
len_task_prompt
+ label.data_point.tokens[0].idx
- 1 : len_task_prompt
len_task_prompt + label.data_point.tokens[0].idx - 1 : len_task_prompt
+ label.data_point.tokens[-1].idx
]

Expand Down

0 comments on commit 3f3361a

Please sign in to comment.