MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / insert

Method insert

docling/utils/layout_postprocessor.py:131–133  ·  view source on GitHub ↗
(self, min_val: float, max_val: float, id: int)

Source from the content-addressed store, hash-verified

129 self.intervals: List[Interval] = [] # Sorted by min_val
130
131 def insert(self, min_val: float, max_val: float, id: int):
132 interval = Interval(min_val, max_val, id)
133 bisect.insort(self.intervals, interval)
134
135 def find_containing(self, point: float) -> Set[int]:
136 """Find all intervals containing the point."""

Callers 7

__init__.pyFile · 0.45
preprocess.pyFile · 0.45
experiments.pyFile · 0.45
addMethod · 0.45
downloadMethod · 0.45
add_clusterMethod · 0.45
_filter_ocr_cellsMethod · 0.45

Calls 1

IntervalClass · 0.70

Tested by

no test coverage detected