Skip to content

Commit

Permalink
Take out last entity handling to avoid redundancy with recently merge…
Browse files Browse the repository at this point in the history
  • Loading branch information
enzoampil committed Jul 4, 2020
1 parent 4a7a483 commit af54559
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/transformers/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,9 +1044,6 @@ def __call__(self, *args, **kwargs):
else:
entity_groups += [self.group_entities(entity_group_disagg)]
entity_group_disagg = [entity]
# If it's the last entity,
if is_last_idx:
entity_groups += [self.group_entities(entity_group_disagg)]

entities += [entity]

Expand Down

0 comments on commit af54559

Please sign in to comment.