Skip to main content

Toolkit for extracting logical chunks from complex document pages.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textbite-1.0.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

textbite-1.0.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file textbite-1.0.0.tar.gz.

File metadata

  • Download URL: textbite-1.0.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for textbite-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f9d79e36748f3af7e79dd4832875cfefe89d00dcbba3d26d09740cd282f34253
MD5 6753dcc2536525c51cae09c52918f543
BLAKE2b-256 374ebbf19de6acbf2645991413c071eba0b68227ca8f38106c941a80cf70e163

See more details on using hashes here.

File details

Details for the file textbite-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: textbite-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for textbite-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1560ad729001e1d621fc85c84f898b3b0fa0899ff894084256c1c87cf3efb12
MD5 7a01f3ae64950523f03173eddde45006
BLAKE2b-256 9a1455b80c1b1ca05216bc7e3bdad88e9f73da42c7b6dad8e100e83fd9696ddc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page