diff --git a/src/transformers/pipelines.py b/src/transformers/pipelines.py index 96cacaa1afd75d..81639f721ddcfe 100755 --- a/src/transformers/pipelines.py +++ b/src/transformers/pipelines.py @@ -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]