This release is a pre-release and may not be stable for production use.
Document Classification: All in one place
This package provides support to classify documents using all the popular avialable methods. Along with document classification, it also provides support to a single interface for OCR using both open source models like: Tesseract and PaddleOCR, and commercial models like Google OCR, etc.
PYPI: document-classification
Features
- OCR
- Tesseract
- Google OCR
- Classification
- Fasttext (train, evaluate, predict)
- Language Models like BERT (train, evaluate, predict)
- Language + Layout Models like LayoutLM (train, evaluate, predict)
- LLM (evaluate, predict)
Installation
Install with a single command:
pip install -U document-classification
or if you use poetry (like me):
poetry add document-classification
Usuage
Please check the examples directory for examples on how to use the package.
Contributing
Your contributions are welcome! If you have great examples or find neat patterns, clone the repo and add another example. The goal is to find great patterns and cool examples to highlight.
If you encounter any issues or want to provide feedback, you can create an issue in this repository. You can also reach out to me on Twitter at @amittimalsina14.
Check the todo.md file for the list of features that are coming next with their due dates.
What's coming next?
I am going to first add tests and refactor the code to make it more readable, usuable, and maintainable. Then I will release documentation and more examples.
Metadata
Release files for document-classification 0.0.2a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| document_classification-0.0.2a0.tar.gz | 32.1 kB | With provenance | Details for document_classification-0.0.2a0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| document_classification-0.0.2a0-py3-none-any.whl | Python 3 | none | any | Details for document_classification-0.0.2a0-py3-none-any.whl |
Total release size: 98.0 kB
Release files / document_classification-0.0.2a0.tar.gz
| Download URL | document_classification-0.0.2a0.tar.gz |
|---|---|
| Size | 32.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd27210dae80348ec22c3def98975446a9b784ef5bc05b920327e6a00dfb3b4f
|
|
BLAKE2b-256 checksum How to use checksums |
9b8db6df4fc18c1fd9892ad514313a688c6fddb2f8e813e9d4f393106fc71e80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 7, 2024.
Transparency logRelease files / document_classification-0.0.2a0-py3-none-any.whl
| Download URL | document_classification-0.0.2a0-py3-none-any.whl |
|---|---|
| Size | 65.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1bfdac8901cd5ca0fabc2a53444d87874512a8ac79c6f9fc7375b7ba87c6554c
|
|
BLAKE2b-256 checksum How to use checksums |
4ed7bf2c6808fe9850170014c683926a3da29a6d6fc025648fecdfbbbca85414
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 7, 2024.
Transparency logSecurity for document-classification 0.0.2a0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for document_classification-0.0.2a0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 7, 2024.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.