Skip to content

Commit

Permalink
Use span.get_bbox() instead of get_bbox()
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiromu Hota committed Jun 13, 2020
1 parent 31c4b37 commit 81bb196
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/fonduer/utils/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ def display_candidates(
pdf_file += ".PDF"
else:
logger.error("display_candidates failed: pdf file missing.")
boxes = [
get_box(mention.context) for c in candidates for mention in c.get_mentions()
]
boxes = [m.context.get_bbox() for c in candidates for m in c.get_mentions()]
imgs = self.display_boxes(pdf_file, boxes, alternate_colors=True)
return display(*imgs)

Expand Down

0 comments on commit 81bb196

Please sign in to comment.