Spaces:
Sleeping
Sleeping
File size: 1,649 Bytes
82c1146 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | """
SmartEyeSsen Backend - Services Module
=======================================
๋น์ฆ๋์ค ๋ก์ง ์๋น์ค ๋ชจ๋
์ฃผ์ ์๋น์ค:
- formatter_rules: ํฌ๋งทํ
๊ท์น ์ ์ (์ฝ๋ ๊ธฐ๋ฐ)
- formatter: ํ
์คํธ ํฌ๋งทํ
์ฒ๋ฆฌ
- sorter: ๋ ์ด์์ ์ ๋ ฌ ์๊ณ ๋ฆฌ์ฆ
- analysis_service: ํ์ด์ง ๋ถ์ ํ์ดํ๋ผ์ธ
- batch_analysis: ๋ค์ค ํ์ด์ง ์ผ๊ด ๋ถ์
- download_service: ๋ฌธ์ ์์ฑ ๋ฐ ๋ค์ด๋ก๋
"""
from .formatter_rules import (
RuleConfig,
QUESTION_BASED_RULES,
READING_ORDER_RULES,
get_rules_for_document_type,
fetch_db_rules,
override_rules_with_db,
get_rule_for_class
)
from .formatter import (
TextFormatter
)
from .sorter import (
sort_layout_elements,
save_sorting_results_to_db
)
from .analysis_service import analyze_page
from .batch_analysis import analyze_project_batch, analyze_project_batch_async
from .text_version_service import (
create_text_version,
get_current_page_text,
save_user_edited_version,
)
from .download_service import generate_document
__all__ = [
# Formatter rules
"RuleConfig",
"QUESTION_BASED_RULES",
"READING_ORDER_RULES",
"get_rules_for_document_type",
"fetch_db_rules",
"override_rules_with_db",
"get_rule_for_class",
# Formatter
"TextFormatter",
# Sorter
"sort_layout_elements",
"save_sorting_results_to_db",
# Analysis
"analyze_page",
"analyze_project_batch",
"analyze_project_batch_async",
# Text Versions
"create_text_version",
"get_current_page_text",
"save_user_edited_version",
# Download
"generate_document",
]
|