contextifier 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. contextifier-0.1.0.dist-info/METADATA +226 -0
  2. contextifier-0.1.0.dist-info/RECORD +122 -0
  3. contextifier-0.1.0.dist-info/WHEEL +4 -0
  4. contextifier-0.1.0.dist-info/licenses/LICENSE +201 -0
  5. libs/__init__.py +39 -0
  6. libs/chunking/__init__.py +171 -0
  7. libs/chunking/chunking.py +309 -0
  8. libs/chunking/constants.py +97 -0
  9. libs/chunking/page_chunker.py +202 -0
  10. libs/chunking/protected_regions.py +420 -0
  11. libs/chunking/sheet_processor.py +342 -0
  12. libs/chunking/table_chunker.py +474 -0
  13. libs/chunking/table_parser.py +172 -0
  14. libs/chunking/text_chunker.py +400 -0
  15. libs/core/__init__.py +65 -0
  16. libs/core/document_processor.py +937 -0
  17. libs/core/functions/__init__.py +46 -0
  18. libs/core/functions/img_processor.py +504 -0
  19. libs/core/functions/ppt2pdf.py +72 -0
  20. libs/core/functions/utils.py +159 -0
  21. libs/core/processor/__init__.py +86 -0
  22. libs/core/processor/base_handler.py +128 -0
  23. libs/core/processor/csv_handler.py +154 -0
  24. libs/core/processor/csv_helper/__init__.py +85 -0
  25. libs/core/processor/csv_helper/csv_constants.py +63 -0
  26. libs/core/processor/csv_helper/csv_encoding.py +104 -0
  27. libs/core/processor/csv_helper/csv_metadata.py +143 -0
  28. libs/core/processor/csv_helper/csv_parser.py +225 -0
  29. libs/core/processor/csv_helper/csv_table.py +266 -0
  30. libs/core/processor/doc_handler.py +568 -0
  31. libs/core/processor/doc_helpers/__init__.py +48 -0
  32. libs/core/processor/doc_helpers/rtf_bin_processor.py +537 -0
  33. libs/core/processor/doc_helpers/rtf_constants.py +60 -0
  34. libs/core/processor/doc_helpers/rtf_content_extractor.py +230 -0
  35. libs/core/processor/doc_helpers/rtf_decoder.py +132 -0
  36. libs/core/processor/doc_helpers/rtf_metadata_extractor.py +78 -0
  37. libs/core/processor/doc_helpers/rtf_models.py +364 -0
  38. libs/core/processor/doc_helpers/rtf_parser.py +200 -0
  39. libs/core/processor/doc_helpers/rtf_region_finder.py +121 -0
  40. libs/core/processor/doc_helpers/rtf_table_extractor.py +307 -0
  41. libs/core/processor/doc_helpers/rtf_text_cleaner.py +428 -0
  42. libs/core/processor/docx_handler.py +289 -0
  43. libs/core/processor/docx_helper/__init__.py +102 -0
  44. libs/core/processor/docx_helper/docx_chart.py +356 -0
  45. libs/core/processor/docx_helper/docx_constants.py +75 -0
  46. libs/core/processor/docx_helper/docx_drawing.py +210 -0
  47. libs/core/processor/docx_helper/docx_image.py +133 -0
  48. libs/core/processor/docx_helper/docx_metadata.py +112 -0
  49. libs/core/processor/docx_helper/docx_paragraph.py +116 -0
  50. libs/core/processor/docx_helper/docx_table.py +430 -0
  51. libs/core/processor/excel_handler.py +285 -0
  52. libs/core/processor/excel_helper/__init__.py +136 -0
  53. libs/core/processor/excel_helper/excel_chart_constants.py +31 -0
  54. libs/core/processor/excel_helper/excel_chart_formatter.py +106 -0
  55. libs/core/processor/excel_helper/excel_chart_parser.py +381 -0
  56. libs/core/processor/excel_helper/excel_chart_processor.py +50 -0
  57. libs/core/processor/excel_helper/excel_chart_renderer.py +155 -0
  58. libs/core/processor/excel_helper/excel_image.py +88 -0
  59. libs/core/processor/excel_helper/excel_layout_detector.py +739 -0
  60. libs/core/processor/excel_helper/excel_metadata.py +129 -0
  61. libs/core/processor/excel_helper/excel_table_xls.py +357 -0
  62. libs/core/processor/excel_helper/excel_table_xlsx.py +361 -0
  63. libs/core/processor/excel_helper/excel_textbox.py +266 -0
  64. libs/core/processor/html_reprocessor.py +140 -0
  65. libs/core/processor/hwp_handler.py +383 -0
  66. libs/core/processor/hwp_helper/__init__.py +138 -0
  67. libs/core/processor/hwp_helper/hwp_chart.py +781 -0
  68. libs/core/processor/hwp_helper/hwp_constants.py +78 -0
  69. libs/core/processor/hwp_helper/hwp_decoder.py +106 -0
  70. libs/core/processor/hwp_helper/hwp_docinfo.py +174 -0
  71. libs/core/processor/hwp_helper/hwp_image.py +293 -0
  72. libs/core/processor/hwp_helper/hwp_metadata.py +256 -0
  73. libs/core/processor/hwp_helper/hwp_record.py +149 -0
  74. libs/core/processor/hwp_helper/hwp_recovery.py +217 -0
  75. libs/core/processor/hwp_helper/hwp_table.py +205 -0
  76. libs/core/processor/hwps_handler.py +113 -0
  77. libs/core/processor/hwpx_helper/__init__.py +75 -0
  78. libs/core/processor/hwpx_helper/hwpx_chart.py +175 -0
  79. libs/core/processor/hwpx_helper/hwpx_constants.py +30 -0
  80. libs/core/processor/hwpx_helper/hwpx_image.py +77 -0
  81. libs/core/processor/hwpx_helper/hwpx_metadata.py +122 -0
  82. libs/core/processor/hwpx_helper/hwpx_section.py +146 -0
  83. libs/core/processor/hwpx_helper/hwpx_table.py +204 -0
  84. libs/core/processor/pdf_handler.py +552 -0
  85. libs/core/processor/pdf_helpers/__init__.py +229 -0
  86. libs/core/processor/pdf_helpers/pdf_block_image_engine.py +667 -0
  87. libs/core/processor/pdf_helpers/pdf_cell_analysis.py +493 -0
  88. libs/core/processor/pdf_helpers/pdf_complexity_analyzer.py +598 -0
  89. libs/core/processor/pdf_helpers/pdf_element_merger.py +45 -0
  90. libs/core/processor/pdf_helpers/pdf_graphic_detector.py +332 -0
  91. libs/core/processor/pdf_helpers/pdf_image.py +100 -0
  92. libs/core/processor/pdf_helpers/pdf_layout_block_detector.py +1244 -0
  93. libs/core/processor/pdf_helpers/pdf_line_analysis.py +420 -0
  94. libs/core/processor/pdf_helpers/pdf_metadata.py +120 -0
  95. libs/core/processor/pdf_helpers/pdf_page_analyzer.py +113 -0
  96. libs/core/processor/pdf_helpers/pdf_table_detection.py +1346 -0
  97. libs/core/processor/pdf_helpers/pdf_table_processor.py +896 -0
  98. libs/core/processor/pdf_helpers/pdf_table_quality_analyzer.py +750 -0
  99. libs/core/processor/pdf_helpers/pdf_table_validator.py +401 -0
  100. libs/core/processor/pdf_helpers/pdf_text_extractor.py +154 -0
  101. libs/core/processor/pdf_helpers/pdf_text_quality_analyzer.py +655 -0
  102. libs/core/processor/pdf_helpers/pdf_utils.py +182 -0
  103. libs/core/processor/pdf_helpers/pdf_vector_text_ocr.py +302 -0
  104. libs/core/processor/pdf_helpers/types.py +278 -0
  105. libs/core/processor/ppt_handler.py +215 -0
  106. libs/core/processor/ppt_helper/__init__.py +97 -0
  107. libs/core/processor/ppt_helper/ppt_bullet.py +332 -0
  108. libs/core/processor/ppt_helper/ppt_chart.py +128 -0
  109. libs/core/processor/ppt_helper/ppt_constants.py +119 -0
  110. libs/core/processor/ppt_helper/ppt_metadata.py +105 -0
  111. libs/core/processor/ppt_helper/ppt_shape.py +189 -0
  112. libs/core/processor/ppt_helper/ppt_slide.py +69 -0
  113. libs/core/processor/ppt_helper/ppt_table.py +386 -0
  114. libs/core/processor/text_handler.py +64 -0
  115. libs/ocr/__init__.py +66 -0
  116. libs/ocr/base.py +168 -0
  117. libs/ocr/ocr_engine/__init__.py +19 -0
  118. libs/ocr/ocr_engine/anthropic_ocr.py +90 -0
  119. libs/ocr/ocr_engine/gemini_ocr.py +90 -0
  120. libs/ocr/ocr_engine/openai_ocr.py +99 -0
  121. libs/ocr/ocr_engine/vllm_ocr.py +115 -0
  122. libs/ocr/ocr_processor.py +376 -0
@@ -0,0 +1,226 @@
1
+ Metadata-Version: 2.4
2
+ Name: contextifier
3
+ Version: 0.1.0
4
+ Summary: Convert raw documents into AI-understandable context with intelligent text extraction, table detection, and semantic chunking
5
+ Project-URL: Homepage, https://github.com/CocoRoF/Contextifier
6
+ Project-URL: Documentation, https://github.com/CocoRoF/Contextifier#readme
7
+ Project-URL: Repository, https://github.com/CocoRoF/Contextifier.git
8
+ Project-URL: Issues, https://github.com/CocoRoF/Contextifier/issues
9
+ Project-URL: Changelog, https://github.com/CocoRoF/Contextifier/releases
10
+ Author-email: CocoRoF <gkfua00@gmail.com>
11
+ Maintainer-email: CocoRoF <gkfua00@gmail.com>
12
+ License: Apache-2.0
13
+ License-File: LICENSE
14
+ Keywords: ai,chunking,document-processing,docx,hwp,langchain,llm,ocr,pdf,text-extraction,xlsx
15
+ Classifier: Development Status :: 4 - Beta
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: License :: OSI Approved :: Apache Software License
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Classifier: Topic :: Text Processing
25
+ Requires-Python: >=3.12
26
+ Requires-Dist: beautifulsoup4==4.14.3
27
+ Requires-Dist: cachetools==6.2.4
28
+ Requires-Dist: chardet==5.2.0
29
+ Requires-Dist: docx2pdf==0.1.8
30
+ Requires-Dist: langchain-anthropic==1.3.1
31
+ Requires-Dist: langchain-community==0.4.1
32
+ Requires-Dist: langchain-core==1.2.6
33
+ Requires-Dist: langchain-google-genai==4.1.3
34
+ Requires-Dist: langchain-openai==1.1.7
35
+ Requires-Dist: langchain-text-splitters==1.1.0
36
+ Requires-Dist: langchain==1.2.3
37
+ Requires-Dist: langgraph==1.0.5
38
+ Requires-Dist: langsmith==0.6.2
39
+ Requires-Dist: matplotlib==3.10.8
40
+ Requires-Dist: olefile==0.47
41
+ Requires-Dist: openpyxl==3.1.5
42
+ Requires-Dist: orjson==3.11.5
43
+ Requires-Dist: pandas==2.3.3
44
+ Requires-Dist: pdf2image==1.17.0
45
+ Requires-Dist: pdfminer-six==20231228
46
+ Requires-Dist: pdfplumber==0.11.5
47
+ Requires-Dist: pi-heif==1.1.1
48
+ Requires-Dist: psutil==7.0.0
49
+ Requires-Dist: pydantic-core==2.41.5
50
+ Requires-Dist: pydantic-settings==2.12.0
51
+ Requires-Dist: pydantic==2.12.5
52
+ Requires-Dist: pyhwp==0.1b15
53
+ Requires-Dist: pymupdf==1.26.5
54
+ Requires-Dist: pytesseract==0.3.13
55
+ Requires-Dist: python-docx==1.2.0
56
+ Requires-Dist: python-dotenv==1.2.1
57
+ Requires-Dist: python-multipart==0.0.20
58
+ Requires-Dist: python-pptx==1.0.2
59
+ Requires-Dist: striprtf==0.0.29
60
+ Requires-Dist: xlrd==2.0.2
61
+ Description-Content-Type: text/markdown
62
+
63
+ # Contextify
64
+
65
+ **Contextify** is a document processing library that converts raw documents into AI-understandable context. It analyzes, restructures, and normalizes content so that language models can reason over documents with higher accuracy and consistency.
66
+
67
+ ## Features
68
+
69
+ - **Multi-format Support**: Process a wide variety of document formats including:
70
+ - PDF (with table detection, OCR fallback, and complex layout handling)
71
+ - Microsoft Office: DOCX, DOC, PPTX, PPT, XLSX, XLS
72
+ - Korean documents: HWP, HWPX (Hangul Word Processor)
73
+ - Text formats: TXT, MD, RTF, CSV, HTML
74
+ - Code files: Python, JavaScript, TypeScript, and 20+ languages
75
+
76
+ - **Intelligent Text Extraction**:
77
+ - Preserves document structure (headings, paragraphs, lists)
78
+ - Extracts tables as HTML with proper `rowspan`/`colspan` handling
79
+ - Handles merged cells and complex table layouts
80
+ - Extracts and processes inline images
81
+
82
+ - **OCR Integration**:
83
+ - Pluggable OCR engine architecture
84
+ - Supports OpenAI, Anthropic, Google Gemini, and vLLM backends
85
+ - Automatic OCR fallback for scanned documents or image-based PDFs
86
+
87
+ - **Smart Chunking**:
88
+ - Semantic text chunking with configurable size and overlap
89
+ - Table-aware chunking that preserves table integrity
90
+ - Protected regions for code blocks and special content
91
+
92
+ - **Metadata Extraction**:
93
+ - Extracts document metadata (title, author, creation date, etc.)
94
+ - Formats metadata in a structured, parseable format
95
+
96
+ ## Installation
97
+
98
+ ```bash
99
+ pip install contextify
100
+ ```
101
+
102
+ Or using uv:
103
+
104
+ ```bash
105
+ uv add contextify
106
+ ```
107
+
108
+ ## Quick Start
109
+
110
+ ### Basic Usage
111
+
112
+ ```python
113
+ from libs.core.document_processor import DocumentProcessor
114
+
115
+ # Create processor instance
116
+ processor = DocumentProcessor()
117
+
118
+ # Extract text from a document
119
+ text = processor.extract_text("document.pdf")
120
+ print(text)
121
+
122
+ # Chunk the extracted text
123
+ chunks = processor.chunk_text(text, chunk_size=1000, chunk_overlap=200)
124
+ for chunk in chunks:
125
+ print(chunk)
126
+ ```
127
+
128
+ ### With OCR Processing
129
+
130
+ ```python
131
+ from libs.core.document_processor import DocumentProcessor
132
+ from libs.ocr.ocr_engine import OpenAIOCR
133
+
134
+ # Initialize OCR engine
135
+ ocr_engine = OpenAIOCR(api_key="sk-...", model="gpt-4o")
136
+
137
+ # Create processor with OCR
138
+ processor = DocumentProcessor(ocr_engine=ocr_engine)
139
+
140
+ # Extract text with OCR processing enabled
141
+ text = processor.extract_text(
142
+ "scanned_document.pdf",
143
+ ocr_processing=True
144
+ )
145
+ ```
146
+
147
+ ## Supported Formats
148
+
149
+ | Category | Extensions |
150
+ |----------|------------|
151
+ | Documents | `.pdf`, `.docx`, `.doc`, `.pptx`, `.ppt`, `.hwp`, `.hwpx` |
152
+ | Spreadsheets | `.xlsx`, `.xls`, `.csv`, `.tsv` |
153
+ | Text | `.txt`, `.md`, `.rtf` |
154
+ | Web | `.html`, `.htm`, `.xml` |
155
+ | Code | `.py`, `.js`, `.ts`, `.java`, `.cpp`, `.c`, `.go`, `.rs`, and more |
156
+ | Config | `.json`, `.yaml`, `.yml`, `.toml`, `.ini`, `.env` |
157
+
158
+ ## Architecture
159
+
160
+ ```
161
+ libs/
162
+ ├── core/
163
+ │ ├── document_processor.py # Main entry point
164
+ │ ├── processor/ # Format-specific handlers
165
+ │ │ ├── pdf_handler.py # PDF processing with V4 engine
166
+ │ │ ├── docx_handler.py # DOCX processing
167
+ │ │ ├── ppt_handler.py # PowerPoint processing
168
+ │ │ ├── excel_handler.py # Excel processing
169
+ │ │ ├── hwp_processor.py # HWP 5.0 OLE processing
170
+ │ │ ├── hwpx_processor.py # HWPX (ZIP/XML) processing
171
+ │ │ └── ...
172
+ │ └── functions/
173
+ │ └── img_processor.py # Image handling utilities
174
+ ├── chunking/
175
+ │ ├── chunking.py # Main chunking interface
176
+ │ ├── text_chunker.py # Text-based chunking
177
+ │ ├── table_chunker.py # Table-aware chunking
178
+ │ └── page_chunker.py # Page-based chunking
179
+ └── ocr/
180
+ ├── base.py # OCR base class
181
+ ├── ocr_processor.py # OCR processing utilities
182
+ └── ocr_engine/ # OCR engine implementations
183
+ ├── openai_ocr.py
184
+ ├── anthropic_ocr.py
185
+ ├── gemini_ocr.py
186
+ └── vllm_ocr.py
187
+ ```
188
+
189
+ ## Requirements
190
+
191
+ - Python 3.14+
192
+ - Required dependencies are automatically installed (see `pyproject.toml`)
193
+
194
+ ### System Dependencies
195
+
196
+ For full functionality, you may need:
197
+
198
+ - **Tesseract OCR**: For local OCR fallback
199
+ - **LibreOffice**: For DOC/RTF conversion (optional)
200
+ - **Poppler**: For PDF image extraction
201
+
202
+ ## Configuration
203
+
204
+ ```python
205
+ # Custom configuration
206
+ config = {
207
+ "pdf": {
208
+ "extract_images": True,
209
+ "ocr_fallback": True,
210
+ },
211
+ "chunking": {
212
+ "default_size": 1000,
213
+ "default_overlap": 200,
214
+ }
215
+ }
216
+
217
+ processor = DocumentProcessor(config=config)
218
+ ```
219
+
220
+ ## License
221
+
222
+ MIT License - see [LICENSE](LICENSE) for details.
223
+
224
+ ## Contributing
225
+
226
+ Contributions are welcome! Please feel free to submit a Pull Request.
@@ -0,0 +1,122 @@
1
+ libs/__init__.py,sha256=79hV7hBCJ0XgiM9ugLuXPO8befJCN_WdSmgpUJoR6sU,929
2
+ libs/chunking/__init__.py,sha256=-LH2XjT5LqzEHtWp7OY0pjSNWDFhvtJrg7WtNvUbpGM,4568
3
+ libs/chunking/chunking.py,sha256=Li6StzMU_XE4DHthRMMKDC-BfQnqPf3y1w80TLCnfBs,11330
4
+ libs/chunking/constants.py,sha256=BVaqn58c85pM5ua2r1MfYi3dPjBm3nM2JglvQgLKdNk,3664
5
+ libs/chunking/page_chunker.py,sha256=RC_cuda2DMmgK3I7Vb60smRKO1ZFwp1l5BMopz_g7I8,6978
6
+ libs/chunking/protected_regions.py,sha256=dtUCuN-_1QgCC7Jnt5DWsbof_S63A9CWZKjrNgJAu28,18467
7
+ libs/chunking/sheet_processor.py,sha256=mT5b7i325RP4kf9yUxLLfmku-ADIrYB5IvT80uxwLS0,12272
8
+ libs/chunking/table_chunker.py,sha256=GNqSXX7kjMLm6jmbFn8WF4HFT2wKp8-MGljHy6TNClo,16061
9
+ libs/chunking/table_parser.py,sha256=HlQETTJ5HOsZtq8xWawam8XTlMvZt9O3Ra6vq4vI1mg,5031
10
+ libs/chunking/text_chunker.py,sha256=nXyHzhxCQqMyGIw-e6dgRsios_gaFMQesREIu0RM1tY,12539
11
+ libs/core/__init__.py,sha256=bcxWE6SR1zS-ZlIQLm_dHyVs2mEcFXGmesvi46AXhno,1930
12
+ libs/core/document_processor.py,sha256=6UiuLCod5DBUfjgs8CjYcIeEjUlcFY6Gl80n963axvw,32725
13
+ libs/core/functions/__init__.py,sha256=XN4expQ2QU2S37Ie_76dDw5gwqlEKyTID4qObn9mN3o,1201
14
+ libs/core/functions/img_processor.py,sha256=fTmGUiG6GUZOsLwPfPhLa5SPsWQ2BWpswaEHT0RhMN0,16766
15
+ libs/core/functions/ppt2pdf.py,sha256=qa5ZSa-Ky3qSPr8RozoShr8ykLs0vLqv0uixaaGIjHE,2128
16
+ libs/core/functions/utils.py,sha256=l7c3Ng3rHbE5xnM_NCwqvmvNKKvK2b-L5KwT7kkjpR4,5302
17
+ libs/core/processor/__init__.py,sha256=bm9rOzyMmrpgtnlu1NBN-TrL00e2hLy8wELwHigEFck,2624
18
+ libs/core/processor/base_handler.py,sha256=uU0518KHiS-RO5-uvCSaTo97XS4NokWga-EHiqv1YGE,3982
19
+ libs/core/processor/csv_handler.py,sha256=krn3VeEYz_j37ILBzmAvMci8z5fGd96b3RTXP9CHym8,5043
20
+ libs/core/processor/doc_handler.py,sha256=FkSEO3DWaydzzm21LsdKyEO7DzyXRfYAVxrDlkYAEiI,22541
21
+ libs/core/processor/docx_handler.py,sha256=xPY_UNPrG227DM4iOgsAWz9MBCJcijnpZAihlVef8Ss,10729
22
+ libs/core/processor/excel_handler.py,sha256=ODS5u4bIK_PC0GkveZMB4KhcByZkbdU0qdrDvYfe3Hs,10229
23
+ libs/core/processor/html_reprocessor.py,sha256=yrufNBPKUCHu6tcWPS9sKHMCB6Vj_t1fJ3EgPHkTaBc,5076
24
+ libs/core/processor/hwp_handler.py,sha256=Vnu8Z_Ty7HlNuk-d7VKmoG9g6XxofvXOwTJFZyMCTeg,15052
25
+ libs/core/processor/hwps_handler.py,sha256=WfLFHIlhfOgP3nMivStjxt97NVWMHu6k-zpNrSc6q_8,4072
26
+ libs/core/processor/pdf_handler.py,sha256=T7eJKlOjUHv81ycM7I9miRYklCh7yEamqX462Jy0u_M,21226
27
+ libs/core/processor/ppt_handler.py,sha256=P1TQsKBh7UYeMhf8RC1H7TlFHMjXGqoofu0F2xVB_tQ,9122
28
+ libs/core/processor/text_handler.py,sha256=L-e-5EL1WvLwLgodhdHM_MO5AdQfYGm3iGLVzJ869Is,2196
29
+ libs/core/processor/csv_helper/__init__.py,sha256=lWw1Fx7rYYfUFFpR1rAWv9jU5z9UqYOFWh1sn7lolDY,1873
30
+ libs/core/processor/csv_helper/csv_constants.py,sha256=rw9g9NKcI-gH8yRG8G4PFUElX9exO1-n6pBs_pVh5WE,1300
31
+ libs/core/processor/csv_helper/csv_encoding.py,sha256=zJTF6Hp7xTU7IRBQcTXhoN_bdgnGpk431ANo8G5eZWI,3100
32
+ libs/core/processor/csv_helper/csv_metadata.py,sha256=V1QH9lkpvyKZDqg6yrquECoLr2lem6bS0MNKFUMnxgQ,4028
33
+ libs/core/processor/csv_helper/csv_parser.py,sha256=Hr2KKtTlOaHeMMamBdK5Y5MmA9ZkkzFNLnmrSWTnN1Y,5513
34
+ libs/core/processor/csv_helper/csv_table.py,sha256=mp7dVf0MOCJvGNtNHWmXrdYYp2Tqbt66PrQnWRdLLbs,8596
35
+ libs/core/processor/doc_helpers/__init__.py,sha256=mMNeh_NFyEyZdcjPcFXw3rUA_QR7LLVjNKnmi3DvaRU,1349
36
+ libs/core/processor/doc_helpers/rtf_bin_processor.py,sha256=FXiu_qnZSpxbhFmTJqvhttGWsmY-m3JRc0rhcFIWdq8,20228
37
+ libs/core/processor/doc_helpers/rtf_constants.py,sha256=tohf4LEzoChx9G34CXNwWvO6Z70LBsbwDaYelJaQQPU,2465
38
+ libs/core/processor/doc_helpers/rtf_content_extractor.py,sha256=KV9eHkW2n1KHiVocmGsPd1RDj7WnMM3X8Fo0lPzAxVY,7321
39
+ libs/core/processor/doc_helpers/rtf_decoder.py,sha256=9ArayG_dMQz8aKwWUKSJLjUTFfZ5v9OezpgsIpaamtg,3640
40
+ libs/core/processor/doc_helpers/rtf_metadata_extractor.py,sha256=g8IXNmAy5tAs8SCuCQ0I_CzTmQ8hWTkPlnFSXvthb1I,2618
41
+ libs/core/processor/doc_helpers/rtf_models.py,sha256=qvywqQmOvWUA8JCtXGCngNSjAov7A4aQGzp_P3pQ_wE,13656
42
+ libs/core/processor/doc_helpers/rtf_parser.py,sha256=D4IetSeh7x77Kpx1i7KJcYBXGkRO-4G1AJBM0tcvjQ0,6020
43
+ libs/core/processor/doc_helpers/rtf_region_finder.py,sha256=Ye6VYvUufF4tUVrrM0dBCN7zqr-z7kNyNFCyVtVetJE,4118
44
+ libs/core/processor/doc_helpers/rtf_table_extractor.py,sha256=V65iG-ldTWXTRoxW703orDTSJxL85PhgcQ08ckOUIms,9299
45
+ libs/core/processor/doc_helpers/rtf_text_cleaner.py,sha256=OVUI6pNjpY4Zy-tFxHYaral06esocp0Fkhy1rFJett0,14026
46
+ libs/core/processor/docx_helper/__init__.py,sha256=CJniFUMofHDv70eG2lbfzluA2JX-J4UVye5if65uXfM,2514
47
+ libs/core/processor/docx_helper/docx_chart.py,sha256=WukejnJJCGKtcXQNeW8jHY8nJ0SEr8tYnxVmFU8Xc2Q,13327
48
+ libs/core/processor/docx_helper/docx_constants.py,sha256=2aERy2K0EpHEbrTWz1pzcBrdk2vJcCyBDXamyhHVlo8,2330
49
+ libs/core/processor/docx_helper/docx_drawing.py,sha256=4gq8DbxNalQ_gIQKwbNYIIy4Kftk6UJACTN-K5v5a54,6693
50
+ libs/core/processor/docx_helper/docx_image.py,sha256=sd8JJdefMa-6BoH_Mr9bIak86vjZEdA2malX19N55nc,3894
51
+ libs/core/processor/docx_helper/docx_metadata.py,sha256=H0E6BFZ8a9TKX9qLb_Mo1pTjre-MWuH3jKNh7IUmsf0,3058
52
+ libs/core/processor/docx_helper/docx_paragraph.py,sha256=XUjgtpBGz-Mw2krGED6Prfsj5fAiDjpYStLOroWre40,3883
53
+ libs/core/processor/docx_helper/docx_table.py,sha256=hZgV5KrTQJV6tR1q2tajwnieCtHEGxidwlfXoYLawRk,15828
54
+ libs/core/processor/excel_helper/__init__.py,sha256=arWJGHWvSKwwi3CdqyDQAtENjVGvVjUz62hPIEz8bQc,3665
55
+ libs/core/processor/excel_helper/excel_chart_constants.py,sha256=m88lMIMLaolNeEqRP80eYtt6OpbVKpUkAfIbsvfDdsQ,922
56
+ libs/core/processor/excel_helper/excel_chart_formatter.py,sha256=bgr8KXE-AyTYqQQoSfCTbgECb8kHgHgCbl1sHi6bh5M,3145
57
+ libs/core/processor/excel_helper/excel_chart_parser.py,sha256=tZQ9SNIoLP5e7d5jy2hkhy9W_6bxe_4X7iuH2JauuU8,12793
58
+ libs/core/processor/excel_helper/excel_chart_processor.py,sha256=E45b1LcME8p6VO9d54cMuLXR4hegLUM5ZMiMIWzw1Y0,1589
59
+ libs/core/processor/excel_helper/excel_chart_renderer.py,sha256=aTCsaV-KvlgMVJ7jDs3iDlECJj04PyIsUMcbcUBh41E,4993
60
+ libs/core/processor/excel_helper/excel_image.py,sha256=jsYMHRHiroaH5Dk_25Y5wHGg8Tc643mEBmmbY96ui7Q,2810
61
+ libs/core/processor/excel_helper/excel_layout_detector.py,sha256=WfArTRizXTOGBMkwu9ivWDI7bYO443mAJeyG8q9Ds7s,26206
62
+ libs/core/processor/excel_helper/excel_metadata.py,sha256=whTa-YuMAQHIkcmg_akJpsAo1MIEOACjMpRfdF8u09Y,3420
63
+ libs/core/processor/excel_helper/excel_table_xls.py,sha256=YUFdKx3NX1fKtaqOkgoRuamZjZjSMs_vVkYOInLUH4c,12310
64
+ libs/core/processor/excel_helper/excel_table_xlsx.py,sha256=uoFwABBwpvuGSF83wGKkwFQTJ4xQhykNyzTnUKww38Q,14434
65
+ libs/core/processor/excel_helper/excel_textbox.py,sha256=fh21emzbdJTuCIZ2TQNNzXOouZ-c_mtm-OnwcQkq8_I,9703
66
+ libs/core/processor/hwp_helper/__init__.py,sha256=IZbID6Vzcs8dwtTJip4KadPtiULsgLHGC2nG73OEAlk,3238
67
+ libs/core/processor/hwp_helper/hwp_chart.py,sha256=OZXXFMiY98YVn_bhPMeMc25B_Q6GVLDA5tr1mHmgYBU,31212
68
+ libs/core/processor/hwp_helper/hwp_constants.py,sha256=tqxYKzBjX0ZFTeyTTh0fheIrtNh9g1dExptfQ_R2IxE,2909
69
+ libs/core/processor/hwp_helper/hwp_decoder.py,sha256=GM6PxtdSbvBQV1JFmkuGlNd3Yn0cQg-YU5h9KQaAOK0,2795
70
+ libs/core/processor/hwp_helper/hwp_docinfo.py,sha256=CsO7EuN-4P-VfsloQ4It7Q0ZpPXqYrGarv9wZHv6VV8,6928
71
+ libs/core/processor/hwp_helper/hwp_image.py,sha256=-B4kjyIBhHPVaJu-AzETec0XEd_H4c3de_agdmaEm_c,9121
72
+ libs/core/processor/hwp_helper/hwp_metadata.py,sha256=x3WrpTLINgTJV4rRUGE4AHc-tU7qm_sO-7DZwAWX8ZM,8928
73
+ libs/core/processor/hwp_helper/hwp_record.py,sha256=1Iq1EEwEjcBjNMH5ECVvOrXLIH8J7Kr4KvKGsshebRM,4848
74
+ libs/core/processor/hwp_helper/hwp_recovery.py,sha256=wdmvwlOet3gbnyeIM12qOYhYBsTol5LjR3RnHADkNm4,5964
75
+ libs/core/processor/hwp_helper/hwp_table.py,sha256=bill4HesgkMPkYrdumkk6O_FTF3gM7czcRWlrjaUMB0,6494
76
+ libs/core/processor/hwpx_helper/__init__.py,sha256=hzQuYv6qWirjt1tyz_uxr6oDa9c_mJId4de6Yr3NuZk,1669
77
+ libs/core/processor/hwpx_helper/hwpx_chart.py,sha256=Klr68tdD3ue2nnVwcCFt8Mn0X8gQgQr7CsYxzm2zy3I,5357
78
+ libs/core/processor/hwpx_helper/hwpx_constants.py,sha256=ZAnufh21HQDj6q9O-ts5uvOzYOtCBpbAtcNgMThBYrA,955
79
+ libs/core/processor/hwpx_helper/hwpx_image.py,sha256=9TxLLR0woMEaaHlN6aJ8GBcbujQPEaSqyh6jIhYtPQM,2069
80
+ libs/core/processor/hwpx_helper/hwpx_metadata.py,sha256=SPKiMrUriGa4p24zLnR3iW3QMxnugL_HblqAdDFWKOc,4398
81
+ libs/core/processor/hwpx_helper/hwpx_section.py,sha256=IR2vsUEAWVdJcu54enlB2GnQx-wVqw-yv1KMrXXJ0Io,4681
82
+ libs/core/processor/hwpx_helper/hwpx_table.py,sha256=2-Z25-9wVtqTMkdZKVD-_oiE7AeYnzYzXgOhQmwZ9Xk,6851
83
+ libs/core/processor/pdf_helpers/__init__.py,sha256=c9Y_-ywm95MMAjrqokqedit7V4mOxvS5SuHWdYz8nCE,5381
84
+ libs/core/processor/pdf_helpers/pdf_block_image_engine.py,sha256=LZUUIXoMG1DR2G3WHvGLT6LCLohEgYsw3Xuzz0XKKQY,22430
85
+ libs/core/processor/pdf_helpers/pdf_cell_analysis.py,sha256=42WSUYlz5fkkaxnD2G7cLdC-aPxqo6eWts_TTSeMz_w,17232
86
+ libs/core/processor/pdf_helpers/pdf_complexity_analyzer.py,sha256=JGmdpyRX_UMaRC6v46_wGLfa5-jFPSOpbIpt32vXYRU,21303
87
+ libs/core/processor/pdf_helpers/pdf_element_merger.py,sha256=su3Gqk8zoU05H1PusTjRdkIBeCyGei9oMVrXC50F0kc,993
88
+ libs/core/processor/pdf_helpers/pdf_graphic_detector.py,sha256=p-NUyns9W98NEtWbzmLn60sgaByEwhV1iGsYckKMhnE,12319
89
+ libs/core/processor/pdf_helpers/pdf_image.py,sha256=ygbvLP3Rh2FZ14etCcS6q55SBoPa6TbGVcY2jbQfikU,2922
90
+ libs/core/processor/pdf_helpers/pdf_layout_block_detector.py,sha256=ZJWvrCgmXDQFJwr7p15m7reaGOFdd3htakE4rhjD-4k,47636
91
+ libs/core/processor/pdf_helpers/pdf_line_analysis.py,sha256=SOu0kdV9yz7cmkKsUdzy8hKZ1QQ-mi2rZX8CDGz2ulU,14795
92
+ libs/core/processor/pdf_helpers/pdf_metadata.py,sha256=I_2DtGQBawCVmUPfqIGvLBOa2-e8wKovSgEYv7oAWFk,2964
93
+ libs/core/processor/pdf_helpers/pdf_page_analyzer.py,sha256=YgOXDVyE-MBajwvscINlGmsz6AFf92XnT-O0vH4hvLc,2988
94
+ libs/core/processor/pdf_helpers/pdf_table_detection.py,sha256=BjyuKlTNoA41zCOLlqOQnMzQrPuxxnVf-ehA2pvY3nk,47002
95
+ libs/core/processor/pdf_helpers/pdf_table_processor.py,sha256=8LbG4wfuBGva0sgXi-y_5cWm5fl1dHZM7may3TezYpE,28119
96
+ libs/core/processor/pdf_helpers/pdf_table_quality_analyzer.py,sha256=v6VH-E6clI71-G2zJcT5754VFcPYqb1Qz4l3UcPeDeM,27863
97
+ libs/core/processor/pdf_helpers/pdf_table_validator.py,sha256=D6YaLtf3E4Gy9sKzagu484A7-bF3tyWrZR2sgvl96NM,16049
98
+ libs/core/processor/pdf_helpers/pdf_text_extractor.py,sha256=Dr9iD1HF5iMl05jnOSzqSMYZ3Zg1WWt_n1mTrdf1KoE,4713
99
+ libs/core/processor/pdf_helpers/pdf_text_quality_analyzer.py,sha256=8rCAnLvNRSVvIAbEiggXawrMOo-zWpMxwDc5Rrk19Co,22520
100
+ libs/core/processor/pdf_helpers/pdf_utils.py,sha256=AxQNDSucmTs2XLrJ_2YKTc-1rtdT7Kq8i06MlKRmcC4,4713
101
+ libs/core/processor/pdf_helpers/pdf_vector_text_ocr.py,sha256=5Kvt2tyyw3abDRHrWL60zdCgyCS4I1UbcmvFX2-ykMU,11726
102
+ libs/core/processor/pdf_helpers/types.py,sha256=IXV493hkpPa67DPZfH319m2rh6sIgL0R4nOd6pcd-to,9030
103
+ libs/core/processor/ppt_helper/__init__.py,sha256=Unj-RQki0ReG1SgTAeOQ1jRpVk7KXyqSsLaDWXzHl30,2240
104
+ libs/core/processor/ppt_helper/ppt_bullet.py,sha256=dN4_BRSLdvS2DfaHFMrDRgzsrzC2flfzUPzOXY1Jv6A,10240
105
+ libs/core/processor/ppt_helper/ppt_chart.py,sha256=VpkzBH0OHprbyFtXZK_gQiIvRov1NoAnFilhmfoq4bg,4148
106
+ libs/core/processor/ppt_helper/ppt_constants.py,sha256=uOqYdYBRHjgW4qj7mLPEttLxINkE67c4tU85q31f_A0,3539
107
+ libs/core/processor/ppt_helper/ppt_metadata.py,sha256=mnjHhoex1Wz0bRF0qz3Jb12ZbKuFrgL1hPfct1MLMis,2790
108
+ libs/core/processor/ppt_helper/ppt_shape.py,sha256=QKmuoky41Nh3ao6pW8esQqdNUJppNRsxvT8IweV2Be4,5960
109
+ libs/core/processor/ppt_helper/ppt_slide.py,sha256=GYbVsrIA6WVAVdjSN9gnNMWXp3Oi8vs2F7t823Fp-mw,2061
110
+ libs/core/processor/ppt_helper/ppt_table.py,sha256=OrK-rH1CPW8h_r8JYwkB6LSba3vPBgbD0fO9M0yKoOA,12188
111
+ libs/ocr/__init__.py,sha256=lBqZSZCcP8mp49wYVcx2YbsTFI5h9bvJZ48MLmTvjzE,2090
112
+ libs/ocr/base.py,sha256=QQQsEI-MB2Jrv0HiVoHKCimnHSeCV_NX_WDKXpSgx14,5788
113
+ libs/ocr/ocr_processor.py,sha256=nGSlhG0b0g-HMCFjjYpueIrUwV_LcnHcPvN_kJ-eClg,12404
114
+ libs/ocr/ocr_engine/__init__.py,sha256=gW2Q3eqzuQB5AEKiBfmtpYAHOIDbxmt8e2tTT8iElfM,446
115
+ libs/ocr/ocr_engine/anthropic_ocr.py,sha256=BGZ6rPsdwfVX0chcy0Xb58ePIiRVPidAzDf9Oe9b0zE,2944
116
+ libs/ocr/ocr_engine/gemini_ocr.py,sha256=ElTbYlaMAOVOBGuwVYp4-yha4r0cjnxL9KznkPEwOBI,2941
117
+ libs/ocr/ocr_engine/openai_ocr.py,sha256=Ag4Ok90eeTaAx8Xo3lQ62InGgIr8Wei4nKVJIhp_5Y0,3163
118
+ libs/ocr/ocr_engine/vllm_ocr.py,sha256=hI5vHy8r52aNYZF4JCnnXT4CIfCx27Sk6uPxTDgTAsk,3641
119
+ contextifier-0.1.0.dist-info/METADATA,sha256=AzO7tPs50gPK_ZTx9WRA2bdsoFmTflrUDnm_k4-BmCE,7412
120
+ contextifier-0.1.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
121
+ contextifier-0.1.0.dist-info/licenses/LICENSE,sha256=pokMTCMoEcrcnjBAJ8cb7UVADBMGce6GLFbbRfqJVJc,11346
122
+ contextifier-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [2026] [Haryeom Jang]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
libs/__init__.py ADDED
@@ -0,0 +1,39 @@
1
+ # libs/__init__.py
2
+ """
3
+ Contextify Library
4
+
5
+ 문서 처리 및 청킹을 위한 라이브러리입니다.
6
+
7
+ 패키지 구조:
8
+ - core: 문서 처리 핵심 모듈
9
+ - DocumentProcessor: 메인 문서 처리 클래스
10
+ - processor: 개별 문서 타입별 핸들러 (PDF, DOCX, PPT, Excel, HWP 등)
11
+ - functions: 유틸리티 함수
12
+
13
+ - chunking: 텍스트 청킹 모듈
14
+ - 텍스트 분할 및 청킹 로직
15
+ - 테이블 보호 청킹
16
+ - 페이지 기반 청킹
17
+
18
+ 사용 예시:
19
+ from libs.core import DocumentProcessor
20
+ from libs.chunking import chunk_plain_text, split_text_preserving_html_blocks
21
+ """
22
+
23
+ __version__ = "1.0.0"
24
+
25
+ # 핵심 클래스 최상위 노출
26
+ from libs.core import DocumentProcessor
27
+
28
+ # 명시적 서브패키지
29
+ from libs import core
30
+ from libs import chunking
31
+
32
+ __all__ = [
33
+ "__version__",
34
+ # 핵심 클래스
35
+ "DocumentProcessor",
36
+ # 서브패키지
37
+ "core",
38
+ "chunking",
39
+ ]