增加docling作为解析器
This commit is contained in:
@@ -3,7 +3,12 @@
|
||||
|
||||
from typing import Optional, Tuple
|
||||
|
||||
from common import parse_with_markitdown
|
||||
from common import parse_with_docling, parse_with_markitdown
|
||||
|
||||
|
||||
def parse_pdf_with_docling(file_path: str) -> Tuple[Optional[str], Optional[str]]:
|
||||
"""使用 docling 库解析 PDF 文件"""
|
||||
return parse_with_docling(file_path)
|
||||
|
||||
|
||||
def parse_pdf_with_markitdown(file_path: str) -> Tuple[Optional[str], Optional[str]]:
|
||||
|
||||
Reference in New Issue
Block a user