├── .env_example ├── .github └── workflows │ └── deploy_docs.yml ├── .gitignore ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── LICENSE ├── Makefile ├── README.md ├── docs ├── .nojekyll ├── Makefile ├── api.rst ├── benchmark.csv ├── benchmark.rst ├── conf.py ├── contributing.rst ├── index.rst ├── installation.rst ├── make.bat ├── requirements.txt └── update_benchmarks.py ├── examples ├── example_notebook.ipynb ├── example_notebook_colab.ipynb ├── inputs │ ├── bench_md.pdf │ ├── benchmark.pdf │ ├── costco_bill.jpg │ ├── cvs_coupon.jpg │ ├── grocery_bill.jpg │ ├── medical_invoice_sample1.png │ ├── medical_travel_request_OWCP_957.png │ ├── sample.docx │ ├── sample.pptx │ ├── sample.xlsx │ ├── sample_test.txt │ ├── sample_test_doc.pdf │ ├── screenshot-1.png │ ├── stress_test │ │ ├── large_doc_1.pdf │ │ └── large_doc_2.pdf │ ├── test_1.pdf │ ├── test_2.pdf │ ├── test_3.pdf │ ├── test_4.jpg │ ├── test_5.jpg │ ├── test_explicit_hyperlink_n_img.pdf │ ├── test_hidden_link_with_image.pdf │ └── test_with_hidden_links_no_img.pdf └── outputs │ ├── benchmark.md │ ├── costco_bill.md │ ├── cvs_coupon.md │ ├── grocery_bill.md │ ├── medical_invoice_sample1.md │ ├── medical_travel_request_OWCP_957.md │ ├── test_1.md │ ├── test_2.md │ ├── test_3.md │ ├── test_4.md │ └── test_5.md ├── lexoid ├── api.py └── core │ ├── parse_type │ ├── llm_parser.py │ └── static_parser.py │ ├── prompt_templates.py │ └── utils.py ├── poetry.lock ├── pyproject.toml └── tests ├── api_cost_mapping.json ├── benchmark.py ├── env_template └── test_parser.py /.env_example: -------------------------------------------------------------------------------- 1 | GOOGLE_API_KEY="" 2 | OPENAI_API_KEY="" 3 | HUGGINGFACEHUB_API_TOKEN="" 4 | TOGETHER_API_KEY="" -------------------------------------------------------------------------------- /.github/workflows/deploy_docs.yml: -------------------------------------------------------------------------------- 1 | name: Docs 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | - '**docs**' 8 | paths: 9 | - 'docs/**' 10 | - '.github/workflows/deploy_docs.yml' 11 | 12 | jobs: 13 | build-docs: 14 | runs-on: ubuntu-latest 15 | steps: 16 | - name: Checkout repository 17 | uses: actions/checkout@v4 18 | 19 | - name: Set up Python 20 | uses: actions/setup-python@v5 21 | with: 22 | python-version: "3.11" 23 | 24 | - name: Install dependencies 25 | run: | 26 | python -m pip install --upgrade pip 27 | pip install sphinx docutils 28 | pip install -r docs/requirements.txt || true 29 | 30 | - name: Build Sphinx documentation 31 | run: | 32 | sphinx-build -b html docs/ docs/_build/html 33 | 34 | - name: Upload documentation artifact 35 | uses: actions/upload-pages-artifact@v3 36 | with: 37 | path: docs/_build/html 38 | 39 | deploy: 40 | needs: build-docs 41 | runs-on: ubuntu-latest 42 | permissions: 43 | pages: write 44 | id-token: write 45 | environment: 46 | name: github-pages 47 | url: ${{ steps.deployment.outputs.page_url }} 48 | steps: 49 | - name: Deploy to GitHub Pages 50 | id: deployment 51 | uses: actions/deploy-pages@v4 52 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | share/python-wheels/ 24 | *.egg-info/ 25 | .installed.cfg 26 | *.egg 27 | MANIFEST 28 | 29 | # PyInstaller 30 | # Usually these files are written by a python script from a template 31 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 32 | *.manifest 33 | *.spec 34 | 35 | # Installer logs 36 | pip-log.txt 37 | pip-delete-this-directory.txt 38 | 39 | # Unit test / coverage reports 40 | htmlcov/ 41 | .tox/ 42 | .nox/ 43 | .coverage 44 | .coverage.* 45 | .cache 46 | nosetests.xml 47 | coverage.xml 48 | *.cover 49 | *.py,cover 50 | .hypothesis/ 51 | .pytest_cache/ 52 | cover/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | .pybuilder/ 76 | target/ 77 | 78 | # Jupyter Notebook 79 | .ipynb_checkpoints 80 | 81 | # IPython 82 | profile_default/ 83 | ipython_config.py 84 | 85 | # pyenv 86 | # For a library or package, you might want to ignore these files since the code is 87 | # intended to run in multiple environments; otherwise, check them in: 88 | # .python-version 89 | 90 | # pipenv 91 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 92 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 93 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 94 | # install all needed dependencies. 95 | #Pipfile.lock 96 | 97 | # poetry 98 | # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. 99 | # This is especially recommended for binary packages to ensure reproducibility, and is more 100 | # commonly ignored for libraries. 101 | # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control 102 | #poetry.lock 103 | 104 | # pdm 105 | # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. 106 | #pdm.lock 107 | # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it 108 | # in version control. 109 | # https://pdm.fming.dev/latest/usage/project/#working-with-version-control 110 | .pdm.toml 111 | .pdm-python 112 | .pdm-build/ 113 | 114 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm 115 | __pypackages__/ 116 | 117 | # Celery stuff 118 | celerybeat-schedule 119 | celerybeat.pid 120 | 121 | # SageMath parsed files 122 | *.sage.py 123 | 124 | # Environments 125 | .env 126 | .venv 127 | env/ 128 | venv/ 129 | ENV/ 130 | env.bak/ 131 | venv.bak/ 132 | 133 | # Spyder project settings 134 | .spyderproject 135 | .spyproject 136 | 137 | # Rope project settings 138 | .ropeproject 139 | 140 | # mkdocs documentation 141 | /site 142 | 143 | # mypy 144 | .mypy_cache/ 145 | .dmypy.json 146 | dmypy.json 147 | 148 | # Pyre type checker 149 | .pyre/ 150 | 151 | # pytype static type analyzer 152 | .pytype/ 153 | 154 | # Cython debug symbols 155 | cython_debug/ 156 | 157 | # PyCharm 158 | # JetBrains specific template is maintained in a separate JetBrains.gitignore that can 159 | # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore 160 | # and can be added to the global gitignore or merged into this file. For a more nuclear 161 | # option (not recommended) you can uncomment the following to ignore the entire idea folder. 162 | #.idea/ 163 | 164 | # Custom 165 | tests/outputs/ 166 | outputs/ 167 | inputs/ 168 | 169 | # Others 170 | .DS_Store -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | ## [0.1.1] - 2024-10-28 4 | 5 | ### Added 6 | - Support for URL parsing 7 | 8 | ### Changed 9 | 10 | ### Fixed 11 | 12 | ## [0.1.2] - 2024-11-04 13 | 14 | ### Added 15 | - Initial testing code 16 | - Benchmarking code 17 | 18 | ### Changed 19 | - Improvements in OpenAI prompt 20 | - Conversion of PDFs to images before parsing with OpenAI models 21 | 22 | ### Fixed 23 | 24 | 25 | ## [0.1.3] - 2024-11-12 26 | 27 | ### Added 28 | - `AUTO` parse mode 29 | 30 | ### Changed 31 | - Switch from multithreading to multiprocessing 32 | 33 | ### Fixed 34 | 35 | ## [0.1.4] - 2024-11-22 36 | 37 | ### Added 38 | - Support for structured parsing of HTML pages 39 | - Support for recursive URL parsing in websites and PDFs 40 | 41 | ### Changed 42 | - URL extraction regex 43 | 44 | ### Fixed 45 | - Bug in document appending logic 46 | - Bug caused by split pdfs being in same dir as source pdf 47 | 48 | ## [0.1.5] - 2024-12-06 49 | 50 | ### Added 51 | 52 | ### Changed 53 | - Improved pdfplumber parsing to format markdown and detect hyperlinks 54 | 55 | ### Fixed 56 | 57 | ## [0.1.6] - 2024-12-10 58 | 59 | ### Added 60 | * Support for parsing .csv, .txt, and .html, and .docx files 61 | * Support for parsing links to documents when recursive HTML parsing 62 | 63 | ### Changed 64 | 65 | ### Fixed 66 | 67 | ## [0.1.7] - 2025-01-08 68 | 69 | ### Added 70 | * Colab example notebook 71 | * Support for bold and italic formatting in PDFPlumber 72 | * Support for Llama 3.2 models through HuggingFace and Together AI 73 | 74 | ### Changed 75 | * Improved PDFPlumber table parsing 76 | 77 | ### Fixed 78 | * PDFPlumber text detection bug 79 | 80 | ## [0.1.8] - 2025-01-23 81 | 82 | ### Added 83 | * Retry and error handling for LLM_PARSE 84 | 85 | ### Changed 86 | * Remove together Python client dependency and use REST API calls instead 87 | 88 | ## [0.1.8.post1] - 2025-01-28 89 | 90 | ### Added 91 | * Documentation 92 | 93 | ### Changed 94 | * Specify headers for Playwright web page retrieval 95 | 96 | ## [0.1.9] - 2025-02-17 97 | 98 | ### Added 99 | - Parameters to specify intermediate PDF save path when `as_pdf=True`. 100 | - Return `token_uage` and `pdf_path` with `parse()` output where applicable 101 | 102 | ### Changed 103 | - Switched back to together Python client 104 | - Improved `parse()` function return format to be a dictionary. 105 | 106 | 107 | ## [0.1.10] - 2025-02-23 108 | 109 | ### Added 110 | - Parameter to specify page numbers for parsing 111 | 112 | ### Fixed 113 | - Errors caused by empty token_usage 114 | 115 | ## [0.1.11] - 2025-02-27 116 | 117 | ### Added 118 | - Priority setting to AUTO routing 119 | - More models to benchmark 120 | 121 | ### Changed 122 | - Set default parse_type to AUTO 123 | - Set default LLM to Gemini 2.0 Flash 124 | - Updated benchmark script to aggregate over multiple runs 125 | 126 | ### Fixed 127 | - Incorrect title when `as_pdf=True` 128 | 129 | 130 | ## [0.1.11.post1] - 2025-03-05 131 | 132 | ### Added 133 | - Code of Conduct 134 | 135 | ### Fixed 136 | - Segmentation fault when PyQT app is reinitialized 137 | 138 | ## [0.1.12] - 2025-04-11 139 | 140 | ### Added 141 | * Support for OpenRouter models 142 | * Return token cost when cost mapping is provided 143 | * Support for custom prompts 144 | * Support for parsing Excel and PowerPoint files 145 | 146 | ### Changed 147 | * Set default `router_priority` to `speed` 148 | 149 | ## [0.1.13] - 2025-04-20 150 | 151 | ### Added 152 | * `STATIC_PARSE` improvements 153 | * Horizontal line detection 154 | * Strikethrough text detection 155 | * Email address formatting 156 | * Improved heading level detection 157 | * Monospace font detection 158 | * Indentation detection 159 | 160 | ## [0.1.14] - 2025-06-05 161 | 162 | ### Added 163 | * Add support for Fireworks API 164 | * Add support for matching data in document to pre-defined schema or template 165 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | At Oid Labs we are committed to enabling a safe, welcoming and collaborative environment for everyone. 2 | 3 | # Contributor Covenant Code of Conduct 4 | 5 | ## Our Pledge 6 | 7 | We as members, contributors, and leaders pledge to make participation in our 8 | community a harassment-free experience for everyone, regardless of age, body 9 | size, visible or invisible disability, ethnicity, sex characteristics, gender 10 | identity and expression, level of experience, education, socio-economic status, 11 | nationality, personal appearance, race, caste, color, religion, or sexual 12 | identity and orientation. 13 | 14 | We pledge to act and interact in ways that contribute to an open, welcoming, 15 | diverse, inclusive, and healthy community. 16 | 17 | ## Our Standards 18 | 19 | Examples of behavior that contributes to a positive environment for our 20 | community include: 21 | 22 | - Demonstrating empathy and kindness toward other people 23 | - Being respectful of differing opinions, viewpoints, and experiences 24 | - Giving and gracefully accepting constructive feedback 25 | - Accepting responsibility and apologizing to those affected by our mistakes, 26 | and learning from the experience 27 | - Focusing on what is best not just for us as individuals, but for the overall 28 | community 29 | 30 | Examples of unacceptable behavior include: 31 | 32 | - The use of sexualized language or imagery, and sexual attention or advances of 33 | any kind 34 | - Trolling, insulting or derogatory comments, and personal or political attacks 35 | - Public or private harassment 36 | - Publishing others' private information, such as a physical or email address, 37 | without their explicit permission 38 | - Other conduct which could reasonably be considered inappropriate in a 39 | professional setting 40 | 41 | ## Enforcement Responsibilities 42 | 43 | Community leaders are responsible for clarifying and enforcing our standards of 44 | acceptable behavior and will take appropriate and fair corrective action in 45 | response to any behavior that they deem inappropriate, threatening, offensive, 46 | or harmful. 47 | 48 | Community leaders have the right and responsibility to remove, edit, or reject 49 | comments, commits, code, wiki edits, issues, and other contributions that are 50 | not aligned to this Code of Conduct, and will communicate reasons for moderation 51 | decisions when appropriate. 52 | 53 | ## Scope 54 | 55 | This Code of Conduct applies within all community spaces, and also applies when 56 | an individual is officially representing the community in public spaces. 57 | Examples of representing our community include using an official email address, 58 | posting via an official social media account, or acting as an appointed 59 | representative at an online or offline event. 60 | 61 | ## Enforcement 62 | 63 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 64 | reported to the community leaders responsible for enforcement at 65 | [INSERT CONTACT METHOD]. 66 | All complaints will be reviewed and investigated promptly and fairly. 67 | 68 | All community leaders are obligated to respect the privacy and security of the 69 | reporter of any incident. 70 | 71 | ## Enforcement Guidelines 72 | 73 | Community leaders will follow these Community Impact Guidelines in determining 74 | the consequences for any action they deem in violation of this Code of Conduct: 75 | 76 | ### 1. Correction 77 | 78 | **Community Impact**: Use of inappropriate language or other behavior deemed 79 | unprofessional or unwelcome in the community. 80 | 81 | **Consequence**: A private, written warning from community leaders, providing 82 | clarity around the nature of the violation and an explanation of why the 83 | behavior was inappropriate. A public apology may be requested. 84 | 85 | ### 2. Warning 86 | 87 | **Community Impact**: A violation through a single incident or series of 88 | actions. 89 | 90 | **Consequence**: A warning with consequences for continued behavior. No 91 | interaction with the people involved, including unsolicited interaction with 92 | those enforcing the Code of Conduct, for a specified period of time. This 93 | includes avoiding interactions in community spaces as well as external channels 94 | like social media. Violating these terms may lead to a temporary or permanent 95 | ban. 96 | 97 | ### 3. Temporary Ban 98 | 99 | **Community Impact**: A serious violation of community standards, including 100 | sustained inappropriate behavior. 101 | 102 | **Consequence**: A temporary ban from any sort of interaction or public 103 | communication with the community for a specified period of time. No public or 104 | private interaction with the people involved, including unsolicited interaction 105 | with those enforcing the Code of Conduct, is allowed during this period. 106 | Violating these terms may lead to a permanent ban. 107 | 108 | ### 4. Permanent Ban 109 | 110 | **Community Impact**: Demonstrating a pattern of violation of community 111 | standards, including sustained inappropriate behavior, harassment of an 112 | individual, or aggression toward or disparagement of classes of individuals. 113 | 114 | **Consequence**: A permanent ban from any sort of public interaction within the 115 | community. 116 | 117 | ## Attribution 118 | 119 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 120 | version 2.1, available at 121 | [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. 122 | 123 | Community Impact Guidelines were inspired by 124 | [Mozilla's code of conduct enforcement ladder][Mozilla CoC]. 125 | 126 | For answers to common questions about this code of conduct, see the FAQ at 127 | [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at 128 | [https://www.contributor-covenant.org/translations][translations]. 129 | 130 | [homepage]: https://www.contributor-covenant.org 131 | [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html 132 | [Mozilla CoC]: https://github.com/mozilla/diversity 133 | [FAQ]: https://www.contributor-covenant.org/faq 134 | [translations]: https://www.contributor-covenant.org/translations 135 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 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 [yyyy] [name of copyright owner] 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. 202 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: dev help 2 | 3 | help: 4 | @echo "make dev - Install development dependencies" 5 | @echo "make setup - Dev setup" 6 | 7 | setup: 8 | python3 -m venv .venv 9 | .venv/bin/python3 -m pip install --upgrade pip 10 | .venv/bin/python3 -m pip install poetry 11 | .venv/bin/poetry update 12 | 13 | install: setup 14 | .venv/bin/poetry install --without dev 15 | .venv/bin/playwright install --with-deps --only-shell chromium 16 | 17 | dev: setup 18 | .venv/bin/poetry install --with dev 19 | .venv/bin/playwright install --with-deps --only-shell chromium 20 | 21 | clean: 22 | rm -rf .venv 23 | rm -rf lexoid.egg-info 24 | rm -rf dist 25 | 26 | build: 27 | .venv/bin/poetry update && .venv/bin/poetry build 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
~85% Source Code | 119 |] | 120 |Deepseek Coder |
121 |
~10% CodeText | ||
~ 5% Webtext |
~ 85% The-stack-v2 | 129 |] | 130 |Starcoder 2 |
131 |
~ 15% CodeText | ||
~ 0% webtext |
~100% Source Code | 139 |] | 140 |Arctic | 141 |
Summary of Care | 157 |
158 | Patient Adam Everyman 159 | D.O.B October 22, 1962 160 | Sex ♂Male 161 | Patient Detail 162 | |
163 |
Medication | 179 |Instructions | 180 |Dosage | 181 |Effective Dates (start - stop) | 182 |Status | 183 |
Albuterol 0.09 MG/ACTUAT | 188 |2 puffs every 6 hours PRN wheezing | 189 |190 | | Aug 10, 2012 - | 191 |Active | 192 |
Vaccine | 203 |Lot Number | 204 |Date | 205 |Status | 206 |
Influenza Virus Vaccine | 211 |1 | 212 |8/15/2010 | 213 |Completed | 214 |
Date | 225 |Test | 226 |Result | 227 |Details | 228 |
15-Aug-2012 | 233 |Height | 234 |70 in | 235 |236 | |
Weight | 239 |195 lb | 240 |241 | | |
Body Mass Index Calculated | 244 |28 | 245 |246 | | |
BP Systolic | 249 |155 mm[Hg] | 250 |251 | | |
BP Diastolic | 254 |92 mm[Hg] | 255 |256 | |
WHOLESALE
4 |
5 | Irvine #454
6 | 115 Technology Drive W
7 | Irvine, CA 92618
8 | (949) 453-0435
9 |
MT Member 1234
11 |****Bottom of Basket**** | ||||
1714849 | SCOOP AWAY | 16.49 | A | |
****BOB Count 1 **** | ||||
E | 5536 | YNG COCO 3CT | 9.99 | |
E | 57554 | BLUEBERRIES | 6.99 | |
E | 370586 | ORG. DATES | 11.99 | |
E | 1280655 | ORG CSR KIT | 8.99 | |
E | 1280655 | ORG CSR KIT | 8.99 | |
E | 161750 | KS UNS CASHE | 13.99 | |
E | 1308623 | SUJA WELLNES | 15.39 | |
E | 1900000000 | CA REDEMP VA | 0.50 | |
E | 1308623 | SUJA WELLNES | 15.39 | |
E | 1900000000 | CA REDEMP VA | 0.50 | |
F | 504882 | TYL RR 290CT | 21.49 | A |
F | 652782 | ALEVE GEL160 | 19.99 | A |
F | 1830585 | ABGMYS90CT | 19.99 | A |
F | 1566153 | MUCINEX 56CT | 31.99 | A |
0000345923 | /1566153 | 6.50 | -A | |
E | 1801060 | LIVSFVARIETY | 28.99 | |
SUBTOTAL | 225.16 | |||
TAX | 8.02 | |||
**** TOTAL | 233.18 |
2 | CVSpharmacy 3 |
4 |
5 | $2.00 off
6 | $2 off CVS HEALTH Topical
7 | Pain products
8 |
10 | Expires 11/02/2024 (Up to $2.00 value) 11 |
12 |
13 |
14 |
15 |
17 | ExtraCare card required. See
18 | www.cvs.com/COUPONpolicy or policy at register for details.
19 |
20 | ExtraCare Card # 21 |
22 | -------------------------------------------------------------------------------- /examples/outputs/grocery_bill.md: -------------------------------------------------------------------------------- 1 |
2 |
3 |
6 | 6300 Irvine Blvd
7 | (949) 559-1139
8 | Your Cashier was BROOKE S
9 | VERIFIED TOTAL SAVINGS $ 1.90
10 |
15 | | DANN OIKOS P PC YT | 16 |1.99 | 17 |F | 18 |
SC | 21 |RALPHS SAVED YOU | 22 |0.20 | 23 |24 | |
27 | | DANN OIKOS P SB YT | 28 |1.99 | 29 |F | 30 |
SC | 33 |RALPHS SAVED YOU | 34 |0.20 | 35 |36 | |
39 | | COKE ZERO SUGAR RC | 40 |7.49 | 41 |B | 42 |
45 | | CRV | 46 |0.50 | 47 |B | 48 |
51 | | 2.92 lb @ 0.89 /lb | 52 |53 | | 54 | |
WT | 57 |BANANA ORGNC | 58 |2.60 | 59 |F | 60 |
63 | | 2.39 lb @ 0.89 /lb | 64 |65 | | 66 | |
WT | 69 |BANANAS ORGANIC | 70 |2.13 | 71 |F | 72 |
75 | | 1 @ 3/5.00 | 76 |77 | | 78 | |
81 | | LUNA BAR | 82 |1.67 | 83 |F | 84 |
87 | | 1 @ 3/5.00 | 88 |89 | | 90 | |
93 | | LUNA BAR | 94 |1.67 | 95 |F | 96 |
99 | | PPB RAW CASHEWS RC | 100 |8.99 | 101 |F | 102 |
SC | 105 |RALPHS SAVED YOU | 106 |1.50 | 107 |108 | |
MR | 111 |CHECKOUT BAG TAX | 112 |0.10 | 113 |114 | |
RALPHS REWARDS CUSTOMER | 117 |******3844 | 118 |119 | | 120 | |
123 | | TAX | 124 |0.62 | 125 |126 | |
129 | | **** BALANCE | 130 |29.75 | 131 |132 | |
VISA | 143 |29.75 | 144 |
CHANGE | 147 |0.00 | 148 |
TOTAL NUMBER OF ITEMS SOLD = | 151 |9 | 152 |
RALPHS rewards SAVINGS | 155 |$1.90 | 156 |
TOTAL COUPONS | 159 |$1.90 | 160 |
01/13/25 11:09pm 299 6 528 355 163 | ****************************** 164 | ANNUAL CARD SAVINGS $29.76 165 | ****************************** 166 | Fuel Points Earned Today: 29 167 | Total Jan Fuel Points: 474 168 | ****************************** 169 | Next Reward: 256 points 170 | ****************************** 171 | Remaining Dec Fuel Points: 365 172 | ****************************** 173 | |
174 |
178 | Apply Now
179 | $100 Statement Credit
180 | When you spend $500 with your card
in the first 90 days* and
181 | get up to 5% CASH BACK
182 | on eligible purchases* with your
183 | Ralphs Rewards World Elite Mastercard
184 |
187 | APPLY TODAY!
188 | www.RalphsMastercard.com/42472
189 |
190 |
192 | *Restrictions apply, see website
for details.
193 |
196 | ******************************
197 | With Card & Coupons
198 | VERIFIED TOTAL SAVINGS $ 1.
199 |
201 | TRY OUR PHARMACY (949) 559-1739
202 | MGR: ADOLFO VERGARA (949) 559-1139
203 | THANK YOU FOR SHOPPING AT RALPHS!
204 |
207 | Fresh opportunity awaits
208 | Join our team today!
209 |
212 |
213 |
215 | jobs.ralphs.com
216 | www.ralphs.com
217 |
MAKE CHECK PAYABLE TO | 4 |IF PAYING BY CREDIT CARD FILL OUT BELOW | 5 |||||||||||||||||||||
8 | Providence Anesthesiology Associates 9 | PO Box 371863 10 | Pittsburgh, PA 15250-7863 11 | |
12 |
13 |
|
40 |
46 | Return Service Requested
47 | For all billing questions, call (704)749-5801
48 | Hrs. 8:00am - 6:00pm EST / M-F
49 | |
50 |
51 |
|
76 |
82 | SEND TO
83 |
84 | JOHN SMITH
89 | 85 | 100 S TRYON ST 86 | UNIT 001 87 | CHARLOTTE, NC 28202-3258 88 |
90 | Please check box if above address is incorrect or insurance information has changed, and indicate changes on reverse side
91 |
92 | |
93 |
94 | REMIT TO
95 |
96 | Providence Anesthesiology Associates
100 | 97 | PO Box 371863 98 | Pittsburgh, PA 15250-7863 99 | |
101 |
STATEMENT | 109 |PLEASE DETACH AND RETURN TOP PORTION WITH YOUR PAYMENT |
110 |
(E) Date | 117 |(F) Patient | 118 |(G) Description | 119 |(H) Charge | 120 |(I) Insurance Receipts |
121 | (J) Patient Receipts |
122 | (K) Adjustments | 123 |(L) Insurance Pending |
124 | (M) Patient Resp. |
125 |
---|---|---|---|---|---|---|---|---|
Facility : Southpark Surgery Center | 130 |131 | | 132 | | 133 | | 134 | | 135 | | 136 | | ||
03/09/2020 | 139 |JOHN | 140 |Professional Anesthesia Services - Physician | 141 |863.00 | 142 |517.80 | 143 |54.50 | 144 |145 | | 146 | | 463.30 | 147 |
150 | | 151 | | 152 | | 153 | | 154 | | 155 | | 156 | | 157 | | 158 | |
Under 30 | 166 |31 - 60 | 167 |61 - 90 | 168 |91 - 120 | 169 |121 - 150 | 170 |Over 151 | 171 |Total | 172 |173 | | 174 | |
---|---|---|---|---|---|---|---|---|
0.00 | 179 |0.00 | 180 |0.00 | 181 |463.30 | 182 |0.00 | 183 |0.00 | 184 |463.30 | 185 |186 | | 187 | |
194 | Your payment is below the acceptable payment amount. 195 | | 196 |
197 |
204 | Providence Anesthesiology Associates
208 | 205 | PO Box 371863 206 | Pittsburgh, PA 15250-7863 207 |
209 | Billing questions? Call (704)749-5801
212 | 210 | Hrs. 8:00am - 6:00pm EST / M-F 211 | |
213 |
This is a mileage-only reimbursement form. If you need other travel expenses reimbursed, complete Form OWCP-957 Part 3 | B Medical Travel Refund Request - Expenses.
4 |Note: For the FECA program to process your request, a FECA claimant must provide the home address where the 15 | claimant resides. A Post Office (PO) Box or attorney/representative address is not an acceptable address. 16 |
17 |Sample: Multiple trips to a physical therapy office 31 miles from home.
22 |7a. Date(s) of Travel | 25 |7b. Reason for Travel | 26 |7c. From (Full name and street address) | 27 |7d. To (Full name and street address) | 28 |7e. One-way / Round trip | 29 |7f. Total # Miles | 30 |
---|---|---|---|---|---|
3/2/2022 3/6/2022 3/10/2022 |
33 | Hospital Medical Appt. 34 | Therapy/Rehab Pharmacy Med. Supply Other 36 | |
37 | Home 123 Oak St. Everytown, OH 12345 |
38 | Therapy and Rehab 8000 Main St Anytown, OH 54321 |
39 | One-way Round trip 40 | |
41 | 62 62 62 |
42 |
8. The person claiming reimbursement must sign and enter the date here.
-------------------------------------------------------------------------------- /examples/outputs/test_1.md: -------------------------------------------------------------------------------- 1 | ## Example table 2 | This is an example of a data table. 3 |Disability Category | 7 |Participants | 8 |Ballots Completed | 9 |Ballots Incomplete/ Terminated | 10 |Results | 11 ||
---|---|---|---|---|---|
Accuracy | 14 |Time to complete | 15 |||||
Blind | 20 |5 | 21 |1 | 22 |4 | 23 |34.5%, n=1 | 24 |1199 sec, n=1 | 25 |
Low Vision | 28 |5 | 29 |2 | 30 |3 | 31 |98.3% n=2 (97.7%, n=3) |
32 | 1716 sec, n=3 (1934 sec, n=2) |
33 |
Dexterity | 36 |5 | 37 |4 | 38 |1 | 39 |98.3%, n=4 | 40 |1672.1 sec, n=4 | 41 |
Mobility | 44 |3 | 45 |3 | 46 |0 | 47 |95.4%, n=3 | 48 |1416 sec, n=3 | 49 |
10 | ● The Bank of New York Mellon Corporation
11 | ▲ S&P 500 Index
12 | ■ S&P 500 Financials Index
13 |
Cumulative shareholder returns (in dollars) | Dec. 31, | |||||
---|---|---|---|---|---|---|
21 | | 2018 | 22 |2019 | 23 |2020 | 24 |2021 | 25 |2022 | 26 |2023 | 27 |
The Bank of New York Mellon Corporation | 32 |$ 100.0 | 33 |$ 109.5 | 34 |$ 95.4 | 35 |$ 134.0 | 36 |$ 108.4 | 37 |$ 128.4 | 38 |
S&P 500 Financials Index (a) | 41 |100.0 | 42 |132.1 | 43 |129.9 | 44 |175.4 | 45 |156.9 | 46 |176.0 | 47 |
S&P 500 Index (a) | 50 |100.0 | 51 |131.5 | 52 |155.7 | 53 |200.4 | 54 |164.1 | 55 |207.2 | 56 |
(a) Returns are weighted by market capitalization at the beginning of the measurement period.
-------------------------------------------------------------------------------- /examples/outputs/test_3.md: -------------------------------------------------------------------------------- 1 |(dollars in millions, except per share amounts and unless otherwise noted)
5 | 6 |Selected income statement information: | 10 ||||
Fee and other revenue | 13 |$ 13,157 | 14 |$ 12,873 | 15 |$ 13,313 | 16 |
Net interest revenue | 19 |4,345 | 20 |3,504 | 21 |2,618 | 22 |
Total revenue | 25 |17,502 | 26 |16,377 | 27 |15,931 | 28 |
Provision for credit losses | 31 |119 | 32 |39 | 33 |(231) | 34 |
Noninterest expense | 37 |13,295 | 38 |13,010 | 39 |11,514 | 40 |
Income before income taxes | 43 |4,088 | 44 |3,328 | 45 |4,648 | 46 |
Provision for income taxes | 49 |800 | 50 |768 | 51 |877 | 52 |
Net income | 55 |3,288 | 56 |2,560 | 57 |3,771 | 58 |
Net (income) loss attributable to noncontrolling interests related to consolidated investment management funds | 61 |(2) | 62 |13 | 63 |(12) | 64 |
Preferred stock dividends | 67 |(235) | 68 |(211) | 69 |(207) | 70 |
Net income applicable to common shareholders of The Bank of New York Mellon Corporation | 73 |$ 3,051 | 74 |$ 2,362 | 75 |$ 3,552 | 76 |
Earnings per share applicable to common shareholders of The Bank of New York Mellon Corporation: | 79 ||||
Basic | 82 |$ 3.89 | 83 |$ 2.91 | 84 |$ 4.17 | 85 |
Diluted | 88 |$ 3.87 | 89 |$ 2.90 | 90 |$ 4.14 | 91 |
Average common shares and equivalents outstanding (in thousands): | 94 ||||
Basic | 97 |784,069 | 98 |811,068 | 99 |851,905 | 100 |
Diluted | 103 |787,798 | 104 |814,795 | 105 |856,359 | 106 |
At Dec. 31 | 109 ||||
Assets under custody and/or administration ("AUC/A") (in trillions) (a) | 112 |$ 47.8 | 113 |$ 44.3 | 114 |$ 46.7 | 115 |
Assets under management ("AUM") (in trillions) (b) | 118 |2.0 | 119 |1.8 | 120 |2.4 | 121 |
Selected ratios: | 124 ||||
Return on common equity | 127 |8.5% | 128 |6.5% | 129 |8.9% | 130 |
Return on tangible common equity - Non-GAAP (c) | 133 |16.6 | 134 |13.4 | 135 |17.1 | 136 |
Pre-tax operating margin | 139 |23 | 140 |20 | 141 |29 | 142 |
Net interest margin | 145 |1.25 | 146 |0.97 | 147 |0.68 | 148 |
Cash dividends per common share | 151 |$ 1.58 | 152 |$ 1.42 | 153 |$ 1.30 | 154 |
Common dividend payout ratio | 157 |41% | 158 |49% | 159 |32% | 160 |
Common dividend yield | 163 |3.0% | 164 |3.1% | 165 |2.2% | 166 |
At Dec. 31 | 169 ||||
Closing stock price per common share | 172 |$ 52.05 | 173 |$ 45.52 | 174 |$ 58.08 | 175 |
Market capitalization | 178 |$ 39,524 | 179 |$ 36,800 | 180 |$ 46,705 | 181 |
Book value per common share | 184 |$ 48.11 | 185 |$ 44.40 | 186 |$ 47.50 | 187 |
Tangible book value per common share - Non-GAAP (c) | 190 |$ 25.39 | 191 |$ 23.11 | 192 |$ 24.31 | 193 |
Full-time employees | 196 |53,400 | 197 |51,700 | 198 |49,100 | 199 |
Common shares outstanding (in thousands) | 202 |759,344 | 203 |808,445 | 204 |804,145 | 205 |
Regulatory capital ratios (d) | 208 ||||
Common Equity Tier 1 ("CET1") ratio | 211 |11.5% | 212 |11.2% | 213 |11.2% | 214 |
Tier 1 capital ratio | 217 |14.2 | 218 |14.1 | 219 |14.0 | 220 |
Total capital ratio | 223 |15.0 | 224 |14.9 | 225 |14.9 | 226 |
Tier 1 leverage ratio | 229 |6.0 | 230 |5.8 | 231 |5.5 | 232 |
Supplementary leverage ratio ("SLR") | 235 |7.3 | 236 |6.8 | 237 |6.6 | 238 |
(a) Consists of AUC/A primarily from the Asset Servicing line of business and, to a lesser extent, the Clearance and Collateral Management, Issuer Services, Pershing and Wealth Management lines of business. Includes the AUC/A of CIBC Mellon Global Securities Services Company ("CIBC Mellon"), a joint venture with the Canadian Imperial Bank of Commerce, of $1.7 trillion at Dec. 31, 2023, $1.5 trillion at Dec. 31, 2022 and $1.7 trillion at Dec. 31, 2021.
243 |(b) Excludes assets managed outside of the Investment and Wealth Management business segment.
244 |(c) Return on tangible common equity and tangible book value per common share, both Non-GAAP measures, exclude goodwill and intangible assets, net of deferred tax liabilities. See "Supplemental Information - Explanation of GAAP and Non-GAAP financial measures" beginning on page 111 for the reconciliation of these Non-GAAP measures.
245 |(d) For our CET1, Tier 1 and Total capital ratios, our effective capital ratios under U.S. capital rules are the lower of the ratios as calculated under the Standardized and Advanced Approaches. For additional information on our regulatory capital ratios, see "Capital" beginning on page 39.
-------------------------------------------------------------------------------- /examples/outputs/test_4.md: -------------------------------------------------------------------------------- 1 |The following represents analytical data compiled from smoke analyses of segments 1 and 2 and also includes the physical evaluation conducted on the filter rods.
2 | 3 |8 | | No Filter | 9 |With Filter | 10 |(Percent) | 11 |
a. Tobacco Rod Burned, mm | 14 |51 | 15 |51 | 16 |17 | |
b. Putts/Cigt. | 20 |7.2 | 21 |7.8 | 22 |8.3 | 23 |
c. TPM (Wet), mg/cigt. | 26 |24.0 | 27 |16.4 | 28 |31.7 | 29 |
d. Nicotine, mg/cigt. | 32 |1.06 | 33 |.85 | 34 |19.8 | 35 |
e. FTC “Tar”, mg/cigt. | 38 |20.3 | 39 |14.2 | 40 |30.1 | 41 |
RPE SCALE | 5 |EMOJI | 6 |INTENSITY LEVEL... | 7 |
---|---|---|
9 - 10 | 12 |🥵 | 13 |MAXIMUM INTENSITY | 14 |
7 - 8 | 17 |😬 | 18 |VIGOROUS INTENSITY | 19 |
5 - 6 | 22 |😐 | 23 |MODERATE INTENSITY | 24 |
3 - 4 | 27 |😉 | 28 |LIGHT INTENSITY | 29 |
1 - 2 | 32 |😁 | 33 |VERY LIGHT INTENSITY | 34 |
) if they better represent the original layout. Utilize `colspan` and `rowspan` attributes as necessary to accurately represent merged cells.
14 | - Preserve all formatting elements such as bold, italic, underline, strikethrough text, font sizes, and colors using appropriate HTML tags and inline styles if needed.
15 | - Maintain the hierarchy (h1-h6) and styling of headings and subheadings using appropriate HTML tags or Markdown.
16 | - Visual Elements:
17 | * Images: If there is text within the image, try to recreate the structure within the image. If there is no text, describe the image content and position, and use placeholder `
|