Skip to main content

semANT-TextBite

Tool for extracting logical chunks from complex document pages.

Install from PyPi:

pip install textbite

Run by simply providing a folder of images alongside a folder of corresponding PAGE XMLs (such as obtained from pero-ocr):

textbite \
    --xml xmls/ \
    --img imgs/ \
    --yolo yolo.pt \
    --gnn gnn.pth \
    --normalizer norm.pkl \
    --save out/ \
    [--logging-level INFO] \
    [--json] \
    [--alto altos/]

By default, TextBite downloads neccessary models from the internet. In case you are working in an offline environment, you can download it yourself and provide path as an argument.

Metadata

Release files for textbite 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for textbite 1.0.0
File Size Uploaded
textbite-1.0.0.tar.gz 17.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for textbite 1.0.0
File Interpreter ABI Platform
textbite-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.4 kB

Release files / textbite-1.0.0.tar.gz

Download URL textbite-1.0.0.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f9d79e36748f3af7e79dd4832875cfefe89d00dcbba3d26d09740cd282f34253
BLAKE2b-256 checksum
How to use checksums
374ebbf19de6acbf2645991413c071eba0b68227ca8f38106c941a80cf70e163
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / textbite-1.0.0-py3-none-any.whl

Download URL textbite-1.0.0-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1560ad729001e1d621fc85c84f898b3b0fa0899ff894084256c1c87cf3efb12
BLAKE2b-256 checksum
How to use checksums
9a1455b80c1b1ca05216bc7e3bdad88e9f73da42c7b6dad8e100e83fd9696ddc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page