Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: implement sparse hybrid table recovery with support for multiple header rows and improved diagnostics

myhloli0e8347182a2a
diff --git a/.gitignore b/.gitignore
index 20937e4c..bc88f0a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -56,4 +56,5 @@ debug_utils/
_build/
-output/.coverage
+output/
+.coverage
diff --git a/mineru/utils/native_pdf_table/candidate.py b/mineru/utils/native_pdf_table/candidate.py
index e2243915..283d6c58 100644
--- a/mineru/utils/native_pdf_table/candidate.py
+++ b/mineru/utils/native_pdf_table/candidate.py
@@ -4,6 +4,7 @@
from __future__ import annotations
import html
+from bisect import bisect_left, bisect_right
from dataclasses import dataclass
from mineru.types import BBox
@@ -32,6 +33,15 @@ class GridCellSpec:
bbox: BBox
+@dataclass(frozen=True, slots=True)
+class _GridSpecIndex:
+ """保存规则网格的原子轨道和原子格到逻辑单元格映射。"""
+
+ x_tracks: tuple[float, ...]
+ y_tracks: tuple[float, ...]
+ owners: tuple[tuple[int, ...], ...]
+
+
def _validate_grid_specs(
rows: int,
cols: int,
@@ -88,6 +98,75 @@ def _choose_cell_for_glyph(
return best_index, ambiguous
+def _build_grid_spec_index(
+ rows: int,
+ cols: int,
+ specs: tuple[GridCellSpec, ...],
+) -> _GridSpecIndex | None:
+ """从完整矩形网格规格恢复原子轨道,供大表快速落格。"""
+
+ x_values: list[list[float]] = [[] for _ in range(cols + 1)]
+ y_values: list[list[float]] = [[] for _ in range(rows + 1)]
+ owners = [[-1 for _ in range(cols)] for _ in range(rows)]
+ for index, spec in enumerate(specs):
+ x_values[spec.col].append(spec.bbox[0])
+ x_values[spec.col + spec.colspan].append(spec.bbox[2])
+ y_values[spec.row].append(spec.bbox[1])
+ y_values[spec.row + spec.rowspan].append(spec.bbox[3])
+ for row in range(spec.row, spec.row + spec.rowspan):
+ for col in range(spec.col, spec.col + spec.colspan):
+ owners[row][col] = index
+ if any(not values for values in (*x_values, *y_values)) or any(owner < 0 for row in owners for owner in row):
+ return None
+ x_tracks = tuple(sum(values) / len(values) for values in x_values)
+ y_tracks = tuple(sum(values) / len(values) for values in y_values)
+ if any(current <= previous for previous, current in zip(x_tracks, x_tracks[1:])) or any(
+ current <= previous for previous, current in zip(y_tracks, y_tracks[1:])
+ ):
+ return None
+ return _GridSpecIndex(
+ x_tracks=x_tracks,
+ y_tracks=y_tracks,
+ owners=tuple(tuple(row) for row in owners),
+ )
+
+
+def _choose_cell_for_glyph_indexed(
+ glyph: NativeTableGlyph,
+ specs: tuple[GridCellSpec, ...],
+ index: _GridSpecIndex,
+) -> tuple[int | None, bool]:
+ """只在字符覆盖的邻近原子格中选择逻辑单元格。"""
+
+ cols = len(index.x_tracks) - 1
+ rows = len(index.y_tracks) - 1
+ left_col = max(0, min(cols - 1, bisect_right(index.x_tracks, glyph.bbox[0]) - 1))
+ right_col = max(0, min(cols - 1, bisect_left(index.x_tracks, glyph.bbox[2])))
+ top_row = max(0, min(rows - 1, bisect_right(index.y_tracks, glyph.bbox[1]) - 1))
+ bottom_row = max(0, min(rows - 1, bisect_left(index.y_tracks, glyph.bbox[3])))
+ candidate_indices = {
+ index.owners[row][col]
+ for row in range(max(0, top_row - 1), min(rows, bottom_row + 2))
+ for col in range(max(0, left_col - 1), min(cols, right_col + 2))
+ }
+ overlaps = [(glyph_overlap_ratio(glyph, specs[cell_index].bbox), cell_index) for cell_index in candidate_indices]
+ overlaps.sort(reverse=True)
+ if not overlaps:
+ return None, False
+ best_ratio, best_index = overlaps[0]
+ if best_ratio <= 0:
+ center_x, center_y = bbox_center(glyph.bbox)
+ containing = [
+ cell_index
+ for cell_index in candidate_indices
+ if specs[cell_index].bbox[0] <= center_x <= specs[cell_index].bbox[2]
+ and specs[cell_index].bbox[1] <= center_y <= specs[cell_index].bbox[3]
+ ]
+ return (containing[0], False) if len(containing) == 1 else (None, False)
+ ambiguous = len(overlaps) > 1 and overlaps[1][0] >= 0.45 and abs(best_ratio - overlaps[1][0]) <= 0.02
+ return best_index, ambiguous
+
+
def _order_consistency(
text: NativeTableText,
assignments: dict[int, int],
@@ -144,6 +223,7 @@ def build_candidate(
allow_single_row: bool = False,
allow_single_column: bool = False,
require_atomic_tokens: bool = False,
+ use_grid_index: bool = False,
diagnostics: dict[str, object] | None = None,
) -> NativeTableCandidate | None:
"""校验网格、唯一分配字符并计算统一质量分。"""
@@ -161,8 +241,13 @@ def build_candidate(
assignments: dict[int, int] = {}
cell_glyphs: list[list[NativeTableGlyph]] = [[] for _ in specs]
ambiguous_count = 0
+ grid_index = _build_grid_spec_index(rows, cols, specs) if use_grid_index else None
for glyph in text.glyphs:
- cell_index, ambiguous = _choose_cell_for_glyph(glyph, specs)
+ cell_index, ambiguous = (
+ _choose_cell_for_glyph_indexed(glyph, specs, grid_index)
+ if grid_index is not None
+ else _choose_cell_for_glyph(glyph, specs)
+ )
if cell_index is None:
continue
assignments[glyph.glyph_id] = cell_index
diff --git a/mineru/utils/native_pdf_table/contracts.py b/mineru/utils/native_pdf_table/contracts.py
index acae840d..4c33ed48 100644
--- a/mineru/utils/native_pdf_table/contracts.py
+++ b/mineru/utils/native_pdf_table/contracts.py
@@ -12,6 +12,7 @@ from mineru.types import BBox
NativeTableCandidateSource = Literal[
"vector_grid",
+ "sparse_hybrid",
"sparse_grid",
"text_grid",
"key_value",
diff --git a/mineru/utils/native_pdf_table/engine.py b/mineru/utils/native_pdf_table/engine.py
index 3eb7572d..499f3583 100644
--- a/mineru/utils/native_pdf_table/engine.py
+++ b/mineru/utils/native_pdf_table/engine.py
@@ -18,6 +18,10 @@ from .contracts import (
NativeTableText,
)
from .geometry import bbox_intersection, normalize_bbox
+from .sparse_hybrid import (
+ build_sparse_hybrid_candidates,
+ diagnose_sparse_hybrid_candidate_builds,
+)
from .text import build_native_table_text
from .text_grid import build_text_candidates, diagnose_text_candidate_builds
from .vector import (
@@ -28,13 +32,15 @@ from .vector import (
MIN_TOPOLOGY_SCORE_GAP = 0.05
_SOURCE_PRIORITY = {
- "vector_grid": 4,
+ "vector_grid": 5,
+ "sparse_hybrid": 4,
"sparse_grid": 3,
"key_value": 2,
"text_grid": 1,
}
_VERIFIED_SCORE_BY_SOURCE = {
"vector_grid": 0.95,
+ "sparse_hybrid": 0.98,
"sparse_grid": 0.95,
"key_value": 0.95,
"text_grid": 0.95,
@@ -104,6 +110,32 @@ def _has_attempted_line_rect_grid_conflict(
)
+def _resolved_rect_undercount_candidate(
+ candidates: Iterable[NativeTableCandidate],
+ attempts: Iterable[dict[str, Any]],
+ text: NativeTableText,
+) -> NativeTableCandidate | None:
+ """在线网格明确漏行且矩形晶格逐行吻合时允许 rect 独立胜出。"""
+
+ rect_candidates = [candidate for candidate in candidates if _is_verified_rect_candidate(candidate)]
+ if len(rect_candidates) != 1:
+ return None
+ rect_candidate = rect_candidates[0]
+ line_attempts = [attempt for attempt in attempts if attempt.get("evidence") == "line_grid"]
+ has_matching_undercount = any(
+ attempt.get("first_rejection_gate") == "physical_row_undercount"
+ and isinstance(attempt.get("grid"), dict)
+ and attempt["grid"].get("cols") == rect_candidate.cols
+ and attempt["grid"].get("rows", 0) < rect_candidate.rows
+ for attempt in line_attempts
+ )
+ if not has_matching_undercount:
+ return None
+ if rect_candidate.rows != len(text.rows) or rect_candidate.text_capture < 1.0 or rect_candidate.order_consistency < 1.0:
+ return None
+ return rect_candidate
+
+
def _passes_verified_threshold(candidate: NativeTableCandidate) -> bool:
"""按候选来源应用独立校准的 verified 可靠度门槛。"""
@@ -331,7 +363,33 @@ def _evaluate_native_pdf_table(
text,
)
physical_topology_conflict = _has_attempted_line_rect_grid_conflict(vector_attempts)
- text_candidates = build_text_candidates(table_input, text) if len(text.rows) >= 2 else []
+ if (
+ physical_topology_conflict
+ and _resolved_rect_undercount_candidate(
+ vector_candidates,
+ vector_attempts,
+ text,
+ )
+ is not None
+ ):
+ physical_topology_conflict = False
+ vector_selection = None if physical_topology_conflict else _select_candidate(vector_candidates)
+ sparse_hybrid_allowed = len(text.rows) >= 2 and vector_selection is None and not physical_topology_conflict
+ if sparse_hybrid_allowed:
+ if not vector_attempts:
+ vector_attempts = diagnose_vector_candidate_builds(
+ table_input,
+ text,
+ )
+ if _has_alias_affected_physical_blank_row(vector_attempts):
+ sparse_hybrid_allowed = False
+ sparse_hybrid_candidates = build_sparse_hybrid_candidates(table_input, text) if sparse_hybrid_allowed else []
+ sparse_hybrid_selection = _select_candidate(sparse_hybrid_candidates)
+ text_candidates = (
+ build_text_candidates(table_input, text)
+ if len(text.rows) >= 2 and vector_selection is None and sparse_hybrid_selection is None
+ else []
+ )
if text_candidates and (not vector_candidates or physical_topology_conflict):
if not vector_attempts:
vector_attempts = diagnose_vector_candidate_builds(
@@ -340,7 +398,11 @@ def _evaluate_native_pdf_table(
)
if _has_alias_affected_physical_blank_row(vector_attempts) or _has_physical_row_undercount(vector_attempts):
text_candidates = []
- generated_candidates = [*vector_candidates, *text_candidates]
+ generated_candidates = [
+ *vector_candidates,
+ *sparse_hybrid_candidates,
+ *text_candidates,
+ ]
candidates = _remove_undercounted_vector_candidates(generated_candidates)
selected = None if physical_topology_conflict else _select_candidate(candidates)
if selected is not None:
@@ -384,6 +446,14 @@ def diagnose_native_pdf_table(table_input: NativeTableInput) -> dict[str, Any]:
if evaluation.text is not None
else ()
)
+ sparse_hybrid_attempts = (
+ diagnose_sparse_hybrid_candidate_builds(
+ table_input,
+ evaluation.text,
+ )
+ if evaluation.text is not None
+ else ()
+ )
first_rejection_gate = evaluation.first_rejection_gate
if first_rejection_gate == "candidate_generation":
text_attempt = next(
@@ -405,6 +475,11 @@ def diagnose_native_pdf_table(table_input: NativeTableInput) -> dict[str, Any]:
)
if text_attempt is not None:
first_rejection_gate = "text_" + str(text_attempt["first_rejection_gate"])
+ elif sparse_attempt := next(
+ (attempt for attempt in sparse_hybrid_attempts if attempt.get("first_rejection_gate")),
+ None,
+ ):
+ first_rejection_gate = "sparse_hybrid_" + str(sparse_attempt["first_rejection_gate"])
elif line_attempt is not None and line_attempt.get("first_rejection_gate"):
first_rejection_gate = "vector_" + str(line_attempt["first_rejection_gate"])
@@ -459,6 +534,7 @@ def diagnose_native_pdf_table(table_input: NativeTableInput) -> dict[str, Any]:
evaluation.physical_topology_conflict or _has_line_rect_topology_conflict(evaluation.candidates)
),
"vector_attempts": list(vector_attempts),
+ "sparse_hybrid_attempts": list(sparse_hybrid_attempts),
"text_attempts": list(text_attempts),
"generated_candidates": [candidate_record(candidate) for candidate in evaluation.generated_candidates],
"removed_by_undercount": removed_candidates,
diff --git a/mineru/utils/native_pdf_table/sparse_hybrid.py b/mineru/utils/native_pdf_table/sparse_hybrid.py
new file mode 100644
index 00000000..bb901fe3
--- /dev/null
+++ b/mineru/utils/native_pdf_table/sparse_hybrid.py
@@ -0,0 +1,888 @@
+# Copyright (c) Opendatalab. All rights reserved.
+"""融合稀疏物理边界和文本对齐网络恢复少线表格结构。"""
+
+from __future__ import annotations
+
+import math
+import statistics
+from collections import Counter
+from dataclasses import dataclass
+from typing import Any
+
+from .candidate import GridCellSpec, build_candidate
+from .contracts import (
+ NativeTableCandidate,
+ NativeTableInput,
+ NativeTableText,
+ NativeTableTextRow,
+)
+from .geometry import (
+ covered_interval_ratio,
+ normalize_angle,
+ normalize_bbox,
+ page_bbox_to_table_local,
+ table_local_size,
+)
+
+MIN_COLUMN_SUPPORT = 0.60
+MIN_OVERALL_ANCHOR_SUPPORT = 0.80
+MIN_SPARSE_RELIABILITY = 0.98
+MAX_SPARSE_HYPOTHESES = 8
+MAX_HEADER_ROWS = 2
+
+
+@dataclass(frozen=True, slots=True)
+class _LocalRule:
+ """保存转换到正向表格坐标后的细线区间。"""
+
+ orientation: str
+ coordinate: float
+ start: float
+ end: float
+ width: float
+
+
+@dataclass(frozen=True, slots=True)
+class _TrackHypothesis:
+ """保存一组少线表叶子列轨及其独立证据。"""
+
+ evidence: str
+ x_tracks: tuple[float, ...]
+ physical_boundaries: frozenset[int]
+ body_start: int
+ reliability: float
+
+
+@dataclass(frozen=True, slots=True)
+class _DenseLayout:
+ """保存正文稠密行推断出的列数和连续正文起点。"""
+
+ target_cols: int
+ body_start: int
+ dense_row_indices: tuple[int, ...]
+
+
+def _cluster_with_members(
+ values: list[float],
+ tolerance: float,
+) -> list[tuple[float, tuple[float, ...]]]:
+ """按一维距离聚类坐标并保留每簇原始成员。"""
+
+ if not values:
+ return []
+ clusters: list[list[float]] = [[value] for value in sorted(values)[:1]]
+ for value in sorted(values)[1:]:
+ center = float(statistics.median(clusters[-1]))
+ if abs(value - center) <= tolerance:
+ clusters[-1].append(value)
+ else:
+ clusters.append([value])
+ return [(float(statistics.median(cluster)), tuple(cluster)) for cluster in clusters]
+
+
+def _local_rules(
+ table_input: NativeTableInput,
+ width: float,
+ height: float,
+) -> tuple[_LocalRule, ...]:
+ """把页面 drawing 线转换为按局部长轴重新判向的规则区间。"""
+
+ table_bbox = normalize_bbox(table_input.table_bbox)
+ if table_bbox is None:
+ return ()
+ angle = normalize_angle(table_input.angle)
+ output: list[_LocalRule] = []
+ for rule in table_input.drawing_lines:
+ bbox = normalize_bbox(rule.bbox)
+ if bbox is None:
+ continue
+ local_bbox = page_bbox_to_table_local(bbox, table_bbox, angle)
+ if local_bbox is None:
+ continue
+ local_width = local_bbox[2] - local_bbox[0]
+ local_height = local_bbox[3] - local_bbox[1]
+ if local_width >= max(1.0, 3.0 * max(local_height, 0.1)):
+ output.append(
+ _LocalRule(
+ orientation="horizontal",
+ coordinate=(local_bbox[1] + local_bbox[3]) / 2.0,
+ start=max(0.0, local_bbox[0]),
+ end=min(width, local_bbox[2]),
+ width=max(rule.width, local_height),
+ )
+ )
+ elif local_height >= max(1.0, 3.0 * max(local_width, 0.1)):
+ output.append(
+ _LocalRule(
+ orientation="vertical",
+ coordinate=(local_bbox[0] + local_bbox[2]) / 2.0,
+ start=max(0.0, local_bbox[1]),
+ end=min(height, local_bbox[3]),
+ width=max(rule.width, local_width),
+ )
+ )
+ return tuple(output)
+
+
+def _long_horizontal_rules(
+ rules: tuple[_LocalRule, ...],
+ width: float,
+) -> tuple[_LocalRule, ...]:
+ """筛选能够独立证明表带存在的长横线。"""
+
+ return tuple(rule for rule in rules if rule.orientation == "horizontal" and rule.end - rule.start >= 0.50 * width)
+
+
+def _vertical_track_evidence(
+ rules: tuple[_LocalRule, ...],
+ width: float,
+ height: float,
+ tolerance: float,
+) -> tuple[tuple[float, ...], dict[float, float]]:
+ """合并同 X 分段竖线并返回覆盖足够的物理列轨。"""
+
+ vertical_rules = [rule for rule in rules if rule.orientation == "vertical"]
+ clusters = _cluster_with_members(
+ [rule.coordinate for rule in vertical_rules],
+ tolerance,
+ )
+ positions: list[float] = []
+ coverages: dict[float, float] = {}
+ for coordinate, _members in clusters:
+ intervals = [(rule.start, rule.end) for rule in vertical_rules if abs(rule.coordinate - coordinate) <= tolerance]
+ coverage = covered_interval_ratio(intervals, 0.0, height)
+ if coverage < 0.75:
+ continue
+ snapped = 0.0 if coordinate <= tolerance else width if width - coordinate <= tolerance else coordinate
+ positions.append(snapped)
+ coverages[snapped] = max(coverages.get(snapped, 0.0), coverage)
+ positions.extend([0.0, width])
+ return tuple(sorted(set(positions))), coverages
+
+
+def _rectangle_edge_evidence(
+ table_input: NativeTableInput,
+ text: NativeTableText,
+ width: float,
+ height: float,
+ tolerance: float,
+) -> tuple[float, ...]:
+ """从表头单元格矩形和上下细条中提取可复现的列边界。"""
+
+ table_bbox = normalize_bbox(table_input.table_bbox)
+ if table_bbox is None:
+ return ()
+ angle = normalize_angle(table_input.angle)
+ raw_edges: list[float] = []
+ header_limit = min(0.30 * height, 3.0 * text.median_glyph_height)
+ thin_limit = max(1.5, 0.40 * text.median_glyph_height)
+ for rectangle in table_input.rectangles:
+ if rectangle.segment_count != 5 or not (rectangle.fill_visible or rectangle.stroke_visible):
+ continue
+ bbox = normalize_bbox(rectangle.bbox)
+ if bbox is None:
+ continue
+ local_bbox = page_bbox_to_table_local(bbox, table_bbox, angle)
+ if local_bbox is None:
+ continue
+ rect_width = local_bbox[2] - local_bbox[0]
+ rect_height = local_bbox[3] - local_bbox[1]
+ is_thin_rule = rect_height <= thin_limit and rect_width >= 2.0 * text.median_glyph_width
+ is_header_cell = (
+ local_bbox[1] <= header_limit
+ and rect_height <= 3.0 * text.median_glyph_height
+ and rect_width >= 2.0 * text.median_glyph_width
+ )
+ if not (is_thin_rule or is_header_cell):
+ continue
+ raw_edges.extend([max(0.0, local_bbox[0]), min(width, local_bbox[2])])
+
+ supported = [
+ coordinate
+ for coordinate, members in _cluster_with_members(raw_edges, tolerance)
+ if len(members) >= 2 or coordinate <= tolerance or width - coordinate <= tolerance
+ ]
+ return tuple(sorted({0.0, width, *supported}))
+
+
+def _canonical_edge_tracks(
+ positions: tuple[float, ...],
+ width: float,
+ tolerance: float,
+) -> tuple[float, ...]:
+ """折叠靠近表格外缘的重复矩形端点并返回严格递增轨道。"""
+
+ snapped = [0.0 if position <= tolerance else width if width - position <= tolerance else position for position in positions]
+ tracks = tuple(sorted(set(snapped)))
+ if any(current <= previous for previous, current in zip(tracks, tracks[1:])):
+ return ()
+ return tracks
+
+
+def _longest_consecutive_run(indices: list[int]) -> tuple[int, ...]:
+ """返回整数索引列表中最长的连续区间。"""
+
+ if not indices:
+ return ()
+ runs: list[list[int]] = [[indices[0]]]
+ for index in indices[1:]:
+ if index == runs[-1][-1] + 1:
+ runs[-1].append(index)
+ else:
+ runs.append([index])
+ return tuple(max(runs, key=lambda run: (len(run), run[-1])))
+
+
+def _infer_dense_layout(text: NativeTableText) -> _DenseLayout | None:
+ """从正文重复 token 数选择叶子列数和首条正文行。"""
+
+ counts = Counter(len(row.tokens) for row in text.rows if len(row.tokens) >= 2)
+ hypotheses: list[tuple[int, int, int, tuple[int, ...]]] = []
+ for count, occurrences in counts.items():
+ indices = [row.row_index for row in text.rows if len(row.tokens) == count]
+ run = _longest_consecutive_run(indices)
+ if len(run) < 2:
+ continue
+ hypotheses.append((len(run), occurrences, count, run))
+ if not hypotheses:
+ return None
+ _run_length, _occurrences, target_cols, run = max(hypotheses)
+ return _DenseLayout(
+ target_cols=target_cols,
+ body_start=run[0],
+ dense_row_indices=run,
+ )
+
+
+def _infer_text_tracks(
+ text: NativeTableText,
+ width: float,
+ layout: _DenseLayout,
+) -> tuple[float, ...] | None:
+ """用正文相邻 token 空隙的中位位置推断叶子列边界。"""
+
+ dense_rows = [text.rows[index] for index in layout.dense_row_indices]
+ boundaries: list[float] = []
+ for col in range(layout.target_cols - 1):
+ midpoints = [(row.tokens[col].bbox[2] + row.tokens[col + 1].bbox[0]) / 2.0 for row in dense_rows]
+ boundary = float(statistics.median(midpoints))
+ if not 0.0 < boundary < width:
+ return None
+ boundaries.append(boundary)
+ tracks = (0.0, *boundaries, width)
+ if any(current <= previous for previous, current in zip(tracks, tracks[1:])):
+ return None
+ return tracks
+
+
+def _row_glyph_occupancy(
+ row: NativeTableTextRow,
+ text: NativeTableText,
+ x_tracks: tuple[float, ...],
+) -> set[int]:
+ """按字符中心统计一条视觉行实际占用的叶子列。"""
+
+ glyph_by_id = {glyph.glyph_id: glyph for glyph in text.glyphs}
+ occupied: set[int] = set()
+ for glyph_id in row.glyph_ids:
+ glyph = glyph_by_id[glyph_id]
+ center = (glyph.bbox[0] + glyph.bbox[2]) / 2.0
+ col = next(
+ (index for index, (left, right) in enumerate(zip(x_tracks, x_tracks[1:])) if left <= center <= right),
+ None,
+ )
+ if col is not None:
+ occupied.add(col)
+ return occupied
+
+
+def _track_support(
+ text: NativeTableText,
+ x_tracks: tuple[float, ...],
+ body_start: int,
+) -> tuple[float, float, tuple[set[int], ...]] | None:
+ """校验正文行、关键列和各叶子列的重复占用支持。"""
+
+ body_rows = text.rows[body_start:]
+ cols = len(x_tracks) - 1
+ if len(body_rows) < 2 or cols < 2:
+ return None
+ occupancies = tuple(_row_glyph_occupancy(row, text, x_tracks) for row in body_rows)
+ minimum_dense_cols = max(2, math.ceil(MIN_COLUMN_SUPPORT * cols))
+ if any(len(occupancy) < minimum_dense_cols for occupancy in occupancies):
+ return None
+ first_columns = [min(occupancy) for occupancy in occupancies if occupancy]
+ if not first_columns:
+ return None
+ key_col = Counter(first_columns).most_common(1)[0][0]
+ if sum(key_col in occupancy for occupancy in occupancies) / len(occupancies) < MIN_COLUMN_SUPPORT:
+ return None
+ supports = [sum(col in occupancy for occupancy in occupancies) / len(occupancies) for col in range(cols)]
+ minimum_support = min(supports)
+ overall_support = float(statistics.mean(supports))
+ if minimum_support < MIN_COLUMN_SUPPORT or overall_support < MIN_OVERALL_ANCHOR_SUPPORT:
+ return None
+ return minimum_support, overall_support, occupancies
+
+
+def _nearest_physical_boundaries(
+ x_tracks: tuple[float, ...],
+ physical_positions: tuple[float, ...],
+ tolerance: float,
+) -> frozenset[int]:
+ """标记能被独立 drawing 或矩形边缘支持的内部列边界。"""
+
+ return frozenset(
+ index
+ for index, coordinate in enumerate(x_tracks[1:-1], start=1)
+ if any(abs(coordinate - physical) <= tolerance for physical in physical_positions)
+ )
+
+
+def _infer_y_tracks(
+ text: NativeTableText,
+ rules: tuple[_LocalRule, ...],
+ height: float,
+) -> tuple[float, ...] | None:
+ """以视觉行中心中点为基础并优先吸附相邻行间横线。"""
+
+ if len(text.rows) < 2:
+ return None
+ tracks: list[float] = [0.0]
+ horizontal_rules = [rule for rule in rules if rule.orientation == "horizontal"]
+ for previous, current in zip(text.rows, text.rows[1:]):
+ candidates = [rule for rule in horizontal_rules if previous.bbox[3] - 0.5 <= rule.coordinate <= current.bbox[1] + 0.5]
+ if candidates:
+ boundary = max(candidates, key=lambda rule: rule.end - rule.start).coordinate
+ else:
+ previous_center = (previous.bbox[1] + previous.bbox[3]) / 2.0
+ current_center = (current.bbox[1] + current.bbox[3]) / 2.0
+ boundary = (previous_center + current_center) / 2.0
+ tracks.append(boundary)
+ tracks.append(height)
+ if any(current <= previous for previous, current in zip(tracks, tracks[1:])):
+ return None
+ return tuple(tracks)
+
+
+def _horizontal_separator_coverage(
+ rules: tuple[_LocalRule, ...],
+ boundary: float,
+ left: float,
+ right: float,
+ tolerance: float,
+) -> float:
+ """计算指定表头行边界在一个叶子列范围内的横线覆盖率。"""
+
+ intervals = [
+ (rule.start, rule.end)
+ for rule in rules
+ if rule.orientation == "horizontal" and abs(rule.coordinate - boundary) <= tolerance
+ ]
+ return covered_interval_ratio(intervals, left, right)
+
+
+def _row_token_columns(
+ row: NativeTableTextRow,
+ x_tracks: tuple[float, ...],
+) -> list[int]:
+ """把一行粗 token 的中心映射到叶子列。"""
+
+ output: list[int] = []
+ for token in row.tokens:
+ center = (token.bbox[0] + token.bbox[2]) / 2.0
+ col = next(
+ (index for index, (left, right) in enumerate(zip(x_tracks, x_tracks[1:])) if left <= center <= right),
+ None,
+ )
+ if col is not None:
+ output.append(col)
+ return output
+
+
+def _two_level_header_specs(
+ text: NativeTableText,
+ x_tracks: tuple[float, ...],
+ y_tracks: tuple[float, ...],
+ rules: tuple[_LocalRule, ...],
+ tolerance: float,
+) -> tuple[GridCellSpec, ...] | None:
+ """用局部横线和上下层文本恢复两层表头的 rowspan/colspan。"""
+
+ cols = len(x_tracks) - 1
+ boundary = y_tracks[1]
+ coverages = [
+ _horizontal_separator_coverage(
+ rules,
+ boundary,
+ x_tracks[col],
+ x_tracks[col + 1],
+ tolerance,
+ )
+ for col in range(cols)
+ ]
+ if any(0.20 < coverage < 0.80 for coverage in coverages):
+ return None
+ absent_cols = {col for col, coverage in enumerate(coverages) if coverage <= 0.20}
+ present_cols = set(range(cols)) - absent_cols
+ specs: list[GridCellSpec] = [
+ GridCellSpec(
+ row=0,
+ col=col,
+ rowspan=2,
+ colspan=1,
+ bbox=(x_tracks[col], y_tracks[0], x_tracks[col + 1], y_tracks[2]),
+ )
+ for col in sorted(absent_cols)
+ ]
+
+ child_occupied = _row_glyph_occupancy(text.rows[1], text, x_tracks).intersection(present_cols)
+ top_tokens = [
+ (token, col)
+ for token, col in zip(
+ text.rows[0].tokens,
+ _row_token_columns(text.rows[0], x_tracks),
+ strict=False,
+ )
+ if col in present_cols
+ ]
+ assigned_groups: dict[int, list[int]] = {index: [] for index in range(len(top_tokens))}
+ for col in sorted(child_occupied):
+ col_center = (x_tracks[col] + x_tracks[col + 1]) / 2.0
+ if not top_tokens:
+ return None
+ owner = min(
+ range(len(top_tokens)),
+ key=lambda index: abs(col_center - (top_tokens[index][0].bbox[0] + top_tokens[index][0].bbox[2]) / 2.0),
+ )
+ assigned_groups[owner].append(col)
+
+ top_covered: set[int] = set()
+ for index, (token, _token_col) in enumerate(top_tokens):
+ group = assigned_groups[index]
+ if not group or group != list(range(group[0], group[-1] + 1)):
+ return None
+ token_center = (token.bbox[0] + token.bbox[2]) / 2.0
+ if not x_tracks[group[0]] <= token_center <= x_tracks[group[-1] + 1]:
+ return None
+ specs.append(
+ GridCellSpec(
+ row=0,
+ col=group[0],
+ rowspan=1,
+ colspan=group[-1] - group[0] + 1,
+ bbox=(x_tracks[group[0]], y_tracks[0], x_tracks[group[-1] + 1], y_tracks[1]),
+ )
+ )
+ top_covered.update(group)
+
+ for col in sorted(present_cols - top_covered):
+ specs.append(
+ GridCellSpec(
+ row=0,
+ col=col,
+ rowspan=1,
+ colspan=1,
+ bbox=(x_tracks[col], y_tracks[0], x_tracks[col + 1], y_tracks[1]),
+ )
+ )
+ for col in sorted(present_cols):
+ specs.append(
+ GridCellSpec(
+ row=1,
+ col=col,
+ rowspan=1,
+ colspan=1,
+ bbox=(x_tracks[col], y_tracks[1], x_tracks[col + 1], y_tracks[2]),
+ )
+ )
+ return tuple(specs)
+
+
+def _build_sparse_specs(
+ text: NativeTableText,
+ x_tracks: tuple[float, ...],
+ y_tracks: tuple[float, ...],
+ body_start: int,
+ rules: tuple[_LocalRule, ...],
+ tolerance: float,
+) -> tuple[GridCellSpec, ...] | None:
+ """构造完整少线网格,并仅在两层表头中推断合并格。"""
+
+ rows = len(y_tracks) - 1
+ cols = len(x_tracks) - 1
+ if body_start > MAX_HEADER_ROWS:
+ return None
+ specs: list[GridCellSpec] = []
+ if body_start == 2:
+ header_specs = _two_level_header_specs(
+ text,
+ x_tracks,
+ y_tracks,
+ rules,
+ tolerance,
+ )
+ if header_specs is None:
+ return None
+ specs.extend(header_specs)
+ else:
+ for row in range(body_start):
+ for col in range(cols):
+ specs.append(
+ GridCellSpec(
+ row=row,
+ col=col,
+ rowspan=1,
+ colspan=1,
+ bbox=(x_tracks[col], y_tracks[row], x_tracks[col + 1], y_tracks[row + 1]),
+ )
+ )
+ for row in range(body_start, rows):
+ for col in range(cols):
+ specs.append(
+ GridCellSpec(
+ row=row,
+ col=col,
+ rowspan=1,
+ colspan=1,
+ bbox=(x_tracks[col], y_tracks[row], x_tracks[col + 1], y_tracks[row + 1]),
+ )
+ )
+ return tuple(specs)
+
+
+def _spec_owner_grid(
+ rows: int,
+ cols: int,
+ specs: tuple[GridCellSpec, ...],
+) -> list[list[int]]:
+ """把逻辑单元格展开为原子格到 spec 下标的映射。"""
+
+ owners = [[-1 for _ in range(cols)] for _ in range(rows)]
+ for index, spec in enumerate(specs):
+ for row in range(spec.row, spec.row + spec.rowspan):
+ for col in range(spec.col, spec.col + spec.colspan):
+ owners[row][col] = index
+ return owners
+
+
+def _validate_token_splits(
+ text: NativeTableText,
+ x_tracks: tuple[float, ...],
+ specs: tuple[GridCellSpec, ...],
+ physical_boundaries: frozenset[int],
+) -> tuple[bool, int]:
+ """只允许被强物理边界证明且不横切字符的粗 token 跨格。"""
+
+ rows = len(text.rows)
+ cols = len(x_tracks) - 1
+ owners = _spec_owner_grid(rows, cols, specs)
+ glyph_by_id = {glyph.glyph_id: glyph for glyph in text.glyphs}
+ edge_tolerance = max(0.25, 0.05 * text.median_glyph_width)
+ justified_splits = 0
+ for row in text.rows:
+ for token in row.tokens:
+ for boundary_index, boundary in enumerate(x_tracks[1:-1], start=1):
+ if owners[row.row_index][boundary_index - 1] == owners[row.row_index][boundary_index]:
+ continue
+ if not token.bbox[0] + edge_tolerance < boundary < token.bbox[2] - edge_tolerance:
+ continue
+ if boundary_index not in physical_boundaries:
+ return False, justified_splits
+ if any(
+ glyph_by_id[glyph_id].bbox[0] + edge_tolerance < boundary < glyph_by_id[glyph_id].bbox[2] - edge_tolerance
+ for glyph_id in token.glyph_ids
+ ):
+ return False, justified_splits
+ justified_splits += 1
+ return True, justified_splits
+
+
+def _build_hypothesis_candidate(
+ table_input: NativeTableInput,
+ text: NativeTableText,
+ rules: tuple[_LocalRule, ...],
+ hypothesis: _TrackHypothesis,
+ height: float,
+ diagnostics: dict[str, Any] | None,
+) -> NativeTableCandidate | None:
+ """把一组少线轨道恢复为候选并执行全部高置信硬门。"""
+
+ x_tracks = hypothesis.x_tracks
+ y_tracks = _infer_y_tracks(text, rules, height)
+ if y_tracks is None:
+ if diagnostics is not None:
+ diagnostics["first_rejection_gate"] = "row_tracks"
+ return None
+ support = _track_support(text, x_tracks, hypothesis.body_start)
+ if support is None:
+ if diagnostics is not None:
+ diagnostics["first_rejection_gate"] = "anchor_support"
+ return None
+ minimum_support, overall_support, occupancies = support
+ tolerance = max(1.0, 0.25 * text.median_glyph_height)
+ specs = _build_sparse_specs(
+ text,
+ x_tracks,
+ y_tracks,
+ hypothesis.body_start,
+ rules,
+ tolerance,
+ )
+ if specs is None:
+ if diagnostics is not None:
+ diagnostics["first_rejection_gate"] = "header_topology"
+ return None
+ token_splits_valid, justified_splits = _validate_token_splits(
+ text,
+ x_tracks,
+ specs,
+ hypothesis.physical_boundaries,
+ )
+ if not token_splits_valid:
+ if diagnostics is not None:
+ diagnostics["first_rejection_gate"] = "token_split"
+ return None
+
+ candidate_diagnostics: dict[str, object] = {}
+ candidate = build_candidate(
+ source="sparse_hybrid",
+ rows=len(y_tracks) - 1,
+ cols=len(x_tracks) - 1,
+ specs=specs,
+ text=text,
+ structure_support=hypothesis.reliability,
+ row_stability=1.0,
+ column_stability=min(1.0, overall_support),
+ issues=(
+ f"evidence={hypothesis.evidence}",
+ f"body_start={hypothesis.body_start}",
+ f"minimum_column_support={minimum_support:.4f}",
+ f"overall_anchor_support={overall_support:.4f}",
+ f"physical_boundaries={len(hypothesis.physical_boundaries)}",
+ f"physically_justified_token_splits={justified_splits}",
+ ),
+ use_grid_index=True,
+ diagnostics=candidate_diagnostics,
+ )
+ if candidate is None:
+ if diagnostics is not None:
+ diagnostics["first_rejection_gate"] = candidate_diagnostics.get(
+ "candidate_rejection_gate",
+ "candidate_hard_gate",
+ )
+ return None
+ ambiguous_ratio = float(candidate_diagnostics.get("ambiguous_glyph_ratio", 1.0))
+ if (
+ candidate.text_capture < 1.0
+ or candidate.order_consistency < 1.0
+ or ambiguous_ratio > 0.0
+ or candidate.score < MIN_SPARSE_RELIABILITY
+ ):
+ if diagnostics is not None:
+ diagnostics["first_rejection_gate"] = "verified_integrity"
+ return None
+ if diagnostics is not None:
+ diagnostics.update(
+ {
+ "first_rejection_gate": None,
+ "grid": {"rows": candidate.rows, "cols": candidate.cols},
+ "body_start": hypothesis.body_start,
+ "x_tracks": list(x_tracks),
+ "physical_boundaries": sorted(hypothesis.physical_boundaries),
+ "minimum_column_support": minimum_support,
+ "overall_anchor_support": overall_support,
+ "body_occupancies": [sorted(occupancy) for occupancy in occupancies],
+ "physically_justified_token_splits": justified_splits,
+ "score": candidate.score,
+ }
+ )
+ return candidate
+
+
+def _build_track_hypotheses(
+ table_input: NativeTableInput,
+ text: NativeTableText,
+ rules: tuple[_LocalRule, ...],
+ width: float,
+ height: float,
+) -> tuple[_TrackHypothesis, ...]:
+ """构造有限的文本轨和强竖线轨假设并消除同拓扑重复。"""
+
+ layout = _infer_dense_layout(text)
+ if layout is None:
+ return ()
+ tolerance = max(1.0, 0.25 * text.median_glyph_height)
+ vertical_tracks, vertical_coverages = _vertical_track_evidence(
+ rules,
+ width,
+ height,
+ tolerance,
+ )
+ rect_positions = _rectangle_edge_evidence(
+ table_input,
+ text,
+ width,
+ height,
+ tolerance,
+ )
+ physical_positions = tuple(sorted({*vertical_tracks, *rect_positions}))
+ rect_tracks = _canonical_edge_tracks(rect_positions, width, tolerance)
+ text_tracks = _infer_text_tracks(text, width, layout)
+ hypotheses: list[_TrackHypothesis] = []
+
+ physical_cols = len(vertical_tracks) - 1
+ if (
+ physical_cols >= 2
+ and physical_cols in {layout.target_cols, layout.target_cols + 1}
+ and _track_support(text, vertical_tracks, layout.body_start) is not None
+ ):
+ internal_coverages = [
+ coverage for coordinate, coverage in vertical_coverages.items() if tolerance < coordinate < width - tolerance
+ ]
+ reliability = min(internal_coverages, default=1.0)
+ if physical_cols == layout.target_cols:
+ reliability = 1.0
+ hypotheses.append(
+ _TrackHypothesis(
+ evidence="vertical_text",
+ x_tracks=vertical_tracks,
+ physical_boundaries=frozenset(range(1, len(vertical_tracks) - 1)),
+ body_start=layout.body_start,
+ reliability=min(1.0, reliability),
+ )
+ )
+
+ rect_cols = len(rect_tracks) - 1
+ if rect_cols == layout.target_cols and rect_cols >= 2 and _track_support(text, rect_tracks, layout.body_start) is not None:
+ hypotheses.append(
+ _TrackHypothesis(
+ evidence="rect_text",
+ x_tracks=rect_tracks,
+ physical_boundaries=frozenset(range(1, len(rect_tracks) - 1)),
+ body_start=layout.body_start,
+ reliability=1.0,
+ )
+ )
+
+ prefer_physical = bool(hypotheses)
+ if text_tracks is not None and not prefer_physical:
+ hypotheses.append(
+ _TrackHypothesis(
+ evidence="text_network",
+ x_tracks=text_tracks,
+ physical_boundaries=_nearest_physical_boundaries(
+ text_tracks,
+ physical_positions,
+ tolerance,
+ ),
+ body_start=layout.body_start,
+ reliability=1.0,
+ )
+ )
+
+ deduplicated: dict[tuple[int, tuple[int, ...]], _TrackHypothesis] = {}
+ for hypothesis in hypotheses[:MAX_SPARSE_HYPOTHESES]:
+ signature = (
+ len(hypothesis.x_tracks),
+ tuple(round(track / max(tolerance, 0.1)) for track in hypothesis.x_tracks),
+ )
+ existing = deduplicated.get(signature)
+ if existing is None or hypothesis.reliability > existing.reliability:
+ deduplicated[signature] = hypothesis
+ return tuple(deduplicated.values())
+
+
+def build_sparse_hybrid_candidates(
+ table_input: NativeTableInput,
+ text: NativeTableText,
+ diagnostics: list[dict[str, Any]] | None = None,
+) -> list[NativeTableCandidate]:
+ """生成只在矢量网格失败后参与仲裁的高置信少线候选。"""
+
+ table_bbox = normalize_bbox(table_input.table_bbox)
+ if table_bbox is None:
+ return []
+ width, height = table_local_size(table_bbox, normalize_angle(table_input.angle))
+ rules = _local_rules(table_input, width, height)
+ long_rules = _long_horizontal_rules(rules, width)
+ tolerance = max(1.0, 0.25 * text.median_glyph_height)
+ vertical_tracks, _coverages = _vertical_track_evidence(
+ rules,
+ width,
+ height,
+ tolerance,
+ )
+ if len(long_rules) < 2 and len(vertical_tracks) < 3:
+ if diagnostics is not None:
+ diagnostics.append(
+ {
+ "source": "sparse_hybrid",
+ "first_rejection_gate": "physical_sparse_evidence",
+ "long_horizontal_rules": len(long_rules),
+ "vertical_tracks": len(vertical_tracks),
+ }
+ )
+ return []
+
+ hypotheses = _build_track_hypotheses(
+ table_input,
+ text,
+ rules,
+ width,
+ height,
+ )
+ candidates: list[NativeTableCandidate] = []
+ for hypothesis in hypotheses:
+ record: dict[str, Any] | None = (
+ {
+ "source": "sparse_hybrid",
+ "evidence": hypothesis.evidence,
+ "long_horizontal_rules": len(long_rules),
+ }
+ if diagnostics is not None
+ else None
+ )
+ candidate = _build_hypothesis_candidate(
+ table_input,
+ text,
+ rules,
+ hypothesis,
+ height,
+ record,
+ )
+ if diagnostics is not None and record is not None:
+ diagnostics.append(record)
+ if candidate is not None:
+ candidates.append(candidate)
+
+ topologies = {candidate.topology for candidate in candidates}
+ if len(topologies) > 1:
+ if diagnostics is not None:
+ diagnostics.append(
+ {
+ "source": "sparse_hybrid",
+ "first_rejection_gate": "topology_ambiguity",
+ "topology_count": len(topologies),
+ }
+ )
+ return []
+ return candidates[:1]
+
+
+def diagnose_sparse_hybrid_candidate_builds(
+ table_input: NativeTableInput,
+ text: NativeTableText,
+) -> tuple[dict[str, Any], ...]:
+ """重放少线候选构造并返回不进入用户结果的诊断。"""
+
+ diagnostics: list[dict[str, Any]] = []
+ build_sparse_hybrid_candidates(
+ table_input,
+ text,
+ diagnostics=diagnostics,
+ )
+ return tuple(diagnostics)
+
+
+__all__ = ["build_sparse_hybrid_candidates"]
diff --git a/mineru/utils/native_pdf_table/vector.py b/mineru/utils/native_pdf_table/vector.py
index f89439bb..ffe10a8b 100644
--- a/mineru/utils/native_pdf_table/vector.py
+++ b/mineru/utils/native_pdf_table/vector.py
@@ -1675,6 +1675,7 @@ def _build_vector_candidate(
),
allow_single_row=is_single_row_shape,
allow_single_column=is_single_column_shape,
+ use_grid_index=True,
diagnostics=diagnostics,
)
if candidate is None:
diff --git a/tests/fixtures/native_pdf_table_demo_manifest.json b/tests/fixtures/native_pdf_table_demo_manifest.json
new file mode 100644
index 00000000..73ac0e53
--- /dev/null
+++ b/tests/fixtures/native_pdf_table_demo_manifest.json
@@ -0,0 +1,8084 @@
+{
+ "schema_version": 2,
+ "manifest_version": "2026-08-25-demo-sparse-hybrid-v2",
+ "source_root": "demo/pdfs",
+ "totals": {
+ "documents": 14,
+ "pages": 104,
+ "tables": 44,
+ "expected_html": 18,
+ "expected_projection": 26,
+ "tracked_tables": 18,
+ "planned_sparse_targets": 10,
+ "additional_verified_sparse_tables": 3
+ },
+ "tables": [
+ {
+ "file": "caibao1.pdf",
+ "page_index": 0,
+ "table_index": 1,
+ "bbox": [
+ 0.649,
+ 0.319,
+ 0.94,
+ 0.404
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 7,
+ "cols": 4,
+ "content_sha256": "c646f01282b250752f803e291598e1e19672640f904ff63392a5b13f8979145d",
+ "span_signature": [
+ [
+ 0,
+ 0,
+ 2,
+ 1
+ ],
+ [
+ 0,
+ 1,
+ 2,
+ 1
+ ],
+ [
+ 0,
+ 2,
+ 2,
+ 1
+ ],
+ [
+ 0,
+ 3,
+ 2,
+ 1
+ ]
+ ],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "股票名称"
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "股票代码"
+ },
+ {
+ "row": 0,
+ "col": 2,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "目标价(当地币种)"
+ },
+ {
+ "row": 0,
+ "col": 3,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "投资评级"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "比亚迪"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "002594 CH"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "317.02"
+ },
+ {
+ "row": 2,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "买入"
+ },
+ {
+ "row": 3,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "小鹏汽车-W"
+ },
+ {
+ "row": 3,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9868 HK"
+ },
+ {
+ "row": 3,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "64.07"
+ },
+ {
+ "row": 3,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "买入"
+ },
+ {
+ "row": 4,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "科博达"
+ },
+ {
+ "row": 4,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603786 CH"
+ },
+ {
+ "row": 4,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "83.44"
+ },
+ {
+ "row": 4,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "买入"
+ },
+ {
+ "row": 5,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "中鼎股份"
+ },
+ {
+ "row": 5,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000887 CH"
+ },
+ {
+ "row": 5,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "16.94"
+ },
+ {
+ "row": 5,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "买入"
+ },
+ {
+ "row": 6,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "星宇股份"
+ },
+ {
+ "row": 6,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "601799 CH"
+ },
+ {
+ "row": 6,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "161.29"
+ },
+ {
+ "row": 6,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "买入"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified",
+ "extra_verified": true
+ },
+ {
+ "file": "caibao1.pdf",
+ "page_index": 0,
+ "table_index": 2,
+ "bbox": [
+ 0.647,
+ 0.625,
+ 0.94,
+ 0.757
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 11,
+ "cols": 3,
+ "content_sha256": "d4798ff76107ba7a6ff9bf922a42156886b555b60a1d4ff80103aa2ddbccd3ca",
+ "span_signature": [],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "股票名称"
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "股票代码"
+ },
+ {
+ "row": 0,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "涨跌幅(%)"
+ },
+ {
+ "row": 1,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "交运股份"
+ },
+ {
+ "row": 1,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600676 CH"
+ },
+ {
+ "row": 1,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "32.59"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "安凯客车"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000868 CH"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "15.38"
+ },
+ {
+ "row": 3,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "金龙汽车"
+ },
+ {
+ "row": 3,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600686 CH"
+ },
+ {
+ "row": 3,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "14.71"
+ },
+ {
+ "row": 4,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "继峰股份"
+ },
+ {
+ "row": 4,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603997 CH"
+ },
+ {
+ "row": 4,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "13.21"
+ },
+ {
+ "row": 5,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "海马汽车"
+ },
+ {
+ "row": 5,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000572 CH"
+ },
+ {
+ "row": 5,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.60"
+ },
+ {
+ "row": 6,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "美力科技"
+ },
+ {
+ "row": 6,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "300611 CH"
+ },
+ {
+ "row": 6,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.51"
+ },
+ {
+ "row": 7,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "北巴传媒"
+ },
+ {
+ "row": 7,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600386 CH"
+ },
+ {
+ "row": 7,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.48"
+ },
+ {
+ "row": 8,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "电科芯片"
+ },
+ {
+ "row": 8,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600877 CH"
+ },
+ {
+ "row": 8,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.16"
+ },
+ {
+ "row": 9,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "新大洲A"
+ },
+ {
+ "row": 9,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000571 CH"
+ },
+ {
+ "row": 9,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.96"
+ },
+ {
+ "row": 10,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "上汽集团"
+ },
+ {
+ "row": 10,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600104 CH"
+ },
+ {
+ "row": 10,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.72"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified"
+ },
+ {
+ "file": "caibao1.pdf",
+ "page_index": 0,
+ "table_index": 3,
+ "bbox": [
+ 0.647,
+ 0.786,
+ 0.94,
+ 0.918
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 11,
+ "cols": 3,
+ "content_sha256": "0f2e3e361472822881cfd78e70858d6879307e7ec330efd1501647858bae6015",
+ "span_signature": [],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "股票名称"
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "股票代码"
+ },
+ {
+ "row": 0,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "涨跌幅(%)"
+ },
+ {
+ "row": 1,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "广汇汽车"
+ },
+ {
+ "row": 1,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600297 CH"
+ },
+ {
+ "row": 1,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "(18.75)"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "东箭科技"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "300978 CH"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "(17.37)"
+ },
+ {
+ "row": 3,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "文灿股份"
+ },
+ {
+ "row": 3,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603348 CH"
+ },
+ {
+ "row": 3,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "(14.89)"
+ },
+ {
+ "row": 4,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "标榜股份"
+ },
+ {
+ "row": 4,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "301181 CH"
+ },
+ {
+ "row": 4,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "(14.49)"
+ },
+ {
+ "row": 5,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "金钟股份"
+ },
+ {
+ "row": 5,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "301133 CH"
+ },
+ {
+ "row": 5,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "(14.05)"
+ },
+ {
+ "row": 6,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "宁波方正"
+ },
+ {
+ "row": 6,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "300998 CH"
+ },
+ {
+ "row": 6,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "(13.97)"
+ },
+ {
+ "row": 7,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "阿尔特"
+ },
+ {
+ "row": 7,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "300825 CH"
+ },
+ {
+ "row": 7,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "(13.90)"
+ },
+ {
+ "row": 8,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "博俊科技"
+ },
+ {
+ "row": 8,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "300926 CH"
+ },
+ {
+ "row": 8,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "(11.20)"
+ },
+ {
+ "row": 9,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "通用股份"
+ },
+ {
+ "row": 9,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "601500 CH"
+ },
+ {
+ "row": 9,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "(11.17)"
+ },
+ {
+ "row": 10,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "豪能股份"
+ },
+ {
+ "row": 10,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603809 CH"
+ },
+ {
+ "row": 10,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "(10.86)"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified"
+ },
+ {
+ "file": "caibao1.pdf",
+ "page_index": 5,
+ "table_index": 0,
+ "bbox": [
+ 0.072,
+ 0.287,
+ 0.93,
+ 0.673
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 27,
+ "cols": 10,
+ "content_sha256": "b0fc98dfab48878ec6745e8c339e4ca969a8849c76de8ae48e7011ab4f05c836",
+ "span_signature": [],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "代码"
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "名称"
+ },
+ {
+ "row": 0,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2022/12/31"
+ },
+ {
+ "row": 0,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2023/3/31"
+ },
+ {
+ "row": 0,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2023/6/30"
+ },
+ {
+ "row": 0,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2023/9/29"
+ },
+ {
+ "row": 0,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2023/12/30"
+ },
+ {
+ "row": 0,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2024/7/12"
+ },
+ {
+ "row": 0,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2024/7/19"
+ },
+ {
+ "row": 0,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "上周变动方向"
+ },
+ {
+ "row": 1,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600104.SH"
+ },
+ {
+ "row": 1,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "上汽集团"
+ },
+ {
+ "row": 1,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.97"
+ },
+ {
+ "row": 1,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.08"
+ },
+ {
+ "row": 1,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.83"
+ },
+ {
+ "row": 1,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.24"
+ },
+ {
+ "row": 1,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.03"
+ },
+ {
+ "row": 1,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.78"
+ },
+ {
+ "row": 1,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.80"
+ },
+ {
+ "row": 1,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "+0.02 pct"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "601633.SH"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "长城汽车"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.75"
+ },
+ {
+ "row": 2,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.80"
+ },
+ {
+ "row": 2,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.76"
+ },
+ {
+ "row": 2,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.72"
+ },
+ {
+ "row": 2,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.88"
+ },
+ {
+ "row": 2,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.45"
+ },
+ {
+ "row": 2,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.58"
+ },
+ {
+ "row": 2,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "+0.13 pct"
+ },
+ {
+ "row": 3,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000951.SZ"
+ },
+ {
+ "row": 3,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "中国重汽"
+ },
+ {
+ "row": 3,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.24"
+ },
+ {
+ "row": 3,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.15"
+ },
+ {
+ "row": 3,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.12"
+ },
+ {
+ "row": 3,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.18"
+ },
+ {
+ "row": 3,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.90"
+ },
+ {
+ "row": 3,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.87"
+ },
+ {
+ "row": 3,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.74"
+ },
+ {
+ "row": 3,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.13 pct"
+ },
+ {
+ "row": 4,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000338.SZ"
+ },
+ {
+ "row": 4,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "潍柴动力"
+ },
+ {
+ "row": 4,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.17"
+ },
+ {
+ "row": 4,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.19"
+ },
+ {
+ "row": 4,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.15"
+ },
+ {
+ "row": 4,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.18"
+ },
+ {
+ "row": 4,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.62"
+ },
+ {
+ "row": 4,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.13"
+ },
+ {
+ "row": 4,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.61"
+ },
+ {
+ "row": 4,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.52 pct"
+ },
+ {
+ "row": 5,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600741.SH"
+ },
+ {
+ "row": 5,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "华域汽车"
+ },
+ {
+ "row": 5,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.15"
+ },
+ {
+ "row": 5,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.29"
+ },
+ {
+ "row": 5,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.76"
+ },
+ {
+ "row": 5,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.73"
+ },
+ {
+ "row": 5,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.50"
+ },
+ {
+ "row": 5,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.94"
+ },
+ {
+ "row": 5,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.94"
+ },
+ {
+ "row": 5,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- pct"
+ },
+ {
+ "row": 6,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "002126.SZ"
+ },
+ {
+ "row": 6,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "银轮股份"
+ },
+ {
+ "row": 6,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.48"
+ },
+ {
+ "row": 6,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.24"
+ },
+ {
+ "row": 6,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.62"
+ },
+ {
+ "row": 6,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.99"
+ },
+ {
+ "row": 6,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.82"
+ },
+ {
+ "row": 6,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.73"
+ },
+ {
+ "row": 6,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.57"
+ },
+ {
+ "row": 6,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.16 pct"
+ },
+ {
+ "row": 7,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "601799.SH"
+ },
+ {
+ "row": 7,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "星宇股份"
+ },
+ {
+ "row": 7,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.28"
+ },
+ {
+ "row": 7,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.95"
+ },
+ {
+ "row": 7,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.61"
+ },
+ {
+ "row": 7,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.98"
+ },
+ {
+ "row": 7,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.51"
+ },
+ {
+ "row": 7,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.52"
+ },
+ {
+ "row": 7,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.62"
+ },
+ {
+ "row": 7,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "+0.10 pct"
+ },
+ {
+ "row": 8,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "002048.SZ"
+ },
+ {
+ "row": 8,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "宁波华翔"
+ },
+ {
+ "row": 8,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.10"
+ },
+ {
+ "row": 8,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.64"
+ },
+ {
+ "row": 8,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.07"
+ },
+ {
+ "row": 8,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.73"
+ },
+ {
+ "row": 8,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.02"
+ },
+ {
+ "row": 8,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.02"
+ },
+ {
+ "row": 8,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.00"
+ },
+ {
+ "row": 8,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.02 pct"
+ },
+ {
+ "row": 9,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "002050.SZ"
+ },
+ {
+ "row": 9,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "三花智控"
+ },
+ {
+ "row": 9,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "15.25"
+ },
+ {
+ "row": 9,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "16.91"
+ },
+ {
+ "row": 9,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "16.34"
+ },
+ {
+ "row": 9,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "16.03"
+ },
+ {
+ "row": 9,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "15.52"
+ },
+ {
+ "row": 9,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.69"
+ },
+ {
+ "row": 9,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.85"
+ },
+ {
+ "row": 9,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "+0.15 pct"
+ },
+ {
+ "row": 10,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600699.SH"
+ },
+ {
+ "row": 10,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "均胜电子"
+ },
+ {
+ "row": 10,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.96"
+ },
+ {
+ "row": 10,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.03"
+ },
+ {
+ "row": 10,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.00"
+ },
+ {
+ "row": 10,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.61"
+ },
+ {
+ "row": 10,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.92"
+ },
+ {
+ "row": 10,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.45"
+ },
+ {
+ "row": 10,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.68"
+ },
+ {
+ "row": 10,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "+0.23 pct"
+ },
+ {
+ "row": 11,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000887.SZ"
+ },
+ {
+ "row": 11,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "中鼎股份"
+ },
+ {
+ "row": 11,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.08"
+ },
+ {
+ "row": 11,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.16"
+ },
+ {
+ "row": 11,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.44"
+ },
+ {
+ "row": 11,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.26"
+ },
+ {
+ "row": 11,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.17"
+ },
+ {
+ "row": 11,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.60"
+ },
+ {
+ "row": 11,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.24"
+ },
+ {
+ "row": 11,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.36 pct"
+ },
+ {
+ "row": 12,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "002920.SZ"
+ },
+ {
+ "row": 12,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "德赛西威"
+ },
+ {
+ "row": 12,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.47"
+ },
+ {
+ "row": 12,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.59"
+ },
+ {
+ "row": 12,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.08"
+ },
+ {
+ "row": 12,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.82"
+ },
+ {
+ "row": 12,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.42"
+ },
+ {
+ "row": 12,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.75"
+ },
+ {
+ "row": 12,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.72"
+ },
+ {
+ "row": 12,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.03 pct"
+ },
+ {
+ "row": 13,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "601689.SH"
+ },
+ {
+ "row": 13,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "拓普集团"
+ },
+ {
+ "row": 13,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.71"
+ },
+ {
+ "row": 13,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.22"
+ },
+ {
+ "row": 13,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.79"
+ },
+ {
+ "row": 13,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.50"
+ },
+ {
+ "row": 13,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.85"
+ },
+ {
+ "row": 13,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.87"
+ },
+ {
+ "row": 13,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.81"
+ },
+ {
+ "row": 13,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.06 pct"
+ },
+ {
+ "row": 14,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603305.SH"
+ },
+ {
+ "row": 14,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "旭升集团"
+ },
+ {
+ "row": 14,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.28"
+ },
+ {
+ "row": 14,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.78"
+ },
+ {
+ "row": 14,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.33"
+ },
+ {
+ "row": 14,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.91"
+ },
+ {
+ "row": 14,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.80"
+ },
+ {
+ "row": 14,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.99"
+ },
+ {
+ "row": 14,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.99"
+ },
+ {
+ "row": 14,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "+0.01 pct"
+ },
+ {
+ "row": 15,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603596.SH"
+ },
+ {
+ "row": 15,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "伯特利"
+ },
+ {
+ "row": 15,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.64"
+ },
+ {
+ "row": 15,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.47"
+ },
+ {
+ "row": 15,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.94"
+ },
+ {
+ "row": 15,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.01"
+ },
+ {
+ "row": 15,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.37"
+ },
+ {
+ "row": 15,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.32"
+ },
+ {
+ "row": 15,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.02"
+ },
+ {
+ "row": 15,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.31 pct"
+ },
+ {
+ "row": 16,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603982.SH"
+ },
+ {
+ "row": 16,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "泉峰汽车"
+ },
+ {
+ "row": 16,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.14"
+ },
+ {
+ "row": 16,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.31"
+ },
+ {
+ "row": 16,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.93"
+ },
+ {
+ "row": 16,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.77"
+ },
+ {
+ "row": 16,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.19"
+ },
+ {
+ "row": 16,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.25"
+ },
+ {
+ "row": 16,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.24"
+ },
+ {
+ "row": 16,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.01 pct"
+ },
+ {
+ "row": 17,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600933.SH"
+ },
+ {
+ "row": 17,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "爱柯迪"
+ },
+ {
+ "row": 17,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.60"
+ },
+ {
+ "row": 17,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.71"
+ },
+ {
+ "row": 17,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.07"
+ },
+ {
+ "row": 17,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.68"
+ },
+ {
+ "row": 17,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.69"
+ },
+ {
+ "row": 17,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.68"
+ },
+ {
+ "row": 17,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.56"
+ },
+ {
+ "row": 17,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.12 pct"
+ },
+ {
+ "row": 18,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603730.SH"
+ },
+ {
+ "row": 18,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "岱美股份"
+ },
+ {
+ "row": 18,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.54"
+ },
+ {
+ "row": 18,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.58"
+ },
+ {
+ "row": 18,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.62"
+ },
+ {
+ "row": 18,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.04"
+ },
+ {
+ "row": 18,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.93"
+ },
+ {
+ "row": 18,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.69"
+ },
+ {
+ "row": 18,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.67"
+ },
+ {
+ "row": 18,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.02 pct"
+ },
+ {
+ "row": 19,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000581.SZ"
+ },
+ {
+ "row": 19,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "威孚高科"
+ },
+ {
+ "row": 19,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.35"
+ },
+ {
+ "row": 19,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.02"
+ },
+ {
+ "row": 19,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.87"
+ },
+ {
+ "row": 19,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.37"
+ },
+ {
+ "row": 19,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.13"
+ },
+ {
+ "row": 19,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.84"
+ },
+ {
+ "row": 19,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.52"
+ },
+ {
+ "row": 19,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.32 pct"
+ },
+ {
+ "row": 20,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000625.SZ"
+ },
+ {
+ "row": 20,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "长安汽车"
+ },
+ {
+ "row": 20,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.73"
+ },
+ {
+ "row": 20,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.79"
+ },
+ {
+ "row": 20,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.12"
+ },
+ {
+ "row": 20,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.98"
+ },
+ {
+ "row": 20,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.84"
+ },
+ {
+ "row": 20,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.09"
+ },
+ {
+ "row": 20,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.84"
+ },
+ {
+ "row": 20,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.26 pct"
+ },
+ {
+ "row": 21,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "601965.SH"
+ },
+ {
+ "row": 21,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "中国汽研"
+ },
+ {
+ "row": 21,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.72"
+ },
+ {
+ "row": 21,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.34"
+ },
+ {
+ "row": 21,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.02"
+ },
+ {
+ "row": 21,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.79"
+ },
+ {
+ "row": 21,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.71"
+ },
+ {
+ "row": 21,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.70"
+ },
+ {
+ "row": 21,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.58"
+ },
+ {
+ "row": 21,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.12 pct"
+ },
+ {
+ "row": 22,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603786.SH"
+ },
+ {
+ "row": 22,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "科博达"
+ },
+ {
+ "row": 22,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.44"
+ },
+ {
+ "row": 22,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.61"
+ },
+ {
+ "row": 22,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.50"
+ },
+ {
+ "row": 22,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.55"
+ },
+ {
+ "row": 22,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.31"
+ },
+ {
+ "row": 22,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.42"
+ },
+ {
+ "row": 22,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.46"
+ },
+ {
+ "row": 22,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "+0.04 pct"
+ },
+ {
+ "row": 23,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000800.SZ"
+ },
+ {
+ "row": 23,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "一汽解放"
+ },
+ {
+ "row": 23,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.18"
+ },
+ {
+ "row": 23,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.37"
+ },
+ {
+ "row": 23,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.65"
+ },
+ {
+ "row": 23,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.07"
+ },
+ {
+ "row": 23,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.35"
+ },
+ {
+ "row": 23,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.28"
+ },
+ {
+ "row": 23,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.27"
+ },
+ {
+ "row": 23,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.01 pct"
+ },
+ {
+ "row": 24,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600297.SH"
+ },
+ {
+ "row": 24,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "广汇汽车"
+ },
+ {
+ "row": 24,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.36"
+ },
+ {
+ "row": 24,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.41"
+ },
+ {
+ "row": 24,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.30"
+ },
+ {
+ "row": 24,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.26"
+ },
+ {
+ "row": 24,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.67"
+ },
+ {
+ "row": 24,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.75"
+ },
+ {
+ "row": 24,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.57"
+ },
+ {
+ "row": 24,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.18 pct"
+ },
+ {
+ "row": 25,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603997.SH"
+ },
+ {
+ "row": 25,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "继峰股份"
+ },
+ {
+ "row": 25,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.04"
+ },
+ {
+ "row": 25,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.14"
+ },
+ {
+ "row": 25,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.36"
+ },
+ {
+ "row": 25,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.25"
+ },
+ {
+ "row": 25,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.39"
+ },
+ {
+ "row": 25,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.80"
+ },
+ {
+ "row": 25,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.57"
+ },
+ {
+ "row": 25,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-0.22 pct"
+ },
+ {
+ "row": 26,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603179.SH"
+ },
+ {
+ "row": 26,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "新泉股份"
+ },
+ {
+ "row": 26,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.00"
+ },
+ {
+ "row": 26,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.09"
+ },
+ {
+ "row": 26,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.49"
+ },
+ {
+ "row": 26,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.65"
+ },
+ {
+ "row": 26,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.42"
+ },
+ {
+ "row": 26,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.48"
+ },
+ {
+ "row": 26,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.48"
+ },
+ {
+ "row": 26,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- pct"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified",
+ "extra_verified": true
+ },
+ {
+ "file": "caibao1.pdf",
+ "page_index": 6,
+ "table_index": 0,
+ "bbox": [
+ 0.072,
+ 0.094,
+ 0.93,
+ 0.48
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 27,
+ "cols": 7,
+ "content_sha256": "45bd3bce73a874f4c6ec1409da6f87b0457f14b969269947cdde5fdd4b1e52af",
+ "span_signature": [],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": ""
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "简称"
+ },
+ {
+ "row": 0,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "质押总股数(万股)"
+ },
+ {
+ "row": 0,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "质押股占总股本比例"
+ },
+ {
+ "row": 0,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "质押股占大股东所持股比例"
+ },
+ {
+ "row": 0,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "大股东持股(万股)"
+ },
+ {
+ "row": 0,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "总股本(万股)"
+ },
+ {
+ "row": 1,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600297.SH"
+ },
+ {
+ "row": 1,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "广汇汽车"
+ },
+ {
+ "row": 1,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "352,043"
+ },
+ {
+ "row": 1,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "42.5%"
+ },
+ {
+ "row": 1,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "81.6%"
+ },
+ {
+ "row": 1,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "431,394"
+ },
+ {
+ "row": 1,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "828,955"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600104.SH"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "上汽集团"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 2,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 2,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 2,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "979,776"
+ },
+ {
+ "row": 2,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1,157,530"
+ },
+ {
+ "row": 3,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "601633.SH"
+ },
+ {
+ "row": 3,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "长城汽车"
+ },
+ {
+ "row": 3,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "68,250"
+ },
+ {
+ "row": 3,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.0%"
+ },
+ {
+ "row": 3,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.7%"
+ },
+ {
+ "row": 3,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "786,212"
+ },
+ {
+ "row": 3,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "854,196"
+ },
+ {
+ "row": 4,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000951.SZ"
+ },
+ {
+ "row": 4,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "中国重汽"
+ },
+ {
+ "row": 4,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 4,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 4,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 4,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "73,226"
+ },
+ {
+ "row": 4,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "117,487"
+ },
+ {
+ "row": 5,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000338.SZ"
+ },
+ {
+ "row": 5,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "潍柴动力"
+ },
+ {
+ "row": 5,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 5,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 5,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 5,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "482,565"
+ },
+ {
+ "row": 5,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "872,656"
+ },
+ {
+ "row": 6,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600741.SH"
+ },
+ {
+ "row": 6,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "华域汽车"
+ },
+ {
+ "row": 6,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 6,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 6,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 6,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "223,628"
+ },
+ {
+ "row": 6,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "315,272"
+ },
+ {
+ "row": 7,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "002126.SZ"
+ },
+ {
+ "row": 7,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "银轮股份"
+ },
+ {
+ "row": 7,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1,173"
+ },
+ {
+ "row": 7,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.4%"
+ },
+ {
+ "row": 7,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.7%"
+ },
+ {
+ "row": 7,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "20,651"
+ },
+ {
+ "row": 7,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "82,767"
+ },
+ {
+ "row": 8,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "601799.SH"
+ },
+ {
+ "row": 8,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "星宇股份"
+ },
+ {
+ "row": 8,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 8,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 8,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 8,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "19,162"
+ },
+ {
+ "row": 8,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "28,568"
+ },
+ {
+ "row": 9,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603179.SH"
+ },
+ {
+ "row": 9,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "新泉股份"
+ },
+ {
+ "row": 9,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1,800"
+ },
+ {
+ "row": 9,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.7%"
+ },
+ {
+ "row": 9,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.5%"
+ },
+ {
+ "row": 9,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "23,914"
+ },
+ {
+ "row": 9,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "48,730"
+ },
+ {
+ "row": 10,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000887.SZ"
+ },
+ {
+ "row": 10,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "中鼎股份"
+ },
+ {
+ "row": 10,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "14,250"
+ },
+ {
+ "row": 10,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10.8%"
+ },
+ {
+ "row": 10,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "21.4%"
+ },
+ {
+ "row": 10,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "66,460"
+ },
+ {
+ "row": 10,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "131,649"
+ },
+ {
+ "row": 11,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603040.SH"
+ },
+ {
+ "row": 11,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "新坐标"
+ },
+ {
+ "row": 11,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 11,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 11,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 11,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8,267"
+ },
+ {
+ "row": 11,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "13,511"
+ },
+ {
+ "row": 12,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603730.SH"
+ },
+ {
+ "row": 12,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "岱美股份"
+ },
+ {
+ "row": 12,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 12,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 12,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 12,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "110,219"
+ },
+ {
+ "row": 12,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "165,276"
+ },
+ {
+ "row": 13,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000581.SZ"
+ },
+ {
+ "row": 13,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "威孚高科"
+ },
+ {
+ "row": 13,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 13,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 13,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 13,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "42,050"
+ },
+ {
+ "row": 13,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "99,699"
+ },
+ {
+ "row": 14,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "601689.SH"
+ },
+ {
+ "row": 14,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "拓普集团"
+ },
+ {
+ "row": 14,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 14,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 14,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 14,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "80,144"
+ },
+ {
+ "row": 14,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "168,603"
+ },
+ {
+ "row": 15,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000800.SZ"
+ },
+ {
+ "row": 15,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "一汽解放"
+ },
+ {
+ "row": 15,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 15,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 15,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 15,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "400,141"
+ },
+ {
+ "row": 15,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "462,386"
+ },
+ {
+ "row": 16,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "601965.SH"
+ },
+ {
+ "row": 16,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "中国汽研"
+ },
+ {
+ "row": 16,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 16,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 16,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 16,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "67,446"
+ },
+ {
+ "row": 16,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "100,329"
+ },
+ {
+ "row": 17,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600933.SH"
+ },
+ {
+ "row": 17,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "爱柯迪"
+ },
+ {
+ "row": 17,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 17,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 17,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 17,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "48,754"
+ },
+ {
+ "row": 17,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "97,736"
+ },
+ {
+ "row": 18,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603786.SH"
+ },
+ {
+ "row": 18,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "科博达"
+ },
+ {
+ "row": 18,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 18,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 18,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 18,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "34,449"
+ },
+ {
+ "row": 18,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "40,390"
+ },
+ {
+ "row": 19,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "002594.SZ"
+ },
+ {
+ "row": 19,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "比亚迪"
+ },
+ {
+ "row": 19,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9,344"
+ },
+ {
+ "row": 19,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.2%"
+ },
+ {
+ "row": 19,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.2%"
+ },
+ {
+ "row": 19,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "223,065"
+ },
+ {
+ "row": 19,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "290,927"
+ },
+ {
+ "row": 20,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603596.SH"
+ },
+ {
+ "row": 20,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "伯特利"
+ },
+ {
+ "row": 20,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "98"
+ },
+ {
+ "row": 20,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.2%"
+ },
+ {
+ "row": 20,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.4%"
+ },
+ {
+ "row": 20,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "23,196"
+ },
+ {
+ "row": 20,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "60,655"
+ },
+ {
+ "row": 21,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "002920.SZ"
+ },
+ {
+ "row": 21,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "德赛西威"
+ },
+ {
+ "row": 21,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 21,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 21,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 21,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "30,412"
+ },
+ {
+ "row": 21,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "55,501"
+ },
+ {
+ "row": 22,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "600699.SH"
+ },
+ {
+ "row": 22,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "均胜电子"
+ },
+ {
+ "row": 22,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "34,734"
+ },
+ {
+ "row": 22,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "24.7%"
+ },
+ {
+ "row": 22,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "50.8%"
+ },
+ {
+ "row": 22,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "68,411"
+ },
+ {
+ "row": 22,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "140,870"
+ },
+ {
+ "row": 23,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603997.SH"
+ },
+ {
+ "row": 23,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "继峰股份"
+ },
+ {
+ "row": 23,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "22,700"
+ },
+ {
+ "row": 23,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "17.9%"
+ },
+ {
+ "row": 23,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "36.6%"
+ },
+ {
+ "row": 23,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "62,104"
+ },
+ {
+ "row": 23,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "126,608"
+ },
+ {
+ "row": 24,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000625.SZ"
+ },
+ {
+ "row": 24,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "长安汽车"
+ },
+ {
+ "row": 24,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 24,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 24,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 24,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "481,579"
+ },
+ {
+ "row": 24,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "991,729"
+ },
+ {
+ "row": 25,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "002050.SZ"
+ },
+ {
+ "row": 25,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "三花智控"
+ },
+ {
+ "row": 25,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "15,000"
+ },
+ {
+ "row": 25,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.0%"
+ },
+ {
+ "row": 25,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.2%"
+ },
+ {
+ "row": 25,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "240,756"
+ },
+ {
+ "row": 25,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "373,262"
+ },
+ {
+ "row": 26,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603305.SH"
+ },
+ {
+ "row": 26,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "旭升集团"
+ },
+ {
+ "row": 26,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0"
+ },
+ {
+ "row": 26,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 26,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.0%"
+ },
+ {
+ "row": 26,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "65,850"
+ },
+ {
+ "row": 26,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "93,321"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified"
+ },
+ {
+ "file": "caibao1.pdf",
+ "page_index": 6,
+ "table_index": 1,
+ "bbox": [
+ 0.265,
+ 0.535,
+ 0.929,
+ 0.722
+ ],
+ "expected_output": "html",
+ "rows": 13,
+ "cols": 4,
+ "content_sha256": "234f90c7cc754393b85ebe9d18f00de2eaf7fa4833a856fcebad35d95c17e3c9"
+ },
+ {
+ "file": "caibao1.pdf",
+ "page_index": 7,
+ "table_index": 0,
+ "bbox": [
+ 0.075,
+ 0.122,
+ 0.932,
+ 0.224
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 7,
+ "cols": 14,
+ "content_sha256": "c8d35b637a4f1a93c91dd3855ac22b6811f4965084119c5177786e737ae55705",
+ "span_signature": [
+ [
+ 0,
+ 0,
+ 2,
+ 1
+ ],
+ [
+ 0,
+ 1,
+ 2,
+ 1
+ ],
+ [
+ 0,
+ 2,
+ 2,
+ 1
+ ],
+ [
+ 0,
+ 3,
+ 2,
+ 1
+ ],
+ [
+ 0,
+ 4,
+ 2,
+ 1
+ ],
+ [
+ 0,
+ 5,
+ 2,
+ 1
+ ],
+ [
+ 0,
+ 6,
+ 1,
+ 4
+ ],
+ [
+ 0,
+ 10,
+ 1,
+ 4
+ ]
+ ],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "股票名称"
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "股票代码"
+ },
+ {
+ "row": 0,
+ "col": 2,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "投资评级"
+ },
+ {
+ "row": 0,
+ "col": 3,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "最新收盘价(当地币种)"
+ },
+ {
+ "row": 0,
+ "col": 4,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "目标价(当地币种)"
+ },
+ {
+ "row": 0,
+ "col": 5,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "市值(百万)(当地币种)"
+ },
+ {
+ "row": 0,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 4,
+ "text": "EPS (元)"
+ },
+ {
+ "row": 0,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 4,
+ "text": "PE (倍)"
+ },
+ {
+ "row": 1,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2023"
+ },
+ {
+ "row": 1,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2024E"
+ },
+ {
+ "row": 1,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2025E"
+ },
+ {
+ "row": 1,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2026E"
+ },
+ {
+ "row": 1,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2023"
+ },
+ {
+ "row": 1,
+ "col": 11,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2024E"
+ },
+ {
+ "row": 1,
+ "col": 12,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2025E"
+ },
+ {
+ "row": 1,
+ "col": 13,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2026E"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "比亚迪"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "002594 CH"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "买入"
+ },
+ {
+ "row": 2,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "264.06"
+ },
+ {
+ "row": 2,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "317.02"
+ },
+ {
+ "row": 2,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "768,221"
+ },
+ {
+ "row": 2,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10.33"
+ },
+ {
+ "row": 2,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "12.75"
+ },
+ {
+ "row": 2,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "16.23"
+ },
+ {
+ "row": 2,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "20.04"
+ },
+ {
+ "row": 2,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "25.56"
+ },
+ {
+ "row": 2,
+ "col": 11,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "20.71"
+ },
+ {
+ "row": 2,
+ "col": 12,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "16.27"
+ },
+ {
+ "row": 2,
+ "col": 13,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "13.18"
+ },
+ {
+ "row": 3,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "小鹏汽车-W"
+ },
+ {
+ "row": 3,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9868 HK"
+ },
+ {
+ "row": 3,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "买入"
+ },
+ {
+ "row": 3,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "32.40"
+ },
+ {
+ "row": 3,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "64.07"
+ },
+ {
+ "row": 3,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "61,317"
+ },
+ {
+ "row": 3,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-5.49"
+ },
+ {
+ "row": 3,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-3.38"
+ },
+ {
+ "row": 3,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-1.41"
+ },
+ {
+ "row": 3,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.92"
+ },
+ {
+ "row": 3,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-5.39"
+ },
+ {
+ "row": 3,
+ "col": 11,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-8.75"
+ },
+ {
+ "row": 3,
+ "col": 12,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-20.98"
+ },
+ {
+ "row": 3,
+ "col": 13,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "32.16"
+ },
+ {
+ "row": 4,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "科博达"
+ },
+ {
+ "row": 4,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "603786 CH"
+ },
+ {
+ "row": 4,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "买入"
+ },
+ {
+ "row": 4,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "54.30"
+ },
+ {
+ "row": 4,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "83.44"
+ },
+ {
+ "row": 4,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "21,932"
+ },
+ {
+ "row": 4,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.51"
+ },
+ {
+ "row": 4,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.11"
+ },
+ {
+ "row": 4,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.89"
+ },
+ {
+ "row": 4,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.71"
+ },
+ {
+ "row": 4,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "35.96"
+ },
+ {
+ "row": 4,
+ "col": 11,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "25.73"
+ },
+ {
+ "row": 4,
+ "col": 12,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "18.79"
+ },
+ {
+ "row": 4,
+ "col": 13,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "14.64"
+ },
+ {
+ "row": 5,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "中鼎股份"
+ },
+ {
+ "row": 5,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "000887 CH"
+ },
+ {
+ "row": 5,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "买入"
+ },
+ {
+ "row": 5,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "12.45"
+ },
+ {
+ "row": 5,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "16.94"
+ },
+ {
+ "row": 5,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "16,390"
+ },
+ {
+ "row": 5,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.86"
+ },
+ {
+ "row": 5,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.10"
+ },
+ {
+ "row": 5,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.38"
+ },
+ {
+ "row": 5,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.67"
+ },
+ {
+ "row": 5,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "14.48"
+ },
+ {
+ "row": 5,
+ "col": 11,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "11.32"
+ },
+ {
+ "row": 5,
+ "col": 12,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.02"
+ },
+ {
+ "row": 5,
+ "col": 13,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.46"
+ },
+ {
+ "row": 6,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "星宇股份"
+ },
+ {
+ "row": 6,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "601799 CH"
+ },
+ {
+ "row": 6,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "买入"
+ },
+ {
+ "row": 6,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "128.00"
+ },
+ {
+ "row": 6,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "161.29"
+ },
+ {
+ "row": 6,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "36,567"
+ },
+ {
+ "row": 6,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.86"
+ },
+ {
+ "row": 6,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.62"
+ },
+ {
+ "row": 6,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.64"
+ },
+ {
+ "row": 6,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.88"
+ },
+ {
+ "row": 6,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "33.16"
+ },
+ {
+ "row": 6,
+ "col": 11,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "22.78"
+ },
+ {
+ "row": 6,
+ "col": 12,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "16.75"
+ },
+ {
+ "row": 6,
+ "col": 13,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "12.96"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified"
+ },
+ {
+ "file": "demo1.pdf",
+ "page_index": 5,
+ "table_index": 1,
+ "bbox": [
+ 0.087,
+ 0.697,
+ 0.922,
+ 0.876
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 12,
+ "cols": 11,
+ "content_sha256": "94e6c2129bea6c00e170ce3704d2ace34ddc0c5ee8afdd6ec5f748e565679249",
+ "span_signature": [
+ [
+ 0,
+ 0,
+ 2,
+ 1
+ ],
+ [
+ 0,
+ 1,
+ 1,
+ 10
+ ]
+ ],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "Site"
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 10,
+ "text": "Percentile"
+ },
+ {
+ "row": 1,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10"
+ },
+ {
+ "row": 1,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "20"
+ },
+ {
+ "row": 1,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "30"
+ },
+ {
+ "row": 1,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "40"
+ },
+ {
+ "row": 1,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "50"
+ },
+ {
+ "row": 1,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "60"
+ },
+ {
+ "row": 1,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "70"
+ },
+ {
+ "row": 1,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "80"
+ },
+ {
+ "row": 1,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "90"
+ },
+ {
+ "row": 1,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "100"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Traralgon Ck"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.82"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.85"
+ },
+ {
+ "row": 2,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.81"
+ },
+ {
+ "row": 2,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.81"
+ },
+ {
+ "row": 2,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.83"
+ },
+ {
+ "row": 2,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.78"
+ },
+ {
+ "row": 2,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.80"
+ },
+ {
+ "row": 2,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.77"
+ },
+ {
+ "row": 2,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.65"
+ },
+ {
+ "row": 2,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.56"
+ },
+ {
+ "row": 3,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Redhill"
+ },
+ {
+ "row": 3,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.90"
+ },
+ {
+ "row": 3,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.95"
+ },
+ {
+ "row": 3,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.82"
+ },
+ {
+ "row": 3,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.80"
+ },
+ {
+ "row": 3,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.92"
+ },
+ {
+ "row": 3,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.88"
+ },
+ {
+ "row": 3,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.89"
+ },
+ {
+ "row": 3,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.77"
+ },
+ {
+ "row": 3,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.65"
+ },
+ {
+ "row": 3,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.42"
+ },
+ {
+ "row": 4,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Pine Ck"
+ },
+ {
+ "row": 4,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.56"
+ },
+ {
+ "row": 4,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.76"
+ },
+ {
+ "row": 4,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.88"
+ },
+ {
+ "row": 4,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.99"
+ },
+ {
+ "row": 4,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.99"
+ },
+ {
+ "row": 4,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.99"
+ },
+ {
+ "row": 4,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.71"
+ },
+ {
+ "row": 4,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.99"
+ },
+ {
+ "row": 4,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "na"
+ },
+ {
+ "row": 4,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "na"
+ },
+ {
+ "row": 5,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Stewarts Ck 5"
+ },
+ {
+ "row": 5,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.82"
+ },
+ {
+ "row": 5,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.85"
+ },
+ {
+ "row": 5,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.81"
+ },
+ {
+ "row": 5,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.88"
+ },
+ {
+ "row": 5,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.87"
+ },
+ {
+ "row": 5,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.88"
+ },
+ {
+ "row": 5,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.88"
+ },
+ {
+ "row": 5,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "na"
+ },
+ {
+ "row": 5,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "na"
+ },
+ {
+ "row": 5,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "na"
+ },
+ {
+ "row": 6,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Glendhu 2"
+ },
+ {
+ "row": 6,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.76"
+ },
+ {
+ "row": 6,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.77"
+ },
+ {
+ "row": 6,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.82"
+ },
+ {
+ "row": 6,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.84"
+ },
+ {
+ "row": 6,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "ns"
+ },
+ {
+ "row": 6,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.87"
+ },
+ {
+ "row": 6,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.89"
+ },
+ {
+ "row": 6,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.90"
+ },
+ {
+ "row": 6,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.86"
+ },
+ {
+ "row": 6,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.76"
+ },
+ {
+ "row": 7,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Cathedral Peak 2"
+ },
+ {
+ "row": 7,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.83"
+ },
+ {
+ "row": 7,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.91"
+ },
+ {
+ "row": 7,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.93"
+ },
+ {
+ "row": 7,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.92"
+ },
+ {
+ "row": 7,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.81"
+ },
+ {
+ "row": 7,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.73"
+ },
+ {
+ "row": 7,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.89"
+ },
+ {
+ "row": 7,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.95"
+ },
+ {
+ "row": 7,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.96"
+ },
+ {
+ "row": 7,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.95"
+ },
+ {
+ "row": 8,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Cathedral Peak 3"
+ },
+ {
+ "row": 8,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.68"
+ },
+ {
+ "row": 8,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.75"
+ },
+ {
+ "row": 8,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.78"
+ },
+ {
+ "row": 8,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.91"
+ },
+ {
+ "row": 8,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.96"
+ },
+ {
+ "row": 8,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.95"
+ },
+ {
+ "row": 8,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.94"
+ },
+ {
+ "row": 8,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.81"
+ },
+ {
+ "row": 8,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.84"
+ },
+ {
+ "row": 8,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.79"
+ },
+ {
+ "row": 9,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Lambrechtsbos A"
+ },
+ {
+ "row": 9,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.71"
+ },
+ {
+ "row": 9,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.60"
+ },
+ {
+ "row": 9,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.57"
+ },
+ {
+ "row": 9,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.47"
+ },
+ {
+ "row": 9,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.47"
+ },
+ {
+ "row": 9,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.47"
+ },
+ {
+ "row": 9,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.47"
+ },
+ {
+ "row": 9,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.50"
+ },
+ {
+ "row": 9,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.49"
+ },
+ {
+ "row": 9,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.51"
+ },
+ {
+ "row": 10,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Lambrechtsbos B"
+ },
+ {
+ "row": 10,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.82"
+ },
+ {
+ "row": 10,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.76"
+ },
+ {
+ "row": 10,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.70"
+ },
+ {
+ "row": 10,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.66"
+ },
+ {
+ "row": 10,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.65"
+ },
+ {
+ "row": 10,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.65"
+ },
+ {
+ "row": 10,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.62"
+ },
+ {
+ "row": 10,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.59"
+ },
+ {
+ "row": 10,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.58"
+ },
+ {
+ "row": 10,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.58"
+ },
+ {
+ "row": 11,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Biesievlei"
+ },
+ {
+ "row": 11,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.96"
+ },
+ {
+ "row": 11,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.96"
+ },
+ {
+ "row": 11,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.90"
+ },
+ {
+ "row": 11,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.82"
+ },
+ {
+ "row": 11,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.81"
+ },
+ {
+ "row": 11,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.88"
+ },
+ {
+ "row": 11,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.92"
+ },
+ {
+ "row": 11,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.94"
+ },
+ {
+ "row": 11,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.91"
+ },
+ {
+ "row": 11,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.81"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified",
+ "extra_verified": true
+ },
+ {
+ "file": "demo1.pdf",
+ "page_index": 7,
+ "table_index": 0,
+ "bbox": [
+ 0.087,
+ 0.696,
+ 0.922,
+ 0.876
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 12,
+ "cols": 11,
+ "content_sha256": "1a78cd653bbe87b609ec1debf29050ed93636cd9fe8ef6b609ca8542b35db4e9",
+ "span_signature": [
+ [
+ 0,
+ 0,
+ 2,
+ 1
+ ],
+ [
+ 0,
+ 1,
+ 1,
+ 10
+ ]
+ ],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 2,
+ "colspan": 1,
+ "text": "Site"
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 10,
+ "text": "Percentile"
+ },
+ {
+ "row": 1,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10"
+ },
+ {
+ "row": 1,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "20"
+ },
+ {
+ "row": 1,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "30"
+ },
+ {
+ "row": 1,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "40"
+ },
+ {
+ "row": 1,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "50"
+ },
+ {
+ "row": 1,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "60"
+ },
+ {
+ "row": 1,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "70"
+ },
+ {
+ "row": 1,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "80"
+ },
+ {
+ "row": 1,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "90"
+ },
+ {
+ "row": 1,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "100"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Traralgon Ck"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.68"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.59"
+ },
+ {
+ "row": 2,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.99"
+ },
+ {
+ "row": 2,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10.02"
+ },
+ {
+ "row": 2,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.92"
+ },
+ {
+ "row": 2,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.59"
+ },
+ {
+ "row": 2,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.92"
+ },
+ {
+ "row": 2,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.97"
+ },
+ {
+ "row": 2,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.39"
+ },
+ {
+ "row": 2,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.97"
+ },
+ {
+ "row": 3,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Redhill"
+ },
+ {
+ "row": 3,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.13"
+ },
+ {
+ "row": 3,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.07"
+ },
+ {
+ "row": 3,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.99"
+ },
+ {
+ "row": 3,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.99"
+ },
+ {
+ "row": 3,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.07"
+ },
+ {
+ "row": 3,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.04"
+ },
+ {
+ "row": 3,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.79"
+ },
+ {
+ "row": 3,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.81"
+ },
+ {
+ "row": 3,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.02"
+ },
+ {
+ "row": 3,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.00"
+ },
+ {
+ "row": 4,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Pine Ck"
+ },
+ {
+ "row": 4,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.87"
+ },
+ {
+ "row": 4,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.52"
+ },
+ {
+ "row": 4,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.45"
+ },
+ {
+ "row": 4,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.22"
+ },
+ {
+ "row": 4,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.69"
+ },
+ {
+ "row": 4,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.86"
+ },
+ {
+ "row": 4,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.64"
+ },
+ {
+ "row": 4,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.25"
+ },
+ {
+ "row": 4,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "na"
+ },
+ {
+ "row": 4,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "na"
+ },
+ {
+ "row": 5,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Stewarts Ck 5"
+ },
+ {
+ "row": 5,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.49"
+ },
+ {
+ "row": 5,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.41"
+ },
+ {
+ "row": 5,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.09"
+ },
+ {
+ "row": 5,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.96"
+ },
+ {
+ "row": 5,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.89"
+ },
+ {
+ "row": 5,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.03"
+ },
+ {
+ "row": 5,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.31"
+ },
+ {
+ "row": 5,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "na"
+ },
+ {
+ "row": 5,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "na"
+ },
+ {
+ "row": 5,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "na"
+ },
+ {
+ "row": 6,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Glendhu 2"
+ },
+ {
+ "row": 6,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "19.59"
+ },
+ {
+ "row": 6,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.67"
+ },
+ {
+ "row": 6,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.24"
+ },
+ {
+ "row": 6,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.08"
+ },
+ {
+ "row": 6,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "ns"
+ },
+ {
+ "row": 6,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.06"
+ },
+ {
+ "row": 6,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.07"
+ },
+ {
+ "row": 6,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.62"
+ },
+ {
+ "row": 6,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.63"
+ },
+ {
+ "row": 6,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.02"
+ },
+ {
+ "row": 7,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Cathedral Peak 2"
+ },
+ {
+ "row": 7,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "4.96"
+ },
+ {
+ "row": 7,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.92"
+ },
+ {
+ "row": 7,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.78"
+ },
+ {
+ "row": 7,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.68"
+ },
+ {
+ "row": 7,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.64"
+ },
+ {
+ "row": 7,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.95"
+ },
+ {
+ "row": 7,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.26"
+ },
+ {
+ "row": 7,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.08"
+ },
+ {
+ "row": 7,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.93"
+ },
+ {
+ "row": 7,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.47"
+ },
+ {
+ "row": 8,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Cathedral Peak 3"
+ },
+ {
+ "row": 8,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "14.13"
+ },
+ {
+ "row": 8,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "13.20"
+ },
+ {
+ "row": 8,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.02"
+ },
+ {
+ "row": 8,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.44"
+ },
+ {
+ "row": 8,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.01"
+ },
+ {
+ "row": 8,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.68"
+ },
+ {
+ "row": 8,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.87"
+ },
+ {
+ "row": 8,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.46"
+ },
+ {
+ "row": 8,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.16"
+ },
+ {
+ "row": 8,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.98"
+ },
+ {
+ "row": 9,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Lambrechtsbos A"
+ },
+ {
+ "row": 9,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.89"
+ },
+ {
+ "row": 9,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.87"
+ },
+ {
+ "row": 9,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.93"
+ },
+ {
+ "row": 9,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.89"
+ },
+ {
+ "row": 9,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.88"
+ },
+ {
+ "row": 9,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.97"
+ },
+ {
+ "row": 9,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.94"
+ },
+ {
+ "row": 9,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.93"
+ },
+ {
+ "row": 9,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.94"
+ },
+ {
+ "row": 9,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.97"
+ },
+ {
+ "row": 10,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Lambrechtsbos B"
+ },
+ {
+ "row": 10,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "14.52"
+ },
+ {
+ "row": 10,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "14.84"
+ },
+ {
+ "row": 10,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "14.89"
+ },
+ {
+ "row": 10,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10.98"
+ },
+ {
+ "row": 10,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.89"
+ },
+ {
+ "row": 10,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.69"
+ },
+ {
+ "row": 10,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.55"
+ },
+ {
+ "row": 10,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.01"
+ },
+ {
+ "row": 10,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.23"
+ },
+ {
+ "row": 10,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "6.29"
+ },
+ {
+ "row": 11,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Biesievlei"
+ },
+ {
+ "row": 11,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.36"
+ },
+ {
+ "row": 11,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.17"
+ },
+ {
+ "row": 11,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.59"
+ },
+ {
+ "row": 11,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10.32"
+ },
+ {
+ "row": 11,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10.78"
+ },
+ {
+ "row": 11,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10.46"
+ },
+ {
+ "row": 11,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10.06"
+ },
+ {
+ "row": 11,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10.08"
+ },
+ {
+ "row": 11,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10"
+ },
+ {
+ "row": 11,
+ "col": 10,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10.10"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified"
+ },
+ {
+ "file": "demo2.pdf",
+ "page_index": 3,
+ "table_index": 0,
+ "bbox": [
+ 0.539,
+ 0.53,
+ 0.891,
+ 0.638
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 9,
+ "cols": 3,
+ "content_sha256": "7c5a18775a22d2efac0d940971ba52c713ff75a23cb14208ec6eaa29d8e6137d",
+ "span_signature": [],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Symbol"
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Description"
+ },
+ {
+ "row": 0,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Value"
+ },
+ {
+ "row": 1,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "ω"
+ },
+ {
+ "row": 1,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Window size for cost aggregation"
+ },
+ {
+ "row": 1,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "33"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "τ"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Color difference truncation value"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "40"
+ },
+ {
+ "row": 3,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "γc"
+ },
+ {
+ "row": 3,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Strength of grouping by color similarity 1"
+ },
+ {
+ "row": 3,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.03"
+ },
+ {
+ "row": 4,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "γg"
+ },
+ {
+ "row": 4,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Strength of grouping by proximity 1"
+ },
+ {
+ "row": 4,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.03"
+ },
+ {
+ "row": 5,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "λ"
+ },
+ {
+ "row": 5,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Temporal feedback coefficient"
+ },
+ {
+ "row": 5,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "varied"
+ },
+ {
+ "row": 6,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "γt"
+ },
+ {
+ "row": 6,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Strength of temporal grouping"
+ },
+ {
+ "row": 6,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.01"
+ },
+ {
+ "row": 7,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "k"
+ },
+ {
+ "row": 7,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Number of iterations in refinement stage"
+ },
+ {
+ "row": 7,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3"
+ },
+ {
+ "row": 8,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "α"
+ },
+ {
+ "row": 8,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Disparity difference penalty"
+ },
+ {
+ "row": 8,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "0.08"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified"
+ },
+ {
+ "file": "demo2.pdf",
+ "page_index": 4,
+ "table_index": 0,
+ "bbox": [
+ 0.52,
+ 0.278,
+ 0.91,
+ 0.39
+ ],
+ "expected_output": "html",
+ "rows": 9,
+ "cols": 5,
+ "content_sha256": "0d2fbc3114bf3bc2f95bc4c17ba97652b73a6b57330d4fa52edf84c10e1918a7"
+ },
+ {
+ "file": "demo3.pdf",
+ "page_index": 0,
+ "table_index": 0,
+ "bbox": [
+ 0.613,
+ 0.267,
+ 0.782,
+ 0.304
+ ],
+ "expected_output": "html",
+ "expected_source": "vector_grid",
+ "rows": 3,
+ "cols": 2,
+ "content_sha256": "6f0c43497bb668fb86148cb518ba1118d4db118918731857eeaa10449bc5e3c9",
+ "span_signature": [],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Title"
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Length"
+ },
+ {
+ "row": 1,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Screwed Up"
+ },
+ {
+ "row": 1,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5:02"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Ghetto Queen"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5:00"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified"
+ },
+ {
+ "file": "demo3.pdf",
+ "page_index": 0,
+ "table_index": 1,
+ "bbox": [
+ 0.562,
+ 0.424,
+ 0.834,
+ 0.474
+ ],
+ "expected_output": "html",
+ "rows": 4,
+ "cols": 4,
+ "content_sha256": "3ed90e245cfa2cf3e3b3d02ad08178f00e22947f5eca902cb14b94247f341225"
+ },
+ {
+ "file": "demo3.pdf",
+ "page_index": 5,
+ "table_index": 0,
+ "bbox": [
+ 0.129,
+ 0.084,
+ 0.871,
+ 0.275
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 12,
+ "cols": 10,
+ "content_sha256": "db10d2560f690f11b585c9550cdf554cf057004c7c89d177aeccf3c17b8f90e4",
+ "span_signature": [
+ [
+ 0,
+ 1,
+ 1,
+ 5
+ ],
+ [
+ 0,
+ 6,
+ 1,
+ 4
+ ]
+ ],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": ""
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 5,
+ "text": "Before Perturb"
+ },
+ {
+ "row": 0,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 4,
+ "text": "After Perturb"
+ },
+ {
+ "row": 1,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": ""
+ },
+ {
+ "row": 1,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "dev"
+ },
+ {
+ "row": 1,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "test"
+ },
+ {
+ "row": 1,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "testsimple"
+ },
+ {
+ "row": 1,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "testcomplex"
+ },
+ {
+ "row": 1,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "testsmall"
+ },
+ {
+ "row": 1,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "test"
+ },
+ {
+ "row": 1,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "testsimple"
+ },
+ {
+ "row": 1,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "testcomplex"
+ },
+ {
+ "row": 1,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "testsmall"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Eisenschlos et al. (2020)"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "81.0"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "81.0"
+ },
+ {
+ "row": 2,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "92.3"
+ },
+ {
+ "row": 2,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "75.6"
+ },
+ {
+ "row": 2,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "83.9"
+ },
+ {
+ "row": 2,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 2,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 2,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 2,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 3,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Eisenschlos et al. (2021)"
+ },
+ {
+ "row": 3,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 3,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "81.4"
+ },
+ {
+ "row": 3,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 3,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 3,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 3,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 3,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 3,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 3,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "-"
+ },
+ {
+ "row": 4,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "TAPASBASE"
+ },
+ {
+ "row": 4,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "72.8"
+ },
+ {
+ "row": 4,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "72.3"
+ },
+ {
+ "row": 4,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "84.8"
+ },
+ {
+ "row": 4,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "66.2"
+ },
+ {
+ "row": 4,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "74.4"
+ },
+ {
+ "row": 4,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "71.2"
+ },
+ {
+ "row": 4,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "83.4"
+ },
+ {
+ "row": 4,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "65.2"
+ },
+ {
+ "row": 4,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "72.5"
+ },
+ {
+ "row": 5,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "TABLEFORMERBASE"
+ },
+ {
+ "row": 5,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "75.1"
+ },
+ {
+ "row": 5,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "75.0"
+ },
+ {
+ "row": 5,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "88.2"
+ },
+ {
+ "row": 5,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "68.5"
+ },
+ {
+ "row": 5,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "77.1"
+ },
+ {
+ "row": 5,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "75.0"
+ },
+ {
+ "row": 5,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "88.2"
+ },
+ {
+ "row": 5,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "68.5"
+ },
+ {
+ "row": 5,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "77.1"
+ },
+ {
+ "row": 6,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "TAPASLARGE"
+ },
+ {
+ "row": 6,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "74.7"
+ },
+ {
+ "row": 6,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "74.5"
+ },
+ {
+ "row": 6,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "86.6"
+ },
+ {
+ "row": 6,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "68.6"
+ },
+ {
+ "row": 6,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "76.8"
+ },
+ {
+ "row": 6,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "73.7"
+ },
+ {
+ "row": 6,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "86.0"
+ },
+ {
+ "row": 6,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "67.7"
+ },
+ {
+ "row": 6,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "76.1"
+ },
+ {
+ "row": 7,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "TABLEFORMERLARGE"
+ },
+ {
+ "row": 7,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "77.2"
+ },
+ {
+ "row": 7,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "77.0"
+ },
+ {
+ "row": 7,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "90.2"
+ },
+ {
+ "row": 7,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "70.5"
+ },
+ {
+ "row": 7,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "80.3"
+ },
+ {
+ "row": 7,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "77.0"
+ },
+ {
+ "row": 7,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "90.2"
+ },
+ {
+ "row": 7,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "70.5"
+ },
+ {
+ "row": 7,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "80.3"
+ },
+ {
+ "row": 8,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "TAPASBASE inter"
+ },
+ {
+ "row": 8,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "78.4"
+ },
+ {
+ "row": 8,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "77.9"
+ },
+ {
+ "row": 8,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "90.1"
+ },
+ {
+ "row": 8,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "71.9"
+ },
+ {
+ "row": 8,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "80.5"
+ },
+ {
+ "row": 8,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "76.8"
+ },
+ {
+ "row": 8,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "89.5"
+ },
+ {
+ "row": 8,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "70.5"
+ },
+ {
+ "row": 8,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "79.7"
+ },
+ {
+ "row": 9,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "TABLEFORMERBASE inter"
+ },
+ {
+ "row": 9,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "79.7"
+ },
+ {
+ "row": 9,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "79.2"
+ },
+ {
+ "row": 9,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "91.6"
+ },
+ {
+ "row": 9,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "73.1"
+ },
+ {
+ "row": 9,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "81.7"
+ },
+ {
+ "row": 9,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "79.2"
+ },
+ {
+ "row": 9,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "91.6"
+ },
+ {
+ "row": 9,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "73.1"
+ },
+ {
+ "row": 9,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "81.7"
+ },
+ {
+ "row": 10,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "TAPASLARGE inter"
+ },
+ {
+ "row": 10,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "80.6"
+ },
+ {
+ "row": 10,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "80.6"
+ },
+ {
+ "row": 10,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "92.0"
+ },
+ {
+ "row": 10,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "74.9"
+ },
+ {
+ "row": 10,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "83.1"
+ },
+ {
+ "row": 10,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "79.2"
+ },
+ {
+ "row": 10,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "91.7"
+ },
+ {
+ "row": 10,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "73.0"
+ },
+ {
+ "row": 10,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "83.0"
+ },
+ {
+ "row": 11,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "TABLEFORMERLARGE inter"
+ },
+ {
+ "row": 11,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "82.0"
+ },
+ {
+ "row": 11,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "81.6"
+ },
+ {
+ "row": 11,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "93.3"
+ },
+ {
+ "row": 11,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "75.9"
+ },
+ {
+ "row": 11,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "84.6"
+ },
+ {
+ "row": 11,
+ "col": 6,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "81.6"
+ },
+ {
+ "row": 11,
+ "col": 7,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "93.3"
+ },
+ {
+ "row": 11,
+ "col": 8,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "75.9"
+ },
+ {
+ "row": 11,
+ "col": 9,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "84.6"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified"
+ },
+ {
+ "file": "demo3.pdf",
+ "page_index": 7,
+ "table_index": 1,
+ "bbox": [
+ 0.514,
+ 0.084,
+ 0.881,
+ 0.283
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 15,
+ "cols": 3,
+ "content_sha256": "f25432428d565b97dd16ec037a6234a6f9e74985fdfd92bc97e10450edfdc6a2",
+ "span_signature": [],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": ""
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "ALL"
+ },
+ {
+ "row": 0,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "SEQ"
+ },
+ {
+ "row": 1,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "TABLEFORMERBASE"
+ },
+ {
+ "row": 1,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "62.1"
+ },
+ {
+ "row": 1,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "38.4"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Same Row"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "32.1"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.8"
+ },
+ {
+ "row": 3,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Same Column"
+ },
+ {
+ "row": 3,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "62.1"
+ },
+ {
+ "row": 3,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "37.7"
+ },
+ {
+ "row": 4,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Same Cell"
+ },
+ {
+ "row": 4,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "61.8"
+ },
+ {
+ "row": 4,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "38.4"
+ },
+ {
+ "row": 5,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Cell to Column Header"
+ },
+ {
+ "row": 5,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "60.7"
+ },
+ {
+ "row": 5,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "36.6"
+ },
+ {
+ "row": 6,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Cell to Sentence"
+ },
+ {
+ "row": 6,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "60.5"
+ },
+ {
+ "row": 6,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "36.4"
+ },
+ {
+ "row": 7,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Header to Column Cell"
+ },
+ {
+ "row": 7,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "60.5"
+ },
+ {
+ "row": 7,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "35.8"
+ },
+ {
+ "row": 8,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Header to Other Header"
+ },
+ {
+ "row": 8,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "60.6"
+ },
+ {
+ "row": 8,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "35.8"
+ },
+ {
+ "row": 9,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Header to Same Header"
+ },
+ {
+ "row": 9,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "61.0"
+ },
+ {
+ "row": 9,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "36.9"
+ },
+ {
+ "row": 10,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Header to Sentence"
+ },
+ {
+ "row": 10,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "61.1"
+ },
+ {
+ "row": 10,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "36.3"
+ },
+ {
+ "row": 11,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Sentence to Cell"
+ },
+ {
+ "row": 11,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "60.8"
+ },
+ {
+ "row": 11,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "36.2"
+ },
+ {
+ "row": 12,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Sentence to Header"
+ },
+ {
+ "row": 12,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "61.0"
+ },
+ {
+ "row": 12,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "37.3"
+ },
+ {
+ "row": 13,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- Sentence to Sentence"
+ },
+ {
+ "row": 13,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "60.0"
+ },
+ {
+ "row": 13,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "35.3"
+ },
+ {
+ "row": 14,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "- All Column Related (# 2, 4, 6)"
+ },
+ {
+ "row": 14,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "54.5"
+ },
+ {
+ "row": 14,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "29.3"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified"
+ },
+ {
+ "file": "mixed_elements_pages_03_06.pdf",
+ "page_index": 2,
+ "table_index": 0,
+ "bbox": [
+ 0.081,
+ 0.093,
+ 0.892,
+ 0.172
+ ],
+ "expected_output": "html",
+ "expected_source": "sparse_hybrid",
+ "rows": 3,
+ "cols": 6,
+ "content_sha256": "1605146e64ef7be920fc778076bf4abdb744abf3123148327054bd3b6195ec9f",
+ "span_signature": [],
+ "cell_truth": [
+ {
+ "row": 0,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Microstructure"
+ },
+ {
+ "row": 0,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "T0, K"
+ },
+ {
+ "row": 0,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "σ0, S K1/2/cm"
+ },
+ {
+ "row": 0,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "N(EF), eV-1 cm-3"
+ },
+ {
+ "row": 0,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "R, Å"
+ },
+ {
+ "row": 0,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "W, eV"
+ },
+ {
+ "row": 1,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Amorphous"
+ },
+ {
+ "row": 1,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.80"
+ },
+ {
+ "row": 1,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "9.2 × 103"
+ },
+ {
+ "row": 1,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "8.05 × 1023"
+ },
+ {
+ "row": 1,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "10.5"
+ },
+ {
+ "row": 1,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "1.28 × 10-4"
+ },
+ {
+ "row": 2,
+ "col": 0,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "Microcrystalline (annealing at 500-520 K for 15 min)"
+ },
+ {
+ "row": 2,
+ "col": 1,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "5.69"
+ },
+ {
+ "row": 2,
+ "col": 2,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "7.2 × 104"
+ },
+ {
+ "row": 2,
+ "col": 3,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "3.81 × 1026"
+ },
+ {
+ "row": 2,
+ "col": 4,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.3"
+ },
+ {
+ "row": 2,
+ "col": 5,
+ "rowspan": 1,
+ "colspan": 1,
+ "text": "2.72 × 10-5"
+ }
+ ],
+ "truth_scope": "sparse_hybrid_verified"
+ },
+ {
+ "file": "mixed_elements_pages_07_10.pdf",
+ "page_index": 3,
+ "table_index": 0,
+ "bbox": [
+ 0.112,
+ 0.352,
+ 0.47,
+ 0.496
+ ],
+ "expected_output": "html",
+ "rows": 11,
+ "cols": 4,
+ "content_sha256": "110e749698e1ccdad658112b45f6b5924cbc4a6b6d6728ead0becfe07917b4cb"
+ },
+ {
+ "file": "mixed_elements_pages_07_10.pdf",
+ "page_index": 3,
+ "table_index": 1,
+ "bbox": [
+ 0.121,
+ 0.626,
+ 0.461,
+ 0.71
+ ],
+ "expected_output": "html",
+ "rows": 6,
+ "cols": 3,
+ "content_sha256": "cf6e545fb4f6bad3ee63ec6b17dfdc6ec5d2a33e2772772367d3cdc927f1a600"
+ }
+ ]
+}
diff --git a/tests/unittest/test_native_pdf_table.py b/tests/unittest/test_native_pdf_table.py
index bcb46019..0bb356c3 100644
--- a/tests/unittest/test_native_pdf_table.py
+++ b/tests/unittest/test_native_pdf_table.py
@@ -264,6 +264,65 @@ def _rotated_single_column_input(angle: int) -> NativeTableInput:
)
+def _rotated_sparse_hybrid_input(angle: int) -> NativeTableInput:
+ """构造四种标准旋转下仅有表头横线的三行三列表格。"""
+
+ page_width, page_height = 120.0, 90.0
+ local_width, local_height = (page_height, page_width) if angle in {90, 270} else (page_width, page_height)
+ x_tracks = (0.0, local_width / 3.0, 2.0 * local_width / 3.0, local_width)
+ header_boundary = 0.30 * local_height
+ local_rule_bboxes = [
+ (0.0, 0.0, local_width, 1.0),
+ (0.0, header_boundary - 0.5, local_width, header_boundary + 0.5),
+ (0.0, local_height - 1.0, local_width, local_height),
+ *((track - 0.5, 0.0, track + 0.5, local_height) for track in x_tracks),
+ ]
+ rules = tuple(
+ NativeTableRule(
+ page_bbox,
+ 1.0,
+ "horizontal" if page_bbox[2] - page_bbox[0] >= page_bbox[3] - page_bbox[1] else "vertical",
+ )
+ for page_bbox in (
+ _local_to_page_bbox(
+ bbox,
+ page_width,
+ page_height,
+ angle,
+ )
+ for bbox in local_rule_bboxes
+ )
+ )
+ y_positions = (5.0, 0.42 * local_height, 0.70 * local_height)
+ entries = []
+ for row, values in enumerate((("H", "I", "J"), ("A", "1", "2"), ("B", "3", "4"))):
+ for col, value in enumerate(values):
+ local_bbox = (
+ x_tracks[col] + 5.0,
+ y_positions[row],
+ x_tracks[col] + 13.0,
+ y_positions[row] + 8.0,
+ )
+ entries.append(
+ (
+ value,
+ _local_to_page_bbox(
+ local_bbox,
+ page_width,
+ page_height,
+ angle,
+ ),
+ )
+ )
+ return NativeTableInput(
+ table_bbox=(0.0, 0.0, page_width, page_height),
+ page_size=(page_width, page_height),
+ angle=angle,
+ chars=_char_items(entries),
+ drawing_lines=rules,
+ )
+
+
def _candidate(
*,
source: str,
@@ -469,8 +528,8 @@ def test_single_long_rule_endpoint_does_not_create_global_column() -> None:
assert (result.rows, result.cols) == (2, 2)
-def test_line_grid_rejects_multiple_dense_baselines_inside_one_physical_row() -> None:
- """验证只有表头横线的强竖轨表不把多条数据基线压成一行。"""
+def test_sparse_hybrid_splits_dense_keyed_baselines_after_line_undercount() -> None:
+ """验证只有表头横线时按独立关键列把稠密正文基线恢复成多行。"""
rules = (
NativeTableRule((0.0, 0.0, 120.0, 1.0), 1.0, "horizontal"),
@@ -503,7 +562,12 @@ def test_line_grid_rejects_multiple_dense_baselines_inside_one_physical_row() ->
diagnostics = diagnose_native_pdf_table(table_input)
- assert recover_native_pdf_table(table_input) is None
+ result = recover_native_pdf_table(table_input)
+
+ assert result is not None
+ assert result.source == "sparse_hybrid"
+ assert (result.rows, result.cols) == (3, 3)
+ assert "<tr><td>B</td><td>3</td><td>4</td></tr>" in result.html
line_attempt = next(attempt for attempt in diagnostics["vector_attempts"] if attempt["evidence"] == "line_grid")
assert line_attempt["first_rejection_gate"] == "physical_row_undercount"
assert line_attempt["physical_row_dense_baseline_pairs"] == [
@@ -515,6 +579,90 @@ def test_line_grid_rejects_multiple_dense_baselines_inside_one_physical_row() ->
]
[email protected]("angle", [0, 90, 180, 270])
+def test_sparse_hybrid_supports_standard_table_rotations(angle: int) -> None:
+ """验证竖线加视觉正文行的少线候选支持四种标准旋转。"""
+
+ result = recover_native_pdf_table(_rotated_sparse_hybrid_input(angle))
+
+ assert result is not None
+ assert result.source == "sparse_hybrid"
+ assert (result.rows, result.cols) == (3, 3)
+ assert "<tr><td>B</td><td>3</td><td>4</td></tr>" in result.html
+
+
+def test_sparse_hybrid_recovers_two_level_header_spans() -> None:
+ """验证局部表头横线恢复左侧 rowspan 和分组标题 colspan。"""
+
+ table_input = NativeTableInput(
+ table_bbox=(0.0, 0.0, 120.0, 100.0),
+ page_size=(120.0, 100.0),
+ angle=0,
+ chars=_char_items(
+ [
+ ("Site", (8.0, 5.0, 24.0, 13.0)),
+ ("Metrics", (60.0, 5.0, 88.0, 13.0)),
+ ("Q1", (48.0, 25.0, 56.0, 33.0)),
+ ("Q2", (88.0, 25.0, 96.0, 33.0)),
+ ("A", (8.0, 55.0, 12.0, 63.0)),
+ ("1", (48.0, 55.0, 52.0, 63.0)),
+ ("2", (88.0, 55.0, 92.0, 63.0)),
+ ("B", (8.0, 78.0, 12.0, 86.0)),
+ ("3", (48.0, 78.0, 52.0, 86.0)),
+ ("4", (88.0, 78.0, 92.0, 86.0)),
+ ]
+ ),
+ drawing_lines=(
+ NativeTableRule((0.0, 0.0, 120.0, 1.0), 1.0, "horizontal"),
+ NativeTableRule((30.0, 19.5, 120.0, 20.5), 1.0, "horizontal"),
+ NativeTableRule((0.0, 99.0, 120.0, 100.0), 1.0, "horizontal"),
+ ),
+ )
+
+ result = recover_native_pdf_table(table_input)
+
+ assert result is not None
+ assert result.source == "sparse_hybrid"
+ assert (result.rows, result.cols) == (4, 3)
+ assert '<td rowspan="2">Site</td><td colspan="2">Metrics</td>' in result.html
+ assert "<tr><td>Q1</td><td>Q2</td></tr>" in result.html
+
+
+def test_sparse_hybrid_rejects_ambiguous_partial_header_separator() -> None:
+ """验证表头横线只覆盖部分叶子列时不猜测 rowspan/colspan。"""
+
+ table_input = NativeTableInput(
+ table_bbox=(0.0, 0.0, 120.0, 100.0),
+ page_size=(120.0, 100.0),
+ angle=0,
+ chars=_char_items(
+ [
+ ("Site", (8.0, 5.0, 24.0, 13.0)),
+ ("Metrics", (60.0, 5.0, 88.0, 13.0)),
+ ("Q1", (48.0, 25.0, 56.0, 33.0)),
+ ("Q2", (88.0, 25.0, 96.0, 33.0)),
+ ("A", (8.0, 55.0, 12.0, 63.0)),
+ ("1", (48.0, 55.0, 52.0, 63.0)),
+ ("2", (88.0, 55.0, 92.0, 63.0)),
+ ("B", (8.0, 78.0, 12.0, 86.0)),
+ ("3", (48.0, 78.0, 52.0, 86.0)),
+ ("4", (88.0, 78.0, 92.0, 86.0)),
+ ]
+ ),
+ drawing_lines=(
+ NativeTableRule((0.0, 0.0, 120.0, 1.0), 1.0, "horizontal"),
+ NativeTableRule((40.0, 19.5, 120.0, 20.5), 1.0, "horizontal"),
+ NativeTableRule((0.0, 99.0, 120.0, 100.0), 1.0, "horizontal"),
+ ),
+ )
+
+ diagnostics = diagnose_native_pdf_table(table_input)
+
+ assert recover_native_pdf_table(table_input) is None
+ sparse_attempt = diagnostics["sparse_hybrid_attempts"][0]
+ assert sparse_attempt["first_rejection_gate"] == "header_topology"
+
+
def test_vector_grid_joins_small_collinear_gaps() -> None:
"""验证内部竖线的小间隙会先连接,不会误判为 colspan。"""
@@ -1659,7 +1807,7 @@ def test_sparse_candidate_uses_rules_or_row_stripes(evidence: str) -> None:
)
assert result is not None
- assert result.source == "sparse_grid"
+ assert result.source == ("sparse_hybrid" if evidence == "booktabs" else "sparse_grid")
def test_candidate_conflict_with_close_scores_abstains() -> None:
diff --git a/tests/unittest/test_native_pdf_table_demo_manifest.py b/tests/unittest/test_native_pdf_table_demo_manifest.py
new file mode 100644
index 00000000..8d1cd842
--- /dev/null
+++ b/tests/unittest/test_native_pdf_table_demo_manifest.py
@@ -0,0 +1,156 @@
+"""验证 demo/pdfs 少线表高置信门的可移植真实文档真值。"""
+
+from __future__ import annotations
+
+import hashlib
+import json
+from collections import defaultdict
+from pathlib import Path
+from typing import Any
+
+from bs4 import BeautifulSoup
+
+from mineru.model.flash import PdfModel
+from mineru.utils.native_pdf_table import (
+ NativeTableInput,
+ coerce_native_table_rectangles,
+ coerce_native_table_rules,
+ recover_native_pdf_table,
+)
+from mineru.utils.pdf_document import PDFDocument
+
+
+_PROJECT_ROOT = Path(__file__).parents[2]
+_MANIFEST_PATH = _PROJECT_ROOT / "tests" / "fixtures" / "native_pdf_table_demo_manifest.json"
+
+
+def _is_html_table(content: object) -> bool:
+ """判断表体是否采用 Native HTML 输出。"""
+
+ return isinstance(content, str) and content.lstrip().lower().startswith("<table")
+
+
+def _html_shape(content: str) -> tuple[int, int]:
+ """计算 HTML 表格的物理行数和最大展开列数。"""
+
+ soup = BeautifulSoup(content, "html.parser")
+ rows = soup.find_all("tr")
+ cols = max(
+ (sum(max(1, int(cell.get("colspan", 1))) for cell in row.find_all(["td", "th"], recursive=False)) for row in rows),
+ default=0,
+ )
+ return len(rows), cols
+
+
+def _html_cell_truth(content: str) -> list[dict[str, Any]]:
+ """把 HTML 单元格展开为带网格位置和 span 的稳定记录。"""
+
+ soup = BeautifulSoup(content, "html.parser")
+ occupied: set[tuple[int, int]] = set()
+ records: list[dict[str, Any]] = []
+ for row_index, row in enumerate(soup.find_all("tr")):
+ col_index = 0
+ for cell in row.find_all(["td", "th"], recursive=False):
+ while (row_index, col_index) in occupied:
+ col_index += 1
+ rowspan = max(1, int(cell.get("rowspan", 1)))
+ colspan = max(1, int(cell.get("colspan", 1)))
+ records.append(
+ {
+ "row": row_index,
+ "col": col_index,
+ "rowspan": rowspan,
+ "colspan": colspan,
+ "text": cell.get_text(),
+ }
+ )
+ for covered_row in range(row_index, row_index + rowspan):
+ for covered_col in range(col_index, col_index + colspan):
+ occupied.add((covered_row, covered_col))
+ col_index += colspan
+ return records
+
+
+def _native_table_input(
+ document: PDFDocument,
+ target: dict[str, Any],
+) -> NativeTableInput:
+ """按归一化真值 bbox 构造共享 Native Table 输入。"""
+
+ page = document[target["page_index"]]
+ width, height = page.size
+ left, top, right, bottom = target["bbox"]
+ return NativeTableInput(
+ table_bbox=(
+ left * width,
+ top * height,
+ right * width,
+ bottom * height,
+ ),
+ page_size=page.size,
+ angle=0,
+ chars=tuple(page.get_chars()),
+ drawing_lines=coerce_native_table_rules(page.get_drawing_lines()),
+ rectangles=coerce_native_table_rectangles(page.get_path_infos()),
+ )
+
+
+def _load_manifest() -> dict[str, Any]:
+ """读取仓库相对路径的 demo 少线表真值。"""
+
+ return json.loads(_MANIFEST_PATH.read_text(encoding="utf-8"))
+
+
+def test_demo_sparse_table_confidence_manifest() -> None:
+ """验证少线目标逐格正确且全目录 HTML/投影总数保持固定。"""
+
+ manifest = _load_manifest()
+ source_root = _PROJECT_ROOT / manifest["source_root"]
+ targets_by_file: dict[str, list[dict[str, Any]]] = defaultdict(list)
+ for target in manifest["tables"]:
+ targets_by_file[target["file"]].append(target)
+
+ observed_html = 0
+ observed_projection = 0
+ observed_tables = 0
+ for pdf_path in sorted(source_root.glob("*.pdf")):
+ file_name = pdf_path.name
+ targets = targets_by_file.get(file_name, [])
+ pdf_path = source_root / file_name
+ assert pdf_path.is_file()
+ with PDFDocument(pdf_path.read_bytes()) as pdf_document:
+ model_list = PdfModel().predict(pdf_document)
+ for page in model_list:
+ for block in page:
+ if block.get("type") != "table":
+ continue
+ observed_tables += 1
+ if _is_html_table(block.get("content")):
+ observed_html += 1
+ else:
+ observed_projection += 1
+ for target in targets:
+ page_index = target["page_index"]
+ page_tables = [block for block in model_list[page_index] if block.get("type") == "table"]
+ block = page_tables[target["table_index"]]
+ assert block["bbox"] == target["bbox"]
+ content = block["content"]
+ assert target["expected_output"] == "html"
+ assert _is_html_table(content)
+ assert _html_shape(content) == (target["rows"], target["cols"])
+ assert hashlib.sha256(content.encode("utf-8")).hexdigest() == target["content_sha256"]
+ if "cell_truth" in target:
+ assert _html_cell_truth(content) == target["cell_truth"]
+ result = recover_native_pdf_table(
+ _native_table_input(
+ pdf_document,
+ target,
+ )
+ )
+ assert result is not None
+ assert result.source == target["expected_source"]
+
+ totals = manifest["totals"]
+ assert observed_tables == totals["tables"]
+ assert observed_html == totals["expected_html"]
+ assert observed_projection == totals["expected_projection"]