Spaces:
Running
Running
from abc import ABC, abstractmethod | |
from typing import AnyStr | |
class TOCService(ABC): | |
def extract_table_of_contents(self, pdf_content: AnyStr, segment_boxes: list[dict]) -> list[dict]: | |
pass | |
def format_toc_for_uwazi(self, toc_items: list[dict]) -> list[dict]: | |
pass | |