"""
OCR 结果比较器包

提供 OCR 结果比较功能，支持表格和段落的智能对比。
"""

import sys
from pathlib import Path

# 添加 ocr_platform 根目录到 Python 路径（用于导入 ocr_utils）
# 使用 resolve() 确保路径是绝对路径，避免相对路径导致的 IndexError
_file_path = Path(__file__).resolve()
ocr_platform_root = _file_path.parents[1]  # ocr_comparator -> ocr_platform
if str(ocr_platform_root) not in sys.path:
    sys.path.insert(0, str(ocr_platform_root))

from .compare_ocr_results import compare_ocr_results
from .ocr_comparator import OCRResultComparator
from .report_generator import ReportGenerator
from .content_extractor import ContentExtractor
from .table_comparator import TableComparator
from .paragraph_comparator import ParagraphComparator
from .data_type_detector import DataTypeDetector
from .similarity_calculator import SimilarityCalculator
from .text_processor import TextProcessor

__all__ = [
    'compare_ocr_results',
    'OCRResultComparator',
    'ReportGenerator',
    'ContentExtractor',
    'TableComparator',
    'ParagraphComparator',
    'DataTypeDetector',
    'SimilarityCalculator',
    'TextProcessor',
]

