Skip to content

Commit

Permalink
fix: quick examples
Browse files Browse the repository at this point in the history
  • Loading branch information
percevalw committed Sep 13, 2023
1 parent e5b2cb2 commit 69517ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edsnlp/viz/quick_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ def __call__(
def get_ents(self):

all_spans = {k: list(s) for k, s in self.doc.spans.items() if s}
all_spans["ents"] = list(self.doc.ents).copy()
all_spans["ents"] = list(self.doc.ents)

ents = []

for key, spans in all_spans.items():
for span in spans:
for span in list(spans):
if span in all_spans["ents"]:
all_spans["ents"].remove(span)
start, end = span.start, span.end
Expand Down

0 comments on commit 69517ac

Please sign in to comment.