* fix: change order of JSON Schema to search mapper transformations
In the JSON Schema to search mapper, the suppression flags need to be addressed first,
otherwise the jsonref.replace_refs function may remove them.
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
* build: update dependencies
Updating pydantic from 2.8.2 to 2.9.2 triggers a change in JSON Schema from models:
the lists with only 1 element get flatten.
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
* chore: improve verbose in JSON Schema to search mapper test
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
---------
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
* feat: refactoring doc-tokens in new file and add new export function to table
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* reformatted and fixed bugs
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* working on table exporting in document tokens
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated code and tests, need to decide what to commit as test-cases
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the test cases
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* refactored the test-files
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* refactored duplicate code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* refactored duplicate code (boundingbox to figure and table)
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* refactored duplicate code (making BaseCell the base-class of BaseText)
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* refactored duplicate code (re-use of function in BaseCell)
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed issues from review (2)
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
---------
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added the XML export
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* reformatted all
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added the DocumentTokens class
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updating the to-xml method
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updating the to-xml method
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed the to-md method
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added the strict-text in the to-md method
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added page-tokens
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the location/page tokens
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* small fix to have correct special document-tokens
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* reformatted the code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
---------
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added the XML export
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* reformatted all
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added the DocumentTokens class
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updating the to-xml method
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updating the to-xml method
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed the to-md method
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added the strict-text in the to-md method
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added page-tokens
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the location/page tokens
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
---------
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
For consistency, set the default value for name field in search.package.Package to doocling-core,
since the field version is set to docling-core version by default.
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
* fix(test): set static typing compatible to python 3.10
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
* style: enforce some pre-commit hooks on tests
Enforce pre-commit hooks black, isort, autoflake, and mypy on test modules.
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
* fix(rec): fix definition issues in attribute, predicate, subject
Remove duplicate generic types across base and predicate modules.
Create an identifier class for subject names.
Remove unnecessary type variables in attribute model.
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
* docs: refer to Docling data objects
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
---------
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>