主体和权属检查
原能力
对照登记、协议、权利链和争议材料,记录证据不一致与在途事项。(细化版 p.14–15)
首选项目
NetworkX(BSD-3-Clause)。 NetworkX
接入说明
首选 NetworkX 查询已录入权属关系。原文件抽取另由 Docling 承担,事实确认由自研流程负责。
匹配范围
抽取材料、按有向关系追溯已录入的权属链。
源码
NetworkX · def shortest_path(
networkx/algorithms/shortest_paths/generic.py · 43–56 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def shortest_path(G, source=None, target=None, weight=None, method="dijkstra"):
"""Compute shortest paths in the graph.
Parameters
----------
G : NetworkX graph
source : node, optional
Starting node for path. If not specified, compute shortest
paths for each possible starting node.
target : node, optional
Ending node for path. If not specified, compute shortest
paths to all possible nodes.
Docling · def convert(
docling/document_converter.py · 696–709 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def convert(
self,
source: Union[Path, str, DocumentStream, HttpSource], # TODO review naming
headers: Optional[dict[str, str]] = None,
raises_on_error: bool = True,
max_num_pages: int = sys.maxsize,
max_file_size: int = sys.maxsize,
page_range: PageRange = DEFAULT_PAGE_RANGE,
progress_callback: Optional[ProgressCallback] = None,
) -> ConversionResult:
"""Convert one document fetched from a file path, URL, or DocumentStream.
A generic ZIP archive can contain multiple documents. Use ``convert_all``
for such archives. This method raises ``ConversionError`` instead of
- # SPDX-License-Identifier: MIT
实现与验收要点
登记机关资料、权源实际效力、争议和在途状态。