├── VERSION ├── runtime.txt ├── setup.py ├── .gitignore ├── .bumpversion.cfg ├── doc_inf_ext_exercises ├── data.zip └── images │ ├── 02_02_1.png │ ├── 02_02_2.png │ ├── 02_02_3.png │ ├── 02_02_4.png │ ├── 02_02_5.png │ ├── 02_02_6.png │ ├── 02_02_7.png │ ├── 02_02_8.png │ ├── 02_02_9.png │ ├── 02_03_2.png │ ├── 02_03_3.png │ ├── 02_03_4.png │ ├── 02_03_5.png │ ├── 02_03_6.png │ ├── 02_03_7.png │ ├── 02_03_8.gif │ ├── 02_03_9.png │ ├── 02_05_1.png │ ├── 02_05_2.png │ ├── 02_05_3.png │ ├── 02_05_4.png │ ├── 02_05_5.png │ ├── 02_05_6.png │ ├── 02_05_7.png │ ├── 02_05_8.png │ ├── 02_05_9.png │ ├── 02_06_1.png │ ├── 02_06_2.png │ ├── 02_06_6.png │ ├── 02_06_7.png │ ├── 02_06_8.png │ ├── 02_06_9.png │ ├── 02_07_1.png │ ├── 02_07_2.png │ ├── 02_07_3.png │ ├── 02_07_5.png │ ├── 02_07_6.png │ ├── 02_07_7.png │ ├── 02_07_8.png │ ├── 02_03_10.png │ ├── 02_05_11.png │ ├── 02_05_12.png │ ├── 02_05_13a.png │ ├── 02_05_13b.png │ └── 02_06_10.png ├── pyproject.toml ├── examples ├── document_classification_examples │ ├── data │ │ ├── training_data │ │ │ ├── de-1.json │ │ │ ├── de-10.json │ │ │ ├── de-11.json │ │ │ ├── de-12.json │ │ │ ├── de-13.json │ │ │ ├── de-14.json │ │ │ ├── de-15.json │ │ │ ├── de-16.json │ │ │ ├── de-17.json │ │ │ ├── de-18.json │ │ │ ├── de-19.json │ │ │ ├── de-2.json │ │ │ ├── de-20.json │ │ │ ├── de-21.json │ │ │ ├── de-22.json │ │ │ ├── de-23.json │ │ │ ├── de-24.json │ │ │ ├── de-25.json │ │ │ ├── de-26.json │ │ │ ├── de-27.json │ │ │ ├── de-28.json │ │ │ ├── de-29.json │ │ │ ├── de-3.json │ │ │ ├── de-30.json │ │ │ ├── de-31.json │ │ │ ├── de-32.json │ │ │ ├── de-33.json │ │ │ ├── de-34.json │ │ │ ├── de-35.json │ │ │ ├── de-36.json │ │ │ ├── de-37.json │ │ │ ├── de-38.json │ │ │ ├── de-39.json │ │ │ ├── de-4.json │ │ │ ├── de-40.json │ │ │ ├── de-41.json │ │ │ ├── de-42.json │ │ │ ├── de-43.json │ │ │ ├── de-44.json │ │ │ ├── de-45.json │ │ │ ├── de-46.json │ │ │ ├── de-47.json │ │ │ ├── de-48.json │ │ │ ├── de-49.json │ │ │ ├── de-5.json │ │ │ ├── de-50.json │ │ │ ├── de-6.json │ │ │ ├── de-7.json │ │ │ ├── de-8.json │ │ │ ├── de-9.json │ │ │ ├── en-1.json │ │ │ ├── en-2.json │ │ │ ├── en-3.json │ │ │ ├── en-4.json │ │ │ ├── en-5.json │ │ │ ├── en-6.json │ │ │ ├── en-7.json │ │ │ ├── en-8.json │ │ │ ├── en-9.json │ │ │ ├── en_de-1.json │ │ │ ├── en_de-2.json │ │ │ ├── en_de-3.json │ │ │ ├── en_de-4.json │ │ │ ├── en_de-5.json │ │ │ ├── en_de-6.json │ │ │ ├── en_de-7.json │ │ │ ├── en_de-8.json │ │ │ ├── en_de-9.json │ │ │ ├── fr-1.json │ │ │ ├── fr-10.json │ │ │ ├── fr-11.json │ │ │ ├── fr-12.json │ │ │ ├── fr-13.json │ │ │ ├── fr-2.json │ │ │ ├── fr-3.json │ │ │ ├── fr-4.json │ │ │ ├── fr-5.json │ │ │ ├── fr-6.json │ │ │ ├── fr-7.json │ │ │ ├── fr-8.json │ │ │ ├── fr-9.json │ │ │ ├── it-1.json │ │ │ ├── it-10.json │ │ │ ├── it-11.json │ │ │ ├── it-12.json │ │ │ ├── it-13.json │ │ │ ├── it-2.json │ │ │ ├── it-3.json │ │ │ ├── it-4.json │ │ │ ├── it-5.json │ │ │ ├── it-6.json │ │ │ ├── it-7.json │ │ │ ├── it-8.json │ │ │ ├── it-9.json │ │ │ ├── nl-1.json │ │ │ ├── nl-10.json │ │ │ ├── nl-11.json │ │ │ ├── nl-12.json │ │ │ ├── nl-13.json │ │ │ ├── nl-2.json │ │ │ ├── nl-3.json │ │ │ ├── nl-4.json │ │ │ ├── nl-5.json │ │ │ ├── nl-6.json │ │ │ ├── nl-7.json │ │ │ ├── nl-8.json │ │ │ ├── nl-9.json │ │ │ ├── sv-1.json │ │ │ ├── sv-10.json │ │ │ ├── sv-11.json │ │ │ ├── sv-12.json │ │ │ ├── sv-13.json │ │ │ ├── sv-2.json │ │ │ ├── sv-3.json │ │ │ ├── sv-4.json │ │ │ ├── sv-5.json │ │ │ ├── sv-6.json │ │ │ ├── sv-7.json │ │ │ ├── sv-8.json │ │ │ ├── sv-9.json │ │ │ ├── en-10.json │ │ │ ├── en-11.json │ │ │ ├── en-12.json │ │ │ ├── en-13.json │ │ │ ├── en-14.json │ │ │ ├── en-15.json │ │ │ ├── en-16.json │ │ │ ├── en-17.json │ │ │ ├── en-18.json │ │ │ ├── en-19.json │ │ │ ├── en-20.json │ │ │ ├── en-21.json │ │ │ ├── en-22.json │ │ │ ├── en-23.json │ │ │ ├── en-24.json │ │ │ ├── en-25.json │ │ │ ├── en-26.json │ │ │ ├── en-27.json │ │ │ ├── en-28.json │ │ │ ├── en-29.json │ │ │ ├── en-30.json │ │ │ ├── en-31.json │ │ │ ├── en-32.json │ │ │ ├── en-33.json │ │ │ ├── en-34.json │ │ │ ├── en-35.json │ │ │ ├── en-36.json │ │ │ ├── en-37.json │ │ │ ├── en-38.json │ │ │ ├── en-39.json │ │ │ ├── en-40.json │ │ │ ├── en-41.json │ │ │ ├── en-42.json │ │ │ ├── en-43.json │ │ │ ├── en-44.json │ │ │ ├── en-45.json │ │ │ ├── en-46.json │ │ │ ├── en-47.json │ │ │ ├── en-48.json │ │ │ ├── en-49.json │ │ │ ├── en-50.json │ │ │ ├── en_de-10.json │ │ │ ├── en_de-11.json │ │ │ ├── en_de-12.json │ │ │ ├── en_de-13.json │ │ │ ├── en_de-14.json │ │ │ ├── en_de-15.json │ │ │ ├── en_de-16.json │ │ │ ├── en_de-17.json │ │ │ ├── en_de-18.json │ │ │ ├── en_de-19.json │ │ │ ├── en_de-20.json │ │ │ ├── en_de-21.json │ │ │ ├── en_de-22.json │ │ │ ├── en_de-23.json │ │ │ ├── en_de-24.json │ │ │ ├── en_de-25.json │ │ │ ├── en_de-26.json │ │ │ ├── en_de-27.json │ │ │ ├── en_de-28.json │ │ │ ├── en_de-29.json │ │ │ ├── en_de-30.json │ │ │ ├── en_de-31.json │ │ │ ├── en_de-32.json │ │ │ ├── en_de-33.json │ │ │ ├── en_de-34.json │ │ │ ├── en_de-35.json │ │ │ ├── en_de-36.json │ │ │ ├── en_de-37.json │ │ │ ├── en_de-38.json │ │ │ ├── en_de-39.json │ │ │ ├── en_de-40.json │ │ │ ├── en_de-41.json │ │ │ ├── en_de-42.json │ │ │ ├── en_de-43.json │ │ │ ├── en_de-44.json │ │ │ ├── en_de-45.json │ │ │ ├── en_de-46.json │ │ │ ├── en_de-47.json │ │ │ ├── en_de-48.json │ │ │ ├── en_de-49.json │ │ │ ├── en_de-50.json │ │ │ ├── de-1.pdf │ │ │ ├── de-10.pdf │ │ │ ├── de-11.pdf │ │ │ ├── de-12.pdf │ │ │ ├── de-13.pdf │ │ │ ├── de-14.pdf │ │ │ ├── de-15.pdf │ │ │ ├── de-16.pdf │ │ │ ├── de-17.pdf │ │ │ ├── de-18.pdf │ │ │ ├── de-19.pdf │ │ │ ├── de-2.pdf │ │ │ ├── de-20.pdf │ │ │ ├── de-21.pdf │ │ │ ├── de-22.pdf │ │ │ ├── de-23.pdf │ │ │ ├── de-24.pdf │ │ │ ├── de-25.pdf │ │ │ ├── de-26.pdf │ │ │ ├── de-27.pdf │ │ │ ├── de-28.pdf │ │ │ ├── de-29.pdf │ │ │ ├── de-3.pdf │ │ │ ├── de-30.pdf │ │ │ ├── de-31.pdf │ │ │ ├── de-32.pdf │ │ │ ├── de-33.pdf │ │ │ ├── de-34.pdf │ │ │ ├── de-35.pdf │ │ │ ├── de-36.pdf │ │ │ ├── de-37.pdf │ │ │ ├── de-38.pdf │ │ │ ├── de-39.pdf │ │ │ ├── de-4.pdf │ │ │ ├── de-40.pdf │ │ │ ├── de-41.pdf │ │ │ ├── de-42.pdf │ │ │ ├── de-43.pdf │ │ │ ├── de-44.pdf │ │ │ ├── de-45.pdf │ │ │ ├── de-46.pdf │ │ │ ├── de-47.pdf │ │ │ ├── de-48.pdf │ │ │ ├── de-49.pdf │ │ │ ├── de-5.pdf │ │ │ ├── de-50.pdf │ │ │ ├── de-6.pdf │ │ │ ├── de-7.pdf │ │ │ ├── de-8.pdf │ │ │ ├── de-9.pdf │ │ │ ├── en-1.pdf │ │ │ ├── en-10.pdf │ │ │ ├── en-11.pdf │ │ │ ├── en-12.pdf │ │ │ ├── en-13.pdf │ │ │ ├── en-14.pdf │ │ │ ├── en-15.pdf │ │ │ ├── en-16.pdf │ │ │ ├── en-17.pdf │ │ │ ├── en-18.pdf │ │ │ ├── en-19.pdf │ │ │ ├── en-2.pdf │ │ │ ├── en-20.pdf │ │ │ ├── en-21.pdf │ │ │ ├── en-22.pdf │ │ │ ├── en-23.pdf │ │ │ ├── en-24.pdf │ │ │ ├── en-25.pdf │ │ │ ├── en-26.pdf │ │ │ ├── en-27.pdf │ │ │ ├── en-28.pdf │ │ │ ├── en-29.pdf │ │ │ ├── en-3.pdf │ │ │ ├── en-30.pdf │ │ │ ├── en-31.pdf │ │ │ ├── en-32.pdf │ │ │ ├── en-33.pdf │ │ │ ├── en-34.pdf │ │ │ ├── en-35.pdf │ │ │ ├── en-36.pdf │ │ │ ├── en-37.pdf │ │ │ ├── en-38.pdf │ │ │ ├── en-39.pdf │ │ │ ├── en-4.pdf │ │ │ ├── en-40.pdf │ │ │ ├── en-41.pdf │ │ │ ├── en-42.pdf │ │ │ ├── en-43.pdf │ │ │ ├── en-44.pdf │ │ │ ├── en-45.pdf │ │ │ ├── en-46.pdf │ │ │ ├── en-47.pdf │ │ │ ├── en-48.pdf │ │ │ ├── en-49.pdf │ │ │ ├── en-5.pdf │ │ │ ├── en-50.pdf │ │ │ ├── en-6.pdf │ │ │ ├── en-7.pdf │ │ │ ├── en-8.pdf │ │ │ ├── en-9.pdf │ │ │ ├── fr-1.pdf │ │ │ ├── fr-10.pdf │ │ │ ├── fr-11.pdf │ │ │ ├── fr-12.pdf │ │ │ ├── fr-13.pdf │ │ │ ├── fr-2.pdf │ │ │ ├── fr-3.pdf │ │ │ ├── fr-4.pdf │ │ │ ├── fr-5.pdf │ │ │ ├── fr-6.pdf │ │ │ ├── fr-7.pdf │ │ │ ├── fr-8.pdf │ │ │ ├── fr-9.pdf │ │ │ ├── it-1.pdf │ │ │ ├── it-10.pdf │ │ │ ├── it-11.pdf │ │ │ ├── it-12.pdf │ │ │ ├── it-13.pdf │ │ │ ├── it-2.pdf │ │ │ ├── it-3.pdf │ │ │ ├── it-4.pdf │ │ │ ├── it-5.pdf │ │ │ ├── it-6.pdf │ │ │ ├── it-7.pdf │ │ │ ├── it-8.pdf │ │ │ ├── it-9.pdf │ │ │ ├── nl-1.pdf │ │ │ ├── nl-10.pdf │ │ │ ├── nl-11.pdf │ │ │ ├── nl-12.pdf │ │ │ ├── nl-13.pdf │ │ │ ├── nl-2.pdf │ │ │ ├── nl-3.pdf │ │ │ ├── nl-4.pdf │ │ │ ├── nl-5.pdf │ │ │ ├── nl-6.pdf │ │ │ ├── nl-7.pdf │ │ │ ├── nl-8.pdf │ │ │ ├── nl-9.pdf │ │ │ ├── sv-1.pdf │ │ │ ├── sv-10.pdf │ │ │ ├── sv-11.pdf │ │ │ ├── sv-12.pdf │ │ │ ├── sv-13.pdf │ │ │ ├── sv-2.pdf │ │ │ ├── sv-3.pdf │ │ │ ├── sv-4.pdf │ │ │ ├── sv-5.pdf │ │ │ ├── sv-6.pdf │ │ │ ├── sv-7.pdf │ │ │ ├── sv-8.pdf │ │ │ ├── sv-9.pdf │ │ │ ├── en_de-1.pdf │ │ │ ├── en_de-2.pdf │ │ │ ├── en_de-3.pdf │ │ │ ├── en_de-4.pdf │ │ │ ├── en_de-5.pdf │ │ │ ├── en_de-6.pdf │ │ │ ├── en_de-7.pdf │ │ │ ├── en_de-8.pdf │ │ │ ├── en_de-9.pdf │ │ │ ├── en_de-10.pdf │ │ │ ├── en_de-11.pdf │ │ │ ├── en_de-12.pdf │ │ │ ├── en_de-13.pdf │ │ │ ├── en_de-14.pdf │ │ │ ├── en_de-15.pdf │ │ │ ├── en_de-16.pdf │ │ │ ├── en_de-17.pdf │ │ │ ├── en_de-18.pdf │ │ │ ├── en_de-19.pdf │ │ │ ├── en_de-20.pdf │ │ │ ├── en_de-21.pdf │ │ │ ├── en_de-22.pdf │ │ │ ├── en_de-23.pdf │ │ │ ├── en_de-24.pdf │ │ │ ├── en_de-25.pdf │ │ │ ├── en_de-26.pdf │ │ │ ├── en_de-27.pdf │ │ │ ├── en_de-28.pdf │ │ │ ├── en_de-29.pdf │ │ │ ├── en_de-30.pdf │ │ │ ├── en_de-31.pdf │ │ │ ├── en_de-32.pdf │ │ │ ├── en_de-33.pdf │ │ │ ├── en_de-34.pdf │ │ │ ├── en_de-35.pdf │ │ │ ├── en_de-36.pdf │ │ │ ├── en_de-37.pdf │ │ │ ├── en_de-38.pdf │ │ │ ├── en_de-39.pdf │ │ │ ├── en_de-40.pdf │ │ │ ├── en_de-41.pdf │ │ │ ├── en_de-42.pdf │ │ │ ├── en_de-43.pdf │ │ │ ├── en_de-44.pdf │ │ │ ├── en_de-45.pdf │ │ │ ├── en_de-46.pdf │ │ │ ├── en_de-47.pdf │ │ │ ├── en_de-48.pdf │ │ │ ├── en_de-49.pdf │ │ │ └── en_de-50.pdf │ │ └── classification_data │ │ │ ├── Other │ │ │ ├── rc.pdf │ │ │ ├── umbro.pdf │ │ │ ├── flickr.pdf │ │ │ ├── navfac.pdf │ │ │ ├── twitter.pdf │ │ │ ├── guru_shop.pdf │ │ │ ├── bejing_2008.pdf │ │ │ ├── chinese_blogger.pdf │ │ │ ├── norsk_folkehjelp.pdf │ │ │ └── engenharia_ambiental.pdf │ │ │ ├── Invoice │ │ │ ├── rc.pdf │ │ │ ├── flickr.pdf │ │ │ ├── navfac.pdf │ │ │ ├── umbro.pdf │ │ │ ├── twitter.pdf │ │ │ ├── bejing_2008.pdf │ │ │ ├── guru_shop.pdf │ │ │ ├── chinese_blogger.pdf │ │ │ ├── norsk_folkehjelp.pdf │ │ │ └── engenharia_ambiental.pdf │ │ │ ├── Payment Advice │ │ │ ├── rc.pdf │ │ │ ├── flickr.pdf │ │ │ ├── navfac.pdf │ │ │ ├── umbro.pdf │ │ │ ├── guru_shop.pdf │ │ │ ├── twitter.pdf │ │ │ ├── beijing_2008.pdf │ │ │ ├── chinese_blogger.pdf │ │ │ ├── norsk_folkehjelp.pdf │ │ │ └── engenharia_ambiental.pdf │ │ │ └── Purchase Order │ │ │ ├── rc.pdf │ │ │ ├── flickr.pdf │ │ │ ├── navfac.pdf │ │ │ ├── umbro.pdf │ │ │ ├── guru_shop.pdf │ │ │ ├── twitter.pdf │ │ │ ├── beijing_2008.pdf │ │ │ ├── chinese_blogger.pdf │ │ │ ├── norsk_folkehjelp.pdf │ │ │ └── engenharia_ambiental.pdf │ ├── install_jupyterlab.sh │ └── README.md └── document_information_extraction_examples │ ├── sample-invoice-1.pdf │ ├── utils.py │ └── gt-sample-invoice-1.json ├── sap_business_document_processing ├── document_classification_client │ ├── __init__.py │ └── constants.py ├── document_information_extraction_client │ ├── __init__.py │ ├── endpoints.py │ ├── constants.py │ └── helpers.py ├── __init__.py └── common │ ├── constants.py │ ├── exceptions.py │ ├── helpers.py │ └── http_client_base.py ├── requirements.txt ├── REUSE.toml ├── setup.cfg ├── .github └── workflows │ └── release.yml ├── README.md └── LICENSES └── Apache-2.0.txt /VERSION: -------------------------------------------------------------------------------- 1 | 0.4.1 -------------------------------------------------------------------------------- /runtime.txt: -------------------------------------------------------------------------------- 1 | python-3.7 -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | import setuptools 2 | setuptools.setup() 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | **/__pycache__/ 2 | dist/ 3 | .idea/ 4 | MANIFEST 5 | **/.ipynb_checkpoints/ 6 | -------------------------------------------------------------------------------- /.bumpversion.cfg: -------------------------------------------------------------------------------- 1 | [bumpversion] 2 | current_version = 0.4.1 3 | 4 | [bumpversion:file:VERSION] 5 | -------------------------------------------------------------------------------- /doc_inf_ext_exercises/data.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/data.zip -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [build-system] 2 | requires = [ 3 | "setuptools", 4 | "wheel" 5 | ] 6 | build-backend = "setuptools.build_meta" -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-1.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-10.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-11.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-12.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-13.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-14.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-15.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-16.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-17.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-18.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-19.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-2.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-20.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-21.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-22.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-23.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-24.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-25.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-26.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-27.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-28.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-29.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-3.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-30.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-31.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-32.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-33.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-34.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-35.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-36.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-37.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-38.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-39.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-4.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-40.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-41.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-42.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-43.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-44.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-45.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-46.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-47.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-48.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-49.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-5.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-50.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-6.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-7.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-8.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-9.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"German"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-1.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-2.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-3.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-4.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-5.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-6.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-7.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-8.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-9.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-1.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-2.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-3.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-4.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-5.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-6.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-7.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-8.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-9.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-1.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-10.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-11.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-12.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-13.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-2.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-3.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-4.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-5.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-6.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-7.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-8.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-9.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-1.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-10.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-11.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-12.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-13.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-2.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-3.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-4.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-5.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-6.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-7.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-8.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-9.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-1.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-10.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-11.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-12.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-13.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-2.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-3.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-4.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-5.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-6.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-7.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-8.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-9.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-1.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-10.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-11.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-12.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-13.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-2.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-3.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-4.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-5.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-6.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-7.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-8.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-9.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Other"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-10.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-11.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-12.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-13.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-14.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-15.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-16.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-17.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-18.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-19.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-20.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-21.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-22.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-23.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-24.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-25.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-26.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-27.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-28.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-29.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-30.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-31.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-32.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-33.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-34.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-35.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-36.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-37.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-38.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-39.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-40.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-41.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-42.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-43.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-44.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-45.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-46.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-47.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-48.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-49.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-50.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"English"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-10.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-11.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-12.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-13.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-14.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-15.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-16.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-17.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-18.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-19.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-20.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-21.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-22.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-23.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-24.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-25.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-26.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-27.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-28.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-29.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-30.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-31.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-32.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-33.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-34.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-35.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-36.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-37.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-38.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-39.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-40.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-41.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-42.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-43.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-44.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-45.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-46.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-47.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-48.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-49.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-50.json: -------------------------------------------------------------------------------- 1 | {"classification":[{"characteristic":"Language","value":"Both"}]} -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_02_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_02_1.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_02_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_02_2.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_02_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_02_3.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_02_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_02_4.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_02_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_02_5.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_02_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_02_6.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_02_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_02_7.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_02_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_02_8.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_02_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_02_9.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_03_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_03_2.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_03_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_03_3.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_03_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_03_4.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_03_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_03_5.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_03_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_03_6.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_03_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_03_7.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_03_8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_03_8.gif -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_03_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_03_9.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_1.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_2.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_3.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_4.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_5.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_6.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_7.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_8.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_9.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_06_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_06_1.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_06_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_06_2.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_06_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_06_6.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_06_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_06_7.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_06_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_06_8.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_06_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_06_9.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_07_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_07_1.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_07_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_07_2.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_07_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_07_3.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_07_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_07_5.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_07_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_07_6.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_07_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_07_7.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_07_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_07_8.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_03_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_03_10.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_11.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_12.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_13a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_13a.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_05_13b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_05_13b.png -------------------------------------------------------------------------------- /doc_inf_ext_exercises/images/02_06_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/doc_inf_ext_exercises/images/02_06_10.png -------------------------------------------------------------------------------- /sap_business_document_processing/document_classification_client/__init__.py: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 -------------------------------------------------------------------------------- /sap_business_document_processing/document_information_extraction_client/__init__.py: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-1.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-10.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-11.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-11.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-12.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-12.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-13.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-13.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-14.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-14.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-15.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-15.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-16.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-16.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-17.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-17.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-18.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-18.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-19.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-19.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-2.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-20.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-20.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-21.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-21.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-22.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-22.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-23.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-23.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-24.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-24.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-25.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-25.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-26.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-26.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-27.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-27.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-28.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-28.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-29.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-29.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-3.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-30.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-30.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-31.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-31.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-32.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-32.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-33.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-33.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-34.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-34.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-35.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-35.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-36.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-36.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-37.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-37.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-38.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-38.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-39.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-39.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-4.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-40.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-40.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-41.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-41.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-42.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-42.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-43.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-43.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-44.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-44.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-45.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-45.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-46.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-46.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-47.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-47.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-48.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-48.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-49.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-49.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-5.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-50.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-50.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-6.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-7.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-8.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/de-9.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/de-9.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-1.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-10.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-11.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-11.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-12.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-12.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-13.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-13.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-14.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-14.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-15.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-15.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-16.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-16.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-17.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-17.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-18.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-18.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-19.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-19.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-2.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-20.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-20.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-21.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-21.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-22.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-22.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-23.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-23.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-24.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-24.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-25.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-25.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-26.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-26.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-27.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-27.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-28.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-28.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-29.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-29.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-3.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-30.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-30.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-31.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-31.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-32.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-32.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-33.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-33.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-34.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-34.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-35.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-35.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-36.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-36.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-37.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-37.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-38.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-38.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-39.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-39.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-4.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-40.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-40.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-41.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-41.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-42.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-42.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-43.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-43.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-44.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-44.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-45.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-45.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-46.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-46.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-47.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-47.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-48.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-48.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-49.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-49.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-5.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-50.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-50.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-6.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-7.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-8.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en-9.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en-9.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-1.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-10.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-11.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-11.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-12.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-12.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-13.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-13.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-2.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-3.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-4.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-5.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-6.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-7.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-8.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/fr-9.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/fr-9.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-1.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-10.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-11.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-11.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-12.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-12.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-13.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-13.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-2.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-3.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-4.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-5.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-6.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-7.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-8.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/it-9.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/it-9.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-1.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-10.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-11.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-11.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-12.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-12.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-13.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-13.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-2.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-3.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-4.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-5.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-6.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-7.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-8.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/nl-9.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/nl-9.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-1.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-10.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-11.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-11.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-12.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-12.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-13.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-13.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-2.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-3.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-4.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-5.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-6.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-7.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-8.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/sv-9.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/sv-9.pdf -------------------------------------------------------------------------------- /examples/document_information_extraction_examples/sample-invoice-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_information_extraction_examples/sample-invoice-1.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-1.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-2.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-3.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-4.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-4.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-5.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-5.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-6.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-6.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-7.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-7.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-8.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-8.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-9.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-9.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-10.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-11.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-11.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-12.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-12.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-13.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-13.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-14.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-14.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-15.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-15.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-16.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-16.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-17.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-17.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-18.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-18.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-19.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-19.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-20.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-20.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-21.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-21.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-22.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-22.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-23.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-23.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-24.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-24.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-25.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-25.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-26.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-26.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-27.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-27.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-28.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-28.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-29.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-29.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-30.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-30.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-31.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-31.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-32.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-32.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-33.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-33.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-34.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-34.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-35.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-35.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-36.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-36.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-37.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-37.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-38.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-38.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-39.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-39.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-40.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-40.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-41.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-41.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-42.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-42.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-43.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-43.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-44.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-44.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-45.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-45.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-46.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-46.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-47.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-47.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-48.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-48.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-49.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-49.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/training_data/en_de-50.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/training_data/en_de-50.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Other/rc.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Other/rc.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Invoice/rc.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Invoice/rc.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Other/umbro.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Other/umbro.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Invoice/flickr.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Invoice/flickr.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Invoice/navfac.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Invoice/navfac.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Invoice/umbro.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Invoice/umbro.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Other/flickr.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Other/flickr.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Other/navfac.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Other/navfac.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Other/twitter.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Other/twitter.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Invoice/twitter.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Invoice/twitter.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Other/guru_shop.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Other/guru_shop.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Invoice/bejing_2008.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Invoice/bejing_2008.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Invoice/guru_shop.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Invoice/guru_shop.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Other/bejing_2008.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Other/bejing_2008.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Payment Advice/rc.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Payment Advice/rc.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Purchase Order/rc.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Purchase Order/rc.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Other/chinese_blogger.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Other/chinese_blogger.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Payment Advice/flickr.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Payment Advice/flickr.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Payment Advice/navfac.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Payment Advice/navfac.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Payment Advice/umbro.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Payment Advice/umbro.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Purchase Order/flickr.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Purchase Order/flickr.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Purchase Order/navfac.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Purchase Order/navfac.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Purchase Order/umbro.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Purchase Order/umbro.pdf -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | # Packages needed in the Jupyter Notebooks in the examples directory, installed by repo2docker (e.g. mybinder) 2 | numpy==1.21.0 3 | matplotlib==3.1.1 4 | scikit-learn==0.21.3 5 | pandas==0.25.1 6 | fpdf2==2.3.0 7 | PyPDF2==1.27.9 8 | -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Invoice/chinese_blogger.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Invoice/chinese_blogger.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Invoice/norsk_folkehjelp.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Invoice/norsk_folkehjelp.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Other/norsk_folkehjelp.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Other/norsk_folkehjelp.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Payment Advice/guru_shop.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Payment Advice/guru_shop.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Payment Advice/twitter.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Payment Advice/twitter.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Purchase Order/guru_shop.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Purchase Order/guru_shop.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Purchase Order/twitter.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Purchase Order/twitter.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Other/engenharia_ambiental.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Other/engenharia_ambiental.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Invoice/engenharia_ambiental.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Invoice/engenharia_ambiental.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Payment Advice/beijing_2008.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Payment Advice/beijing_2008.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Purchase Order/beijing_2008.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Purchase Order/beijing_2008.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Payment Advice/chinese_blogger.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Payment Advice/chinese_blogger.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Payment Advice/norsk_folkehjelp.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Payment Advice/norsk_folkehjelp.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Purchase Order/chinese_blogger.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Purchase Order/chinese_blogger.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Purchase Order/norsk_folkehjelp.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Purchase Order/norsk_folkehjelp.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Payment Advice/engenharia_ambiental.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Payment Advice/engenharia_ambiental.pdf -------------------------------------------------------------------------------- /examples/document_classification_examples/data/classification_data/Purchase Order/engenharia_ambiental.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SAP/business-document-processing/HEAD/examples/document_classification_examples/data/classification_data/Purchase Order/engenharia_ambiental.pdf -------------------------------------------------------------------------------- /sap_business_document_processing/__init__.py: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | 5 | from .document_classification_client.dc_api_client import DCApiClient 6 | from .document_information_extraction_client.dox_api_client import DoxApiClient 7 | -------------------------------------------------------------------------------- /REUSE.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | SPDX-PackageName = "document-classification-client" 3 | SPDX-PackageSupplier = "Alexander Bolshakov " 4 | SPDX-PackageDownloadLocation = "https://github.com/SAP/document-classification-client" 5 | 6 | [[annotations]] 7 | path = "**" 8 | precedence = "aggregate" 9 | SPDX-FileCopyrightText = "2019-2021 SAP SE" 10 | SPDX-License-Identifier = "Apache-2.0" 11 | -------------------------------------------------------------------------------- /examples/document_classification_examples/install_jupyterlab.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | 7 | wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh 8 | bash Anaconda3-2019.10-Linux-x86_64.sh 9 | rm Anaconda3-2019.10-Linux-x86_64.sh 10 | 11 | conda update -n base -c defaults conda 12 | conda create --name jupyterlab 13 | conda activate jupyterlab 14 | conda install -c conda-forge jupyterlab 15 | 16 | jupyter lab -------------------------------------------------------------------------------- /sap_business_document_processing/common/constants.py: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | 5 | API_STATUS_FIELD = 'status' 6 | 7 | STR_STATUS_CONFIRMED = 'CONFIRMED' 8 | STR_STATUS_DONE = 'DONE' 9 | STR_STATUS_FAILED = 'FAILED' 10 | STR_STATUS_PENDING = 'PENDING' 11 | STR_STATUS_SUCCESS = 'SUCCESS' 12 | STR_STATUS_SUCCEEDED = 'SUCCEEDED' 13 | SUCCEEDED_STATUSES = {STR_STATUS_CONFIRMED, STR_STATUS_DONE, STR_STATUS_SUCCESS, STR_STATUS_SUCCEEDED} 14 | FAILED_STATUSES = {STR_STATUS_FAILED} 15 | 16 | 17 | MIN_POLLING_INTERVAL = 0.2 18 | 19 | -------------------------------------------------------------------------------- /sap_business_document_processing/common/exceptions.py: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | 5 | 6 | class BDPApiException(Exception): 7 | def __init__(self, message, response=None, status_code=None): 8 | super(BDPApiException, self).__init__(message) 9 | self.response = response 10 | self.status_code = status_code 11 | 12 | 13 | class BDPPollingTimeoutException(BDPApiException): 14 | pass 15 | 16 | 17 | class BDPFailedAsynchronousOperationException(BDPApiException): 18 | pass 19 | 20 | 21 | class BDPClientException(BDPApiException): 22 | pass 23 | 24 | 25 | class BDPServerException(BDPApiException): 26 | pass 27 | 28 | 29 | class BDPUnauthorizedException(BDPClientException): 30 | pass 31 | -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [metadata] 2 | name = sap-business-document-processing 3 | version = file: VERSION 4 | license = apache-2.0 5 | description = Python client library for convenient usage of SAP Business Document Processing services 6 | long_description = file: README.md 7 | long_description_content_type = text/markdown 8 | author = Alexander Bolshakov 9 | author_email = alexander.bolshakov@sap.com 10 | url = https://github.com/sap/business-document-processing 11 | download_url = https://pypi.org/project/sap-business-document-processing 12 | keywords = SAP, business, document, processing, classification, information, extraction, machine learning 13 | classifiers = 14 | Development Status :: 3 - Alpha 15 | Intended Audience :: Developers 16 | License :: OSI Approved :: Apache Software License 17 | Programming Language :: Python :: 3 18 | 19 | [options] 20 | packages = find_namespace: 21 | include_package_data = True 22 | install_requires = 23 | urllib3 ~= 1.26 24 | requests ~= 2.31 25 | requests_oauthlib ~= 1.3 26 | -------------------------------------------------------------------------------- /sap_business_document_processing/document_information_extraction_client/endpoints.py: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | 5 | CAPABILITIES_ENDPOINT = '/capabilities' 6 | CLIENT_ENDPOINT = '/clients' 7 | CLIENT_MAPPING_ENDPOINT = '/identifier' 8 | DATA_ENDPOINT = '/data' 9 | DATA_ASYNC_ENDPOINT = DATA_ENDPOINT + '/jobs' 10 | DATA_ID_ENDPOINT = DATA_ASYNC_ENDPOINT + '/{id}' 11 | DATA_ACTIVATION_ASYNC_ENDPOINT = DATA_ENDPOINT + '/activation' 12 | DATA_ACTIVATION_ID_ENDPOINT = DATA_ACTIVATION_ASYNC_ENDPOINT + '/{id}' 13 | DOCUMENT_ENDPOINT = '/document/jobs' 14 | DOCUMENT_ID_ENDPOINT = DOCUMENT_ENDPOINT + '/{document_id}' 15 | DOCUMENT_CONFIRM_ENDPOINT = DOCUMENT_ID_ENDPOINT + '/confirm' 16 | DOCUMENT_PAGES_ENDPOINT = DOCUMENT_ID_ENDPOINT + '/pages' 17 | DOCUMENT_PAGE_ENDPOINT = DOCUMENT_PAGES_ENDPOINT + '/{page_number}' 18 | DOCUMENT_PAGES_TEXT_ENDPOINT = DOCUMENT_PAGES_ENDPOINT + '/text' 19 | DOCUMENT_PAGE_TEXT_ENDPOINT = DOCUMENT_PAGE_ENDPOINT + '/text' 20 | DOCUMENT_PAGES_DIMENSIONS_ENDPOINT = DOCUMENT_PAGES_ENDPOINT + '/dimensions' 21 | DOCUMENT_PAGE_DIMENSIONS_ENDPOINT = DOCUMENT_PAGE_ENDPOINT + '/dimensions' 22 | DOCUMENT_ID_REQUEST_ENDPOINT = DOCUMENT_ID_ENDPOINT + '/request' 23 | -------------------------------------------------------------------------------- /examples/document_classification_examples/README.md: -------------------------------------------------------------------------------- 1 | 6 | 7 | In order to use the example [`train_and_evaluate_custom_model.ipynb`](train_and_evaluate_custom_model.ipynb) two prerequisites are required: 8 | 9 | 1. You have access to a service key for the SAP AI Business Services - Document Classification service 10 | 1. You will need to have access to SAP Cloud Plattform given via the [SAP Cloud Platform Enterprise Agreement](https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=489198716) 11 | 1. For general documentation about service keys, see [SAP Cloud Platform Help Portal - Creating Service Keys](https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/4514a14ab6424d9f84f1b8650df609ce.html) 12 | 1. You can also check the service specific setup help: [Document Classification Help Portal - Initial Setup](https://help.sap.com/viewer/ca60cd2ed44f4261a3ae500234c46f37/SHIP/en-US/88bdee94c7c94bc99de8484f5c2db04a.html). 13 | 1. You need a Jupyterlab instance (below are the instructions for setup locally on your laptop) 14 | 1. An example script to set up anaconda and start jupyterlab on your local machine is provided [here](./install_jupyterlab.sh). This script might need modifications based on OS version (example used is based on Ubuntu 16.04). Please consult the [anaconda installation guide](https://docs.anaconda.com/anaconda/install/) or your preffered python package manager for details regarding your OS. 15 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release to Pypi 2 | 3 | on: 4 | workflow_dispatch: 5 | inputs: 6 | bumpVersionPart: 7 | description: 'The part of the version to increase' 8 | required: true 9 | default: 'patch' 10 | type: choice 11 | options: 12 | - patch 13 | - minor 14 | - major 15 | 16 | jobs: 17 | release: 18 | runs-on: ubuntu-latest 19 | steps: 20 | - uses: actions/checkout@v2 21 | - name: Set up Python 22 | uses: actions/setup-python@v1 23 | with: 24 | python-version: '3.x' 25 | - name: Install build dependencies 26 | run: pip install -r build-requirements.txt 27 | - name: Set Git username 28 | run: | 29 | git config user.email "${{ github.actor }}@users.noreply.github.com" 30 | git config user.name "${{ github.actor }}" 31 | - name: Bump version 32 | run: python -m bumpversion ${{ github.event.inputs.bumpVersionPart }} 33 | - name: Create API documentation 34 | run: | 35 | python -m pydocmd simple sap_business_document_processing+ sap_business_document_processing.document_classification_client.dc_api_client++ sap_business_document_processing.document_information_extraction_client.dox_api_client++ > API.md 36 | sed -i 's/:param/- Argument/g' API.md 37 | sed -i 's/:return/\n**Returns**/g' API.md 38 | - name: Update API documentation and version 39 | uses: EndBug/add-and-commit@v7 40 | with: 41 | add: | 42 | API.md 43 | VERSION 44 | .bumpversion.cfg 45 | message: 'Update version and API.md' 46 | - name: Build release distribution 47 | run: python -m build . 48 | - name: Publish to PyPI 49 | uses: pypa/gh-action-pypi-publish@master 50 | with: 51 | password: ${{ secrets.PYPI_API_TOKEN }} 52 | -------------------------------------------------------------------------------- /sap_business_document_processing/document_classification_client/constants.py: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | 5 | from functools import partial 6 | 7 | DATASETS_ENDPOINT = 'datasets' 8 | DATASET_ENDPOINT = partial('datasets/{dataset_id}'.format) 9 | DATASET_DOCUMENTS_ENDPOINT = partial('datasets/{dataset_id}/documents'.format) 10 | DATASET_DOCUMENT_ENDPOINT = partial('datasets/{dataset_id}/documents/{document_id}'.format) 11 | DOCUMENTS_ENDPOINT = partial('classification/models/{modelName}/versions/{modelVersion}/documents'.format) 12 | DOCUMENT_RESULT_ENDPOINT = partial('classification/models/{modelName}/versions/{modelVersion}/documents/{id}'.format) 13 | MODEL_TRAINING_JOBS_ENDPOINT = partial('models/{modelName}/versions'.format) 14 | MODEL_TRAINING_JOB_ENDPOINT = partial('models/{modelName}/versions/{modelVersion}'.format) 15 | DEPLOYMENTS_ENDPOINT = 'deployments' 16 | TRAINED_MODEL_ENDPOINT = partial('models/{model_name}/versions/{model_version}'.format) 17 | TRAINED_MODELS_ENDPOINT = 'models' 18 | MODEL_DEPLOYMENT_ENDPOINT = partial('deployments/{deployment_id}'.format) 19 | MONITORING_HEALTH_CHECK_ENDPOINT = 'healthz' 20 | 21 | API_PAGINATION_TOP_PARAM = 'top' 22 | API_PAGINATION_SKIP_PARAM = 'skip' 23 | API_PAGINATION_COUNT_PARAM = 'count' 24 | 25 | API_DATASET_ID_FIELD = 'datasetId' 26 | API_DATASETS_FIELD = 'datasets' 27 | API_DEPLOYMENT_ID_FIELD = 'deploymentId' 28 | API_DEPLOYMENTS_FIELD = 'deployments' 29 | API_DOCUMENT_EXTRACTED_TEXT_FIELD = 'extractedText' 30 | API_DOCUMENT_ID_FIELD = 'documentId' 31 | API_DOCUMENT_FIELD = 'document' 32 | API_GROUND_TRUTH_FIELD = 'groundTruth' 33 | API_MIME_TYPE_FIELD = 'mimeType' 34 | API_MODELS_FIELD = 'models' 35 | API_MODEL_NAME_FIELD = 'modelName' 36 | API_MODEL_VERSION_FIELD = 'modelVersion' 37 | API_PARAMETERS_FIELD = 'parameters' 38 | API_RESULTS_FIELD = 'results' 39 | API_STRATIFICATION_SET_FIELD = 'stratificationSet' 40 | -------------------------------------------------------------------------------- /sap_business_document_processing/common/helpers.py: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | import json 5 | import requests 6 | from requests.adapters import HTTPAdapter 7 | from urllib3.util.retry import Retry 8 | 9 | 10 | def make_url(base, extension): 11 | if base.endswith('/'): 12 | base = base[:-1] 13 | if not extension.startswith('/'): 14 | extension = '/' + extension 15 | return base + extension 16 | 17 | 18 | def make_oauth_url(auth_url): 19 | if auth_url.endswith('/'): 20 | auth_url = auth_url[:-1] 21 | if auth_url.endswith('/oauth/token'): 22 | return auth_url 23 | return make_url(auth_url, '/oauth/token') 24 | 25 | 26 | def function_wrap_errors(function, *args): 27 | try: 28 | return function(*args) 29 | except Exception as e: 30 | return e 31 | 32 | 33 | def get_ground_truth_json(ground_truth): 34 | if isinstance(ground_truth, str): 35 | with open(ground_truth, 'r') as file: 36 | return json.load(file) 37 | elif isinstance(ground_truth, dict): 38 | return ground_truth 39 | else: 40 | raise ValueError('Wrong argument type, string (path to ground truth file) or a dictionary (ground truth as ' 41 | 'JSON format) are expected for \'ground_truth\'') 42 | 43 | 44 | def add_retry_to_session(session: requests.Session, pool_maxsize=None, retries=3, backoff_factor=1, 45 | status_forcelist=(500, 502, 503, 504)): 46 | 47 | # see: https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html for Retry class 48 | retry = Retry(total=retries, 49 | read=retries, 50 | status=retries, 51 | connect=retries, 52 | backoff_factor=backoff_factor, 53 | status_forcelist=status_forcelist, 54 | allowed_methods=['GET'], 55 | raise_on_status=False) 56 | adapter = HTTPAdapter(max_retries=retry, pool_maxsize=pool_maxsize) 57 | session.mount('http://', adapter) 58 | session.mount('https://', adapter) 59 | -------------------------------------------------------------------------------- /sap_business_document_processing/document_information_extraction_client/constants.py: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | 5 | API_FIELD_CLIENT_ID = 'clientId' 6 | API_FIELD_CLIENT_LIMIT = 'limit' 7 | API_FIELD_CLIENT_NAME = 'clientName' 8 | API_FIELD_DOCUMENT_TYPE = 'documentType' 9 | API_FIELD_DOCUMENT_TYPE_DESCRIPTION = 'documentTypeDescription' 10 | API_FIELD_ENRICHMENT = 'enrichment' 11 | API_FIELD_EXTRACTED_HEADER_FIELDS = 'headerFields' 12 | API_FIELD_EXTRACTED_LINE_ITEM_FIELDS = 'lineItemFields' 13 | API_FIELD_EXTRACTED_VALUES = 'extractedValues' 14 | API_FIELD_FILE_TYPE = 'fileType' 15 | API_FIELD_ID = 'id' 16 | API_FIELD_PREDEFINED = 'predefined' 17 | API_FIELD_RESULTS = 'results' 18 | API_FIELD_RETURN_NULL = 'returnNullValues' 19 | API_FIELD_SCHEMA_ID = 'schemaId' 20 | API_FIELD_NAME = 'name' 21 | API_FIELD_DESCRIPTION = 'description' 22 | API_FIELD_DATATYPE = 'datatype' 23 | API_FIELD_LABEL = 'label' 24 | API_FIELD_FIELD_NAME = 'fieldName' 25 | API_FIELD_FORMATTING = 'formatting' 26 | API_FIELD_FORMATTING_TYPE = 'formattingType' 27 | API_FIELD_FORMATTING_TYPE_VERSION = 'formattingTypeVersion' 28 | API_FIELD_PRIORITY = 'priority' 29 | API_FIELD_SETUP = 'setup' 30 | API_FIELD_SETUP_TYPE = 'setupType' 31 | API_FIELD_SETUP_TYPE_VERSION = 'setupTypeVersion' 32 | API_FIELD_STATIC = 'static' 33 | API_FIELD_DEFAULT_EXTRACTOR = 'defaultExtractor' 34 | API_FIELD_SCHEMA_DESCRIPTION = 'schemaDescription' 35 | API_FIELD_STATUS = 'status' 36 | API_FIELD_TEMPLATE_ID = 'templateId' 37 | API_FIELD_TYPE = 'type' 38 | API_FIELD_VALUE = 'value' 39 | API_FIELD_DATA_FOR_RETRAINING = 'dataForRetraining' 40 | 41 | API_REQUEST_FIELD_CLIENT_START_WITH = 'clientIdStartsWith' 42 | API_REQUEST_FIELD_EXTRACTED_FIELDS = 'extraction' 43 | API_REQUEST_FIELD_FILE = 'file' 44 | API_REQUEST_FIELD_LIMIT = 'limit' 45 | API_REQUEST_FIELD_OFFSET = 'offset' 46 | API_REQUEST_FIELD_OPTIONS = 'options' 47 | API_REQUEST_FIELD_ORDER = 'order' 48 | API_REQUEST_FIELD_PAYLOAD = 'payload' 49 | API_REQUEST_FIELD_RECEIVED_DATE = 'receivedDate' 50 | 51 | API_REQUEST_FIELD_ENRICHMENT_COMPANYCODE = 'companyCode' 52 | API_REQUEST_FIELD_ENRICHMENT_ID = 'id' 53 | API_REQUEST_FIELD_ENRICHMENT_SUBTYPE = 'subtype' 54 | API_REQUEST_FIELD_ENRICHMENT_SYSTEM = 'system' 55 | API_REQUEST_FIELD_ENRICHMENT_TYPE = 'type' 56 | 57 | API_HEADER_ACCEPT = 'accept' 58 | 59 | CONTENT_TYPE_JPEG = 'image/jpeg' 60 | CONTENT_TYPE_PDF = 'application/pdf' 61 | CONTENT_TYPE_PNG = 'image/png' 62 | CONTENT_TYPE_TIFF = 'image/tiff' 63 | CONTENT_TYPE_UNKNOWN = 'unknown' 64 | DATA_TYPE_BUSINESS_ENTITY = "businessEntity" 65 | DOCUMENT_TYPE_ADVICE = 'paymentAdvice' 66 | FILE_TYPE_EXCEL = 'Excel' 67 | 68 | MODEL_TYPE_DEFAULT = 'defaultWorkflow' 69 | MODEL_TYPE_LLM = 'llmWorkflow' 70 | MODEL_TYPE_TEMPLATE = 'templateWorkflow' 71 | 72 | SCHEMAS_ENDPOINT = '/schemas' 73 | SCHEMAS_UPDATE_ENDPOINT = SCHEMAS_ENDPOINT + '/{schemaId}' 74 | SCHEMAS_CAPABILITIES = SCHEMAS_ENDPOINT + '/capabilities' 75 | SCHEMAS_VERSIONS_ENDPOINT = SCHEMAS_UPDATE_ENDPOINT + '/versions' 76 | SCHEMAS_VERSION_UUID_ENDPOINT = SCHEMAS_VERSIONS_ENDPOINT + '/{versionId}' 77 | SCHEMAS_VERSION_FIELDS_ENDPOINT = SCHEMAS_VERSION_UUID_ENDPOINT + '/fields' 78 | SCHEMAS_VERSION_ACTIVATE_ENDPOINT = SCHEMAS_VERSION_UUID_ENDPOINT + '/activate' 79 | SCHEMAS_VERSION_DEACTIVATE_ENDPOINT = SCHEMAS_VERSION_UUID_ENDPOINT + '/deactivate' 80 | 81 | SETUP_TYPE_VERSION_1 = '1.0.0' 82 | SETUP_TYPE_VERSION_2 = '2.0.0' 83 | SETUP_TYPE_AUTO = 'auto' 84 | SETUP_TYPE_MANUAL = 'manual' 85 | SETUP_TYPE_PRIORITY = 1 86 | 87 | SUPPORTED_MODEL_TYPES = [ 88 | MODEL_TYPE_DEFAULT, 89 | MODEL_TYPE_LLM, 90 | MODEL_TYPE_TEMPLATE 91 | ] 92 | -------------------------------------------------------------------------------- /examples/document_information_extraction_examples/utils.py: -------------------------------------------------------------------------------- 1 | import io 2 | from IPython.display import display, IFrame 3 | from fpdf import FPDF 4 | from PyPDF2 import PdfFileReader, PdfFileWriter 5 | 6 | 7 | font_size = 10 8 | max_text_width = 150 9 | extraction_box_color = (102, 255, 178) 10 | extracted_values_color = (165, 42, 42) 11 | 12 | 13 | def create_overlay(extraction_result, document_path, output_path): 14 | input_pdf = PdfFileReader(document_path) 15 | output_pdf = PdfFileWriter() 16 | 17 | pdf = FPDF(unit='pt') 18 | pdf.set_font('Helvetica') 19 | pdf.set_font_size(font_size) 20 | pdf.set_margins(0, 0) 21 | pdf.set_line_width(1) 22 | 23 | for n in range(len(input_pdf.pages)): 24 | input_page = input_pdf.getPage(n) 25 | width = float(input_page.mediaBox.getWidth()) 26 | height = float(input_page.mediaBox.getHeight()) 27 | pdf.add_page(format=(width, height)) 28 | 29 | # add legend 30 | pdf.set_fill_color(*extraction_box_color) 31 | pdf.rect(0.8 * width, 5, 10, 5, style='F') 32 | pdf.set_xy(0.8 * width + 10, 7) 33 | pdf.cell(0, txt='Extraction area', ln=1) 34 | 35 | pdf.set_fill_color(*extracted_values_color) 36 | pdf.rect(0.8 * width, 15, 10, 5, style='F') 37 | pdf.set_xy(0.8 * width + 10, 18) 38 | pdf.cell(0, txt='Extracted values') 39 | 40 | for hf in (hf for hf in extraction_result['extraction']['headerFields'] if hf['page'] == n + 1): 41 | x = hf['coordinates']['x'] 42 | y = hf['coordinates']['y'] 43 | w = hf['coordinates']['w'] 44 | h = hf['coordinates']['h'] 45 | # draw box around the area of the prediction 46 | pdf.set_draw_color(*extraction_box_color) 47 | pdf.rect(x * width, y * height, w * width, h * height) 48 | 49 | # draw the extracted value 50 | pdf.set_draw_color(*extracted_values_color) 51 | pdf.set_xy((x + w) * width + 2, y * height) 52 | pdf.multi_cell(min(pdf.get_string_width(str(hf['value'])) + 6, max_text_width), h=font_size, 53 | txt=str(hf['value']), border=1) 54 | 55 | for li in (li for line in extraction_result['extraction']['lineItems'] for li in line if li['page'] == n + 1): 56 | x = li['coordinates']['x'] 57 | y = li['coordinates']['y'] 58 | w = li['coordinates']['w'] 59 | h = li['coordinates']['h'] 60 | # draw box around the area of the prediction 61 | pdf.set_draw_color(*extraction_box_color) 62 | pdf.rect(x * width, y * height, w * width, h * height) 63 | 64 | # draw the extracted value 65 | pdf.set_draw_color(*extracted_values_color) 66 | pdf.set_xy((x + w) * width, y * height) 67 | pdf.multi_cell(min(pdf.get_string_width(str(li['value'])) + 6, max_text_width), h=font_size, 68 | txt=str(li['value']), border=1) 69 | 70 | overlay = PdfFileReader(io.BytesIO(pdf.output())) 71 | 72 | for n in range(len(input_pdf.pages)): 73 | page = input_pdf.getPage(n) 74 | page.mergePage(overlay.getPage(n)) 75 | output_pdf.addPage(page) 76 | 77 | with open(output_path, 'wb') as out: 78 | output_pdf.write(out) 79 | 80 | 81 | def display_extraction(extraction_result, input_document): 82 | output_path = f"extraction_{extraction_result['id']}.pdf" 83 | create_overlay(extraction_result, input_document, output_path) 84 | display(IFrame(output_path, 700, 1000)) 85 | 86 | 87 | def display_capabilities(capabilities): 88 | document_types = capabilities['documentTypes'] 89 | print('Available document types:', document_types) 90 | print('Available extraction fields:') 91 | for document_type in document_types: 92 | print(f"for '{document_type}':") 93 | print('\tHeader fields:') 94 | [print('\t\t', hf['name']) for hf in capabilities['extraction']['headerFields'] if 95 | (document_type in hf['supportedDocumentTypes'])] 96 | print('\tLine item fields:') 97 | [print('\t\t', li['name']) for li in capabilities['extraction']['lineItemFields'] if 98 | (document_type in li['supportedDocumentTypes'])] 99 | -------------------------------------------------------------------------------- /examples/document_information_extraction_examples/gt-sample-invoice-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "status": "DONE", 3 | "fileName": "sample-invoice-1.pdf", 4 | "documentType": "invoice", 5 | "country": "XX", 6 | "extraction": {"headerFields": [{"name": "purchaseOrderNumber", 7 | "category": "details", 8 | "value": "12345", 9 | "type": "string", 10 | "confidence": 0.0, 11 | "page": 1, 12 | "coordinates": {"x": 0.7608870967741935, 13 | "y": 0.1556442417331813, 14 | "w": 0.03911290322580652, 15 | "h": 0.00798175598631698}}, 16 | {"name": "documentNumber", 17 | "category": "document", 18 | "value": "INV-3337", 19 | "type": "string", 20 | "confidence": 0.6551104798203423, 21 | "page": 1, 22 | "coordinates": {"x": 0.760483870967742, 23 | "y": 0.13683010262257697, 24 | "w": 0.06129032258064515, 25 | "h": 0.00798175598631698}}, 26 | {"name": "senderAddress", 27 | "category": "sender", 28 | "value": "Suite 5A-1204 123 Somewhere Street Your City AZ 12345", 29 | "type": "string", 30 | "confidence": 0.6032640819064946, 31 | "page": 1, 32 | "coordinates": {"x": 0.0717741935483871, 33 | "y": 0.17303306727480045, 34 | "w": 0.15161290322580645, 35 | "h": 0.040193842645382005}}, 36 | {"name": "taxAmount", 37 | "category": "amounts", 38 | "value": 8.5, 39 | "type": "number", 40 | "confidence": 0.9995843887329101, 41 | "page": 1, 42 | "coordinates": {"x": 0.8782258033752441, 43 | "y": 0.48175597190856934, 44 | "w": 0.03629034757614136, 45 | "h": 0.00855189561843872}, 46 | "group": 1}, 47 | {"name": "receiverName", 48 | "category": "receiver", 49 | "value": "Test Business", 50 | "type": "string", 51 | "confidence": 0.6075601039661301, 52 | "page": 1, 53 | "coordinates": {"x": 0.0717741935483871, 54 | "y": 0.28848346636259975, 55 | "w": 0.09233870967741936, 56 | "h": 0.008266818700114031}}, 57 | {"name": "senderName", 58 | "category": "sender", 59 | "value": "Sliced Invoices", 60 | "type": "string", 61 | "confidence": 0.6224916175920137, 62 | "page": 1, 63 | "coordinates": {"x": 0.07661290322580645, 64 | "y": 0.03164196123147092, 65 | "w": 0.056854838709677405, 66 | "h": 0.023375142531356898}}, 67 | {"name": "receiverAddress", 68 | "category": "receiver", 69 | "value": "123 Somewhere St Melbourne, VIC 3000", 70 | "type": "string", 71 | "confidence": 0.5818392277066143, 72 | "page": 1, 73 | "coordinates": {"x": 0.07298387096774193, 74 | "y": 0.30359179019384264, 75 | "w": 0.1379032258064516, 76 | "h": 0.02508551881413912}}, 77 | {"name": "currencyCode", 78 | "category": "amounts", 79 | "value": "USD", 80 | "type": "string", 81 | "confidence": 0.9298668503761292, 82 | "page": 1, 83 | "coordinates": {"x": 0.0, "y": 0.0, "w": 0.0, "h": 0.0}}, 84 | {"name": "grossAmount", 85 | "category": "amounts", 86 | "value": 93.5, 87 | "type": "number", 88 | "confidence": 0.6538015315026948, 89 | "page": 1, 90 | "coordinates": {"x": 0.8701612903225806, 91 | "y": 0.500285062713797, 92 | "w": 0.04475806451612907, 93 | "h": 0.009122006841505104}}, 94 | {"name": "netAmount", 95 | "category": "amounts", 96 | "value": 85.0, 97 | "type": "number", 98 | "confidence": 0.6312324016593224, 99 | "page": 1, 100 | "coordinates": {"x": 0.869758064516129, 101 | "y": 0.46265678449258835, 102 | "w": 0.04516129032258065, 103 | "h": 0.00912200684150516}}, 104 | {"name": "documentDate", 105 | "category": "document", 106 | "value": "2016-01-25", 107 | "type": "date", 108 | "confidence": 0.9860316775739193, 109 | "page": 1, 110 | "coordinates": {"x": 0.7592741935483871, 111 | "y": 0.1741733181299886, 112 | "w": 0.11411290322580647, 113 | "h": 0.009977194982896231}}], 114 | "lineItems": [[{"name": "description", 115 | "category": "details", 116 | "value": "Web Design This is a sample description...", 117 | "type": "string", 118 | "confidence": 0.6160261264089723, 119 | "page": 1, 120 | "coordinates": {"x": 0.1717741935483871, 121 | "y": 0.41391106043329534, 122 | "w": 0.17500000000000002, 123 | "h": 0.021664766248574663}}, 124 | {"name": "quantity", 125 | "category": "details", 126 | "value": 1.0, 127 | "type": "number", 128 | "confidence": 0.6379234137989226, 129 | "page": 1, 130 | "coordinates": {"x": 0.10241935483870968, 131 | "y": 0.4201824401368301, 132 | "w": 0.027419354838709692, 133 | "h": 0.008266818700114031}}, 134 | {"name": "netAmount", 135 | "category": "amounts", 136 | "value": 85.0, 137 | "type": "number", 138 | "confidence": 0.627464290821191, 139 | "page": 1, 140 | "coordinates": {"x": 0.869758064516129, 141 | "y": 0.41961231470923605, 142 | "w": 0.04516129032258065, 143 | "h": 0.009122006841505104}}, 144 | {"name": "unitPrice", 145 | "category": "details", 146 | "value": 85.0, 147 | "type": "number", 148 | "confidence": 0.6370165799603318, 149 | "page": 1, 150 | "coordinates": {"x": 0.6100806451612903, 151 | "y": 0.41961231470923605, 152 | "w": 0.04475806451612896, 153 | "h": 0.009122006841505104}}]]}, 154 | "fileType": "pdf" 155 | } 156 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 6 | 7 | # Python Client Library for the SAP AI Business Services: Document Classification and Document Information Extraction 8 | 9 | [![REUSE status](https://api.reuse.software/badge/github.com/SAP/business-document-processing)](https://api.reuse.software/info/github.com/SAP/business-document-processing) 10 | 11 | This repository contains the [source code](https://github.com/SAP/business-document-processing/tree/main/sap_business_document_processing) of a Python client library to facilitate the use of the SAP AI Business Services: [Document Classification](https://help.sap.com/dc) and [Document Information Extraction](https://help.sap.com/dox). The client library provides two API Client classes that contain convenient methods to access these services and issue calls to the [Document Classification REST API](https://help.sap.com/viewer/ca60cd2ed44f4261a3ae500234c46f37/SHIP/en-US/c1045a561faf4ba0ae2b0e7713f5e6c4.html) and [Document Information Extraction REST API](https://help.sap.com/viewer/5fa7265b9ff64d73bac7cec61ee55ae6/SHIP/en-US/ded7d34e60f1422ba2e04e892a7f0e25.html) respectively. To use the library you need to [have access to SAP Business Technology Platform](https://www.sap.com/products/cloud-platform/get-started.html). 12 | 13 | Check out the [**usage examples**](https://github.com/SAP/business-document-processing/tree/main/examples), they are very useful to get started with the services. 14 | 15 | Have a look at [**API documentation**](https://github.com/SAP/business-document-processing/blob/main/API.md) in order to use the library. 16 | 17 | ### Notes for users of the sap-document-classification-client library 18 | This library includes all the capabilities of the sap-document-classification-client, which will not be developed further. However, the code is still available [here](https://github.com/SAP/business-document-processing/tree/master). 19 | If you want to switch to this library, you have to be aware of the following changes: 20 | 21 | * The DCApiClient can now be imported directly from the top module via: ```from sap_business_document_processing import DCApiClient``` 22 | * The functions ```classifiy_documents```, ```upload_documents_to_dataset```, ```upload_documents_directory_to_dataset``` now return an iterator instead of a list. You can either analyze individual results using with ```result = next(iterator)``` within a try-catch block (e.g. to handle each failed document) or use ```results = list(iterator)``` to turn it to a list. The latter will raise an error if at least one document failed. 23 | * The function ```get_datasets_info``` now returns a list which is the "dataset" part of the API response json. (You just need to delete the \["dataset"\] from the response to work with it as until now) 24 | * The function ```get_classification_documents_info``` now returns a list which is the "results" part of the API response json. 25 | * The function ```get_training_models_info``` now returns a list which is the "models" part of the API response json. 26 | * The function ```get_deployed_models_info``` now returns a list which is the "deployments" part of the API response json. 27 | * The library now raises the following custom exceptions: 28 | - **BDPApiException**: Base exception for all exceptions of this library. Raise when no other exception is applicable. 29 | - **BDPClientException**: Raised when an HTTP response with status code between 400 and 500 is returned. Usually means incorrect user input. (Replaces some HTTPErrors) 30 | - **BDPServerException**: Raised when an HTTP response with status code between 500 and 600 is returned. Usually means that the server had some internal error. (Replaces some HTTPErrors) 31 | - **BDPUnauthorizedException**: Raised when an HTTP response with status code 401 is returned. Usually means that a wrong OAuth credentials were provided. 32 | - **BDPFailedAsynchronousOperationException**: Raised when an asynchronous job failed during processing. (Replaces FailedCallException) 33 | - **BDPPollingTimeoutException**: Raised when an asynchronous job exceeds the set polling_max_attempts. (Replaces PollingTimeoutException) 34 | * The function ```_poll_for_url``` now doesn`t expect an 'url' and 'payload' parameters, but 'path' and 'json' parameters instead. 35 | 36 | 37 | ## Requirements 38 | 39 | This library requires properly setup [Python](https://www.python.org/downloads/) 3.6 (or higher version) environment. 40 | 41 | ## Download and Installation 42 | 43 | This Python library should be consumed in the standard way by running 44 | 45 | ```pip install sap-business-document-processing``` 46 | 47 | or adding the library as a dependency of your code in `requirements.txt` file. 48 | 49 | ## Demo usage 50 | 51 | Prerequisites: 52 | * [Get a Free Account on SAP BTP Trial](https://developers.sap.com/tutorials/hcp-create-trial-account.html) 53 | * [Create Service Instance for Document Classification with Trial Account](https://developers.sap.com/tutorials/cp-aibus-dc-service-instance.html) 54 | * [Create Service Instance for Document Information Extraction](https://developers.sap.com/tutorials/cp-aibus-dox-service-instance.html) 55 | 56 | #### Document Classification 57 | 58 | To try out the Document classification service using the document classification client 59 | library you can also run the two demo links below: 60 | * Try out classification using default model [demo](https://mybinder.org/v2/gh/SAP/business-document-processing/main?filepath=examples%2Fdocument_classification_examples%2Fclassification_default_model.ipynb) 61 | * Try out training and classification using custom model [demo](https://mybinder.org/v2/gh/SAP/business-document-processing/main?filepath=examples%2Fdocument_classification_examples%2Ftrain_and_evaluate_custom_model.ipynb) (requires an enterprise account, trial account is **not** sufficient) 62 | 63 | #### Document Information Extraction 64 | 65 | Try out the Document Information Extraction service with this [showcase](https://mybinder.org/v2/gh/SAP/business-document-processing/main?filepath=examples%2Fdocument_information_extraction_examples%2Finformation_extraction_showcase.ipynb) 66 | 67 | - [Exercises](https://github.com/SAP/business-document-processing/tree/main/doc_inf_ext_exercises) 68 | - [Exercise 1 - Set up Document Information Extraction Service and UI](https://github.com/SAP/business-document-processing/tree/main/doc_inf_ext_exercises#exercise-1---set-up-document-information-extraction-service-and-ui) 69 | - [Exercise 2 - Upload a document for extraction using UI application](https://github.com/SAP/business-document-processing/tree/main/doc_inf_ext_exercises#exercise-2---upload-documents-for-extraction-using-ui-application) 70 | - [Exercise 3 - Visualize, correct extraction results and confirm document using UI application](https://github.com/SAP/business-document-processing/tree/main/doc_inf_ext_exercises#exercise-3---visualize-correct-extraction-results-and-confirm-document-using-ui-application) 71 | - [Exercise 4 - Get Auth token to use Document Information Extraction Rest API](https://github.com/SAP/business-document-processing/tree/main/doc_inf_ext_exercises#exercise-4---get-auth-token-to-use-document-information-extraction-rest-api) 72 | - [Exercise 5 - Get extraction results of document using Rest API](https://github.com/SAP/business-document-processing/tree/main/doc_inf_ext_exercises#exercise-5---get-extraction-results-of-document-using-rest-api) 73 | - [Exercise 6 - Upload supplier Data for matching](https://github.com/SAP/business-document-processing/tree/main/doc_inf_ext_exercises#exercise-6---upload-supplier-data-for-matching) 74 | - [Exercise 7 - Upload document through Rest API to enrich the extraction Results with supplier data](https://github.com/SAP/business-document-processing/tree/main/doc_inf_ext_exercises#exercise-7---upload-document-through-rest-api-to-enrich-the-extraction-results-with-supplier-data) 75 | 76 | ## Known Issues 77 | 78 | Please see the [issues section](https://github.com/SAP/business-document-processing/issues). 79 | 80 | ## How to obtain support 81 | 82 | In case you would like to contribute to this project, ask any questions or get support, please open an issue containing the description of your question or planned contribution in GitHub and we will get in touch. 83 | 84 | ## Licensing 85 | 86 | Please see our [LICENSE](https://github.com/SAP/business-document-processing/blob/main/LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the [REUSE tool](https://api.reuse.software/info/github.com/SAP/business-document-processing). 87 | -------------------------------------------------------------------------------- /sap_business_document_processing/common/http_client_base.py: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | 5 | import json 6 | import logging 7 | import time 8 | from oauthlib.oauth2 import BackendApplicationClient, MissingTokenError, TokenExpiredError 9 | from requests_oauthlib import OAuth2Session 10 | 11 | from .constants import API_STATUS_FIELD, MIN_POLLING_INTERVAL, FAILED_STATUSES, SUCCEEDED_STATUSES 12 | from .exceptions import BDPApiException, BDPClientException, BDPFailedAsynchronousOperationException, \ 13 | BDPPollingTimeoutException, BDPServerException, BDPUnauthorizedException 14 | from .helpers import add_retry_to_session, make_url, make_oauth_url 15 | 16 | 17 | class CommonClient: 18 | def __init__(self, 19 | base_url, 20 | client_id, 21 | client_secret, 22 | uaa_url, 23 | polling_threads=5, 24 | polling_sleep=5, 25 | polling_long_sleep=30, 26 | polling_max_attempts=120, 27 | url_path_prefix='', 28 | logger_name='CommonClient', 29 | logging_level=logging.WARNING): 30 | self.common_logger = logging.getLogger('CommonClient') 31 | self.common_logger.setLevel(logging_level) 32 | self.logger = logging.getLogger(logger_name) 33 | self.logger.setLevel(logging_level) 34 | if polling_sleep < MIN_POLLING_INTERVAL: 35 | self.logger.warning('The polling interval of {} is too small, the number was set to minimal ' 36 | 'allowed amount of {}'.format(polling_sleep, MIN_POLLING_INTERVAL)) 37 | polling_sleep = MIN_POLLING_INTERVAL 38 | if polling_long_sleep < MIN_POLLING_INTERVAL: 39 | self.logger.warning('The polling interval for long operations of {} is too small, the number was set to ' 40 | 'minimal allowed amount of {}'.format(polling_long_sleep, MIN_POLLING_INTERVAL)) 41 | polling_long_sleep = MIN_POLLING_INTERVAL 42 | self.base_url = make_url(base_url, url_path_prefix) 43 | self.polling_max_attempts = polling_max_attempts 44 | self.polling_sleep = polling_sleep 45 | self.polling_long_sleep = polling_long_sleep 46 | self.polling_threads = polling_threads 47 | self.client_id = client_id 48 | self.client_secret = client_secret 49 | self.uaa_url = uaa_url 50 | self._session = None 51 | 52 | @property 53 | def session(self): 54 | if self._session is None: 55 | self._session = self._get_oauth_session() 56 | return self._session 57 | 58 | def _get_oauth_session(self): 59 | if not (self.uaa_url and self.client_id and self.client_secret): 60 | raise BDPClientException('Authentication is missing') 61 | client = BackendApplicationClient(self.client_id) 62 | session = OAuth2Session(client=client) 63 | add_retry_to_session(session, pool_maxsize=self.polling_threads) 64 | return self._fetch_session_token(session) 65 | 66 | def _fetch_session_token(self, session): 67 | tries, i = 2, 0 68 | for i in range(tries): 69 | try: 70 | session.fetch_token(token_url=make_oauth_url(self.uaa_url), client_id=self.client_id, 71 | client_secret=self.client_secret) 72 | return session 73 | except MissingTokenError as e: 74 | if i < tries - 1: 75 | time.sleep(5) 76 | continue 77 | else: 78 | raise BDPApiException(f'Unable to fetch the Bearer Token after {tries} tries') from e 79 | 80 | def _poll_for_url(self, 81 | path, 82 | check_json_status=True, 83 | success_status=200, 84 | wait_status=None, 85 | sleep_interval=None, 86 | get_status=lambda r: r[API_STATUS_FIELD], 87 | log_msg_before=None, 88 | log_msg_after=None, 89 | **kwargs): 90 | if not sleep_interval: 91 | sleep_interval = self.polling_sleep 92 | 93 | if log_msg_before is not None: 94 | self.logger.debug(log_msg_before) 95 | 96 | response = None 97 | for _ in range(self.polling_max_attempts): 98 | response = self.get(path, validate=False, **kwargs) 99 | if (wait_status is not None) and response.status_code == wait_status: 100 | time.sleep(sleep_interval) 101 | elif response.status_code == success_status: 102 | if check_json_status: 103 | response_status = get_status(response.json()) 104 | if response_status in SUCCEEDED_STATUSES: 105 | if log_msg_after is not None: 106 | self.logger.info(log_msg_after) 107 | return response 108 | elif response_status in FAILED_STATUSES: 109 | raise BDPFailedAsynchronousOperationException("Asynchronous job with URL '{}' failed".format( 110 | self.path_to_url(path)), response=response) 111 | else: 112 | time.sleep(sleep_interval) 113 | else: 114 | if log_msg_after is not None: 115 | self.logger.info(log_msg_after) 116 | return response 117 | else: 118 | self.raise_for_status_with_logging(response) 119 | raise BDPPollingTimeoutException("Polling for URL '{}' timed out after {} seconds".format( 120 | self.path_to_url(path), sleep_interval * self.polling_max_attempts), response=response) 121 | 122 | def path_to_url(self, path): 123 | return make_url(self.base_url, path) 124 | 125 | def _request(self, request_func, path: str, validate: bool, log_msg_before=None, log_msg_after=None, **kwargs): 126 | if log_msg_before is not None: 127 | self.logger.debug(log_msg_before) 128 | try: 129 | response = request_func(self.path_to_url(path), **kwargs) 130 | except TokenExpiredError: 131 | self.logger.warning("OAuth token expired, fetching new token") 132 | self._fetch_session_token(self.session) 133 | response = request_func(self.path_to_url(path), **kwargs) 134 | 135 | if validate: 136 | self.raise_for_status_with_logging(response) 137 | if log_msg_after is not None: 138 | self.logger.info(log_msg_after) 139 | return response 140 | 141 | def get(self, path: str, validate=True, **kwargs): 142 | return self._request(self.session.get, path, validate, **kwargs) 143 | 144 | def post(self, path: str, validate=True, **kwargs): 145 | return self._request(self.session.post, path, validate, **kwargs) 146 | 147 | def delete(self, path: str, validate=True, **kwargs): 148 | return self._request(self.session.delete, path, validate, **kwargs) 149 | 150 | def put(self, path: str, validate=True, **kwargs): 151 | return self._request(self.session.put, path, validate, **kwargs) 152 | 153 | def raise_for_status_with_logging(self, response): 154 | e = None 155 | if response.status_code == 401: 156 | e = BDPUnauthorizedException('Missing authorization for this service', response, status_code=401) 157 | elif 400 <= response.status_code < 500: 158 | try: 159 | msg = str(response.json()) 160 | except json.JSONDecodeError: 161 | msg = response.text 162 | e = BDPClientException(msg, response=response, status_code=response.status_code) 163 | elif 500 <= response.status_code < 600: 164 | e = BDPServerException(response.text, response=response, status_code=response.status_code) 165 | 166 | if e is not None: 167 | self.common_logger.warning(f'{response.request.method} request to URL {response.url} failed ' 168 | f'with body: {response.text}') 169 | raise e 170 | 171 | @staticmethod 172 | def _create_result_iterator(base_iterator): 173 | return ResultIterator(base_iterator) 174 | 175 | 176 | class ResultIterator: 177 | def __init__(self, base): 178 | self.base = iter(base) 179 | 180 | def __iter__(self): 181 | return self 182 | 183 | def __next__(self): 184 | result = next(self.base) 185 | if isinstance(result, Exception): 186 | raise result 187 | return result 188 | -------------------------------------------------------------------------------- /sap_business_document_processing/document_information_extraction_client/helpers.py: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: 2020 2019-2020 SAP SE 2 | # 3 | # SPDX-License-Identifier: Apache-2.0 4 | import mimetypes 5 | 6 | from .constants import API_FIELD_CLIENT_ID, API_FIELD_DOCUMENT_TYPE, API_FIELD_ENRICHMENT, API_FIELD_TEMPLATE_ID, \ 7 | API_FIELD_EXTRACTED_HEADER_FIELDS, API_FIELD_EXTRACTED_LINE_ITEM_FIELDS, API_FIELD_SCHEMA_ID, \ 8 | API_REQUEST_FIELD_EXTRACTED_FIELDS, API_FIELD_FILE_TYPE, API_REQUEST_FIELD_RECEIVED_DATE, API_FIELD_NAME, \ 9 | API_FIELD_DESCRIPTION, API_FIELD_LABEL, API_FIELD_DEFAULT_EXTRACTOR, API_FIELD_FIELD_NAME, API_FIELD_SETUP_TYPE, \ 10 | API_FIELD_STATIC, API_FIELD_SETUP_TYPE_VERSION, API_FIELD_SETUP, API_FIELD_FORMATTING_TYPE, API_FIELD_FORMATTING, \ 11 | API_FIELD_FORMATTING_TYPE_VERSION, MODEL_TYPE_DEFAULT, SETUP_TYPE_VERSION_1, \ 12 | SETUP_TYPE_VERSION_2, API_FIELD_TYPE, API_FIELD_PRIORITY, SETUP_TYPE_AUTO, MODEL_TYPE_LLM, \ 13 | API_FIELD_DATATYPE, MODEL_TYPE_TEMPLATE, SETUP_TYPE_MANUAL, SETUP_TYPE_PRIORITY 14 | 15 | 16 | def create_document_options(client_id, document_type, header_fields=None, line_item_fields=None, template_id=None, 17 | schema_id=None, received_date=None, enrichment=None): 18 | options = { 19 | API_FIELD_CLIENT_ID: client_id, 20 | API_FIELD_DOCUMENT_TYPE: document_type, 21 | } 22 | 23 | if schema_id is not None: 24 | options[API_FIELD_SCHEMA_ID] = schema_id 25 | else: 26 | options[API_REQUEST_FIELD_EXTRACTED_FIELDS] = {} 27 | try: 28 | header_fields = _convert_string_to_list(header_fields) 29 | except TypeError: 30 | raise TypeError(f'Input variable \'header_fields\' has wrong type: {type(header_fields)}. Should be a ' 31 | f'string of comma separated values or a list of strings') 32 | options[API_REQUEST_FIELD_EXTRACTED_FIELDS][API_FIELD_EXTRACTED_HEADER_FIELDS] = header_fields 33 | 34 | try: 35 | line_item_fields = _convert_string_to_list(line_item_fields) 36 | except TypeError: 37 | raise TypeError(f'Input variable \'line_item_fields\' has wrong type: {type(line_item_fields)}. Should be ' 38 | f'a string of comma separated values or a list of strings') 39 | 40 | options[API_REQUEST_FIELD_EXTRACTED_FIELDS][API_FIELD_EXTRACTED_LINE_ITEM_FIELDS] = line_item_fields 41 | 42 | if template_id is not None: 43 | options[API_FIELD_TEMPLATE_ID] = template_id 44 | 45 | if received_date is not None: 46 | options[API_REQUEST_FIELD_RECEIVED_DATE] = received_date 47 | 48 | if enrichment is not None: 49 | options[API_FIELD_ENRICHMENT] = enrichment 50 | 51 | return options 52 | 53 | 54 | def _convert_string_to_list(parameter) -> list: 55 | if parameter is None: 56 | parameter = [] 57 | elif isinstance(parameter, str): 58 | parameter = [s.strip() for s in parameter.split(',')] 59 | elif not isinstance(parameter, list): 60 | raise TypeError 61 | return parameter 62 | 63 | 64 | def create_capability_mapping_options(document_type, file_type, header_fields=None, line_item_fields=None): 65 | options = { 66 | API_FIELD_DOCUMENT_TYPE: document_type, 67 | API_FIELD_FILE_TYPE: file_type 68 | } 69 | 70 | if header_fields is None: 71 | header_fields = [] 72 | elif isinstance(header_fields, str): 73 | header_fields = [s.strip() for s in header_fields.split(',')] 74 | elif not isinstance(header_fields, list): 75 | raise TypeError(f'Input variable \'header_fields\' has wrong type: {type(header_fields)}. Should be a string ' 76 | f'of comma separated values or a list of strings') 77 | options[API_FIELD_EXTRACTED_HEADER_FIELDS] = header_fields 78 | 79 | if line_item_fields is None: 80 | line_item_fields = [] 81 | elif isinstance(line_item_fields, str): 82 | line_item_fields = [s.strip() for s in line_item_fields.split(',')] 83 | elif not isinstance(line_item_fields, list): 84 | raise TypeError(f'Input variable \'line_item_fields\' has wrong type: {type(line_item_fields)}. Should be a ' 85 | f'string of comma separated values or a list of strings') 86 | options[API_FIELD_EXTRACTED_LINE_ITEM_FIELDS] = line_item_fields 87 | 88 | return options 89 | 90 | 91 | def get_mimetype(filename: str) -> str: 92 | return mimetypes.guess_type(filename)[0] 93 | 94 | 95 | def generate_item_payload(item, setup_type_version, setup_field_type=None, datatype=None, setup_type=API_FIELD_STATIC): 96 | if datatype is None: 97 | datatype = item[API_FIELD_DATATYPE] 98 | payload = { 99 | API_FIELD_NAME: item[API_FIELD_NAME], 100 | API_FIELD_DESCRIPTION: item[API_FIELD_DESCRIPTION], 101 | API_FIELD_LABEL: item[API_FIELD_LABEL], 102 | API_FIELD_DEFAULT_EXTRACTOR: { 103 | API_FIELD_FIELD_NAME: item[API_FIELD_NAME] 104 | }, 105 | API_FIELD_SETUP_TYPE: setup_type, 106 | API_FIELD_SETUP_TYPE_VERSION: setup_type_version, 107 | API_FIELD_SETUP: { 108 | API_FIELD_TYPE: setup_field_type, 109 | API_FIELD_PRIORITY: SETUP_TYPE_PRIORITY 110 | }, 111 | API_FIELD_FORMATTING_TYPE: datatype, 112 | API_FIELD_FORMATTING: {}, 113 | API_FIELD_FORMATTING_TYPE_VERSION: "1.0.0" 114 | } 115 | return payload 116 | 117 | 118 | def create_list_for_header_and_line_items(items, extracted_items): 119 | name_to_type_list = {} 120 | for item in items: 121 | field_name = item[API_FIELD_NAME] 122 | name_to_type_list[field_name] = next( 123 | (field.get(API_FIELD_TYPE) for field in extracted_items if field.get(API_FIELD_NAME) == field_name), 124 | None) 125 | if name_to_type_list[field_name] is None: 126 | raise ValueError(f'fieldName not found in defaultExtractor values. Please provide valid fieldName from ' 127 | '/capabilities API.') 128 | return name_to_type_list 129 | 130 | 131 | def create_payload_for_schema_fields(model_type, setup_type_version, header_fields, line_fields, capabilities=None): 132 | header_items, line_items = [], [] 133 | 134 | if model_type == MODEL_TYPE_DEFAULT: 135 | header_name_to_type, line_name_to_type = {}, {} 136 | 137 | extracted_header_fields = capabilities.get(API_REQUEST_FIELD_EXTRACTED_FIELDS, {}) \ 138 | .get(API_FIELD_EXTRACTED_HEADER_FIELDS, []) 139 | extracted_line_item_fields = capabilities.get(API_REQUEST_FIELD_EXTRACTED_FIELDS, {}) \ 140 | .get(API_FIELD_EXTRACTED_LINE_ITEM_FIELDS, []) 141 | 142 | header_name_to_type = create_list_for_header_and_line_items(header_fields, extracted_header_fields) 143 | line_name_to_type = create_list_for_header_and_line_items(line_fields, extracted_line_item_fields) 144 | 145 | if setup_type_version == SETUP_TYPE_VERSION_1: 146 | """ FOR DEFAULT MODEL 1.0.0 """ 147 | for item in header_fields: 148 | item_payload = generate_item_payload(item, SETUP_TYPE_VERSION_1, 149 | datatype=header_name_to_type.get(item[API_FIELD_NAME])) 150 | header_items.append(item_payload) 151 | for item in line_fields: 152 | item_payload = generate_item_payload(item, SETUP_TYPE_VERSION_1, 153 | datatype=line_name_to_type.get(item[API_FIELD_NAME])) 154 | line_items.append(item_payload) 155 | 156 | elif setup_type_version == SETUP_TYPE_VERSION_2: 157 | """ FOR DEFAULT MODEL 2.0.0 """ 158 | for item in header_fields: 159 | item_payload = generate_item_payload(item, SETUP_TYPE_VERSION_2, SETUP_TYPE_AUTO, 160 | datatype=header_name_to_type.get(item[API_FIELD_NAME])) 161 | header_items.append(item_payload) 162 | for item in line_fields: 163 | item_payload = generate_item_payload(item, SETUP_TYPE_VERSION_2, SETUP_TYPE_AUTO, 164 | datatype=line_name_to_type.get(item[API_FIELD_NAME])) 165 | line_items.append(item_payload) 166 | 167 | elif model_type in [MODEL_TYPE_LLM, MODEL_TYPE_TEMPLATE]: 168 | if model_type == MODEL_TYPE_LLM: 169 | """ FOR LLM MODEL """ 170 | setup_type = SETUP_TYPE_AUTO 171 | else: 172 | """ FOR TEMPLATE MODEL """ 173 | setup_type = SETUP_TYPE_MANUAL 174 | for item in header_fields: 175 | item_payload = generate_item_payload(item, SETUP_TYPE_VERSION_2, setup_type) 176 | item_payload[API_FIELD_DEFAULT_EXTRACTOR] = {} 177 | header_items.append(item_payload) 178 | for item in line_fields: 179 | item_payload = generate_item_payload(item, SETUP_TYPE_VERSION_2, setup_type) 180 | item_payload[API_FIELD_DEFAULT_EXTRACTOR] = {} 181 | line_items.append(item_payload) 182 | 183 | return header_items, line_items 184 | -------------------------------------------------------------------------------- /LICENSES/Apache-2.0.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | 3 | Version 2.0, January 2004 4 | 5 | http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, 6 | AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | 11 | 12 | "License" shall mean the terms and conditions for use, reproduction, and distribution 13 | as defined by Sections 1 through 9 of this document. 14 | 15 | 16 | 17 | "Licensor" shall mean the copyright owner or entity authorized by the copyright 18 | owner that is granting the License. 19 | 20 | 21 | 22 | "Legal Entity" shall mean the union of the acting entity and all other entities 23 | that control, are controlled by, or are under common control with that entity. 24 | For the purposes of this definition, "control" means (i) the power, direct 25 | or indirect, to cause the direction or management of such entity, whether 26 | by contract or otherwise, or (ii) ownership of fifty percent (50%) or more 27 | of the outstanding shares, or (iii) beneficial ownership of such entity. 28 | 29 | 30 | 31 | "You" (or "Your") shall mean an individual or Legal Entity exercising permissions 32 | granted by this License. 33 | 34 | 35 | 36 | "Source" form shall mean the preferred form for making modifications, including 37 | but not limited to software source code, documentation source, and configuration 38 | files. 39 | 40 | 41 | 42 | "Object" form shall mean any form resulting from mechanical transformation 43 | or translation of a Source form, including but not limited to compiled object 44 | code, generated documentation, and conversions to other media types. 45 | 46 | 47 | 48 | "Work" shall mean the work of authorship, whether in Source or Object form, 49 | made available under the License, as indicated by a copyright notice that 50 | is included in or attached to the work (an example is provided in the Appendix 51 | below). 52 | 53 | 54 | 55 | "Derivative Works" shall mean any work, whether in Source or Object form, 56 | that is based on (or derived from) the Work and for which the editorial revisions, 57 | annotations, elaborations, or other modifications represent, as a whole, an 58 | original work of authorship. For the purposes of this License, Derivative 59 | Works shall not include works that remain separable from, or merely link (or 60 | bind by name) to the interfaces of, the Work and Derivative Works thereof. 61 | 62 | 63 | 64 | "Contribution" shall mean any work of authorship, including the original version 65 | of the Work and any modifications or additions to that Work or Derivative 66 | Works thereof, that is intentionally submitted to Licensor for inclusion in 67 | the Work by the copyright owner or by an individual or Legal Entity authorized 68 | to submit on behalf of the copyright owner. For the purposes of this definition, 69 | "submitted" means any form of electronic, verbal, or written communication 70 | sent to the Licensor or its representatives, including but not limited to 71 | communication on electronic mailing lists, source code control systems, and 72 | issue tracking systems that are managed by, or on behalf of, the Licensor 73 | for the purpose of discussing and improving the Work, but excluding communication 74 | that is conspicuously marked or otherwise designated in writing by the copyright 75 | owner as "Not a Contribution." 76 | 77 | 78 | 79 | "Contributor" shall mean Licensor and any individual or Legal Entity on behalf 80 | of whom a Contribution has been received by Licensor and subsequently incorporated 81 | within the Work. 82 | 83 | 2. Grant of Copyright License. Subject to the terms and conditions of this 84 | License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, 85 | no-charge, royalty-free, irrevocable copyright license to reproduce, prepare 86 | Derivative Works of, publicly display, publicly perform, sublicense, and distribute 87 | the Work and such Derivative Works in Source or Object form. 88 | 89 | 3. Grant of Patent License. Subject to the terms and conditions of this License, 90 | each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, 91 | no-charge, royalty-free, irrevocable (except as stated in this section) patent 92 | license to make, have made, use, offer to sell, sell, import, and otherwise 93 | transfer the Work, where such license applies only to those patent claims 94 | licensable by such Contributor that are necessarily infringed by their Contribution(s) 95 | alone or by combination of their Contribution(s) with the Work to which such 96 | Contribution(s) was submitted. If You institute patent litigation against 97 | any entity (including a cross-claim or counterclaim in a lawsuit) alleging 98 | that the Work or a Contribution incorporated within the Work constitutes direct 99 | or contributory patent infringement, then any patent licenses granted to You 100 | under this License for that Work shall terminate as of the date such litigation 101 | is filed. 102 | 103 | 4. Redistribution. You may reproduce and distribute copies of the Work or 104 | Derivative Works thereof in any medium, with or without modifications, and 105 | in Source or Object form, provided that You meet the following conditions: 106 | 107 | (a) You must give any other recipients of the Work or Derivative Works a copy 108 | of this License; and 109 | 110 | (b) You must cause any modified files to carry prominent notices stating that 111 | You changed the files; and 112 | 113 | (c) You must retain, in the Source form of any Derivative Works that You distribute, 114 | all copyright, patent, trademark, and attribution notices from the Source 115 | form of the Work, excluding those notices that do not pertain to any part 116 | of the Derivative Works; and 117 | 118 | (d) If the Work includes a "NOTICE" text file as part of its distribution, 119 | then any Derivative Works that You distribute must include a readable copy 120 | of the attribution notices contained within such NOTICE file, excluding those 121 | notices that do not pertain to any part of the Derivative Works, in at least 122 | one of the following places: within a NOTICE text file distributed as part 123 | of the Derivative Works; within the Source form or documentation, if provided 124 | along with the Derivative Works; or, within a display generated by the Derivative 125 | Works, if and wherever such third-party notices normally appear. The contents 126 | of the NOTICE file are for informational purposes only and do not modify the 127 | License. You may add Your own attribution notices within Derivative Works 128 | that You distribute, alongside or as an addendum to the NOTICE text from the 129 | Work, provided that such additional attribution notices cannot be construed 130 | as modifying the License. 131 | 132 | You may add Your own copyright statement to Your modifications and may provide 133 | additional or different license terms and conditions for use, reproduction, 134 | or distribution of Your modifications, or for any such Derivative Works as 135 | a whole, provided Your use, reproduction, and distribution of the Work otherwise 136 | complies with the conditions stated in this License. 137 | 138 | 5. Submission of Contributions. Unless You explicitly state otherwise, any 139 | Contribution intentionally submitted for inclusion in the Work by You to the 140 | Licensor shall be under the terms and conditions of this License, without 141 | any additional terms or conditions. Notwithstanding the above, nothing herein 142 | shall supersede or modify the terms of any separate license agreement you 143 | may have executed with Licensor regarding such Contributions. 144 | 145 | 6. Trademarks. This License does not grant permission to use the trade names, 146 | trademarks, service marks, or product names of the Licensor, except as required 147 | for reasonable and customary use in describing the origin of the Work and 148 | reproducing the content of the NOTICE file. 149 | 150 | 7. Disclaimer of Warranty. Unless required by applicable law or agreed to 151 | in writing, Licensor provides the Work (and each Contributor provides its 152 | Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 153 | KIND, either express or implied, including, without limitation, any warranties 154 | or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR 155 | A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness 156 | of using or redistributing the Work and assume any risks associated with Your 157 | exercise of permissions under this License. 158 | 159 | 8. Limitation of Liability. In no event and under no legal theory, whether 160 | in tort (including negligence), contract, or otherwise, unless required by 161 | applicable law (such as deliberate and grossly negligent acts) or agreed to 162 | in writing, shall any Contributor be liable to You for damages, including 163 | any direct, indirect, special, incidental, or consequential damages of any 164 | character arising as a result of this License or out of the use or inability 165 | to use the Work (including but not limited to damages for loss of goodwill, 166 | work stoppage, computer failure or malfunction, or any and all other commercial 167 | damages or losses), even if such Contributor has been advised of the possibility 168 | of such damages. 169 | 170 | 9. Accepting Warranty or Additional Liability. While redistributing the Work 171 | or Derivative Works thereof, You may choose to offer, and charge a fee for, 172 | acceptance of support, warranty, indemnity, or other liability obligations 173 | and/or rights consistent with this License. However, in accepting such obligations, 174 | You may act only on Your own behalf and on Your sole responsibility, not on 175 | behalf of any other Contributor, and only if You agree to indemnify, defend, 176 | and hold each Contributor harmless for any liability incurred by, or claims 177 | asserted against, such Contributor by reason of your accepting any such warranty 178 | or additional liability. END OF TERMS AND CONDITIONS 179 | 180 | APPENDIX: How to apply the Apache License to your work. 181 | 182 | To apply the Apache License to your work, attach the following boilerplate 183 | notice, with the fields enclosed by brackets "[]" replaced with your own identifying 184 | information. (Don't include the brackets!) The text should be enclosed in 185 | the appropriate comment syntax for the file format. We also recommend that 186 | a file or class name and description of purpose be included on the same "printed 187 | page" as the copyright notice for easier identification within third-party 188 | archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | 194 | you may not use this file except in compliance with the License. 195 | 196 | You may obtain a copy of the License at 197 | 198 | http://www.apache.org/licenses/LICENSE-2.0 199 | 200 | Unless required by applicable law or agreed to in writing, software 201 | 202 | distributed under the License is distributed on an "AS IS" BASIS, 203 | 204 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 205 | 206 | See the License for the specific language governing permissions and 207 | 208 | limitations under the License. 209 | --------------------------------------------------------------------------------