textbite


Nametextbite JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryToolkit for extracting logical chunks from complex document pages.
upload_time2024-10-09 09:28:43
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseBSD 3-Clause License Copyright (c) 2023, DCGM Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords layout analysis text segmentation machine learning language models graph neural networks object detection yolov8
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://nextcloud.fit.vutbr.cz/s/6jNgze6fLYXQBgq) yourself and provide path as an argument.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "textbite",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "Layout analysis, text segmentation, machine learning, language models, graph neural networks, object detection, YOLOv8",
    "author": null,
    "author_email": "Martin Kosteln\u00edk <martinkostelnik0@gmail.com>, Karel Bene\u0161 <ibenes@fit.vutbr.cz>",
    "download_url": "https://files.pythonhosted.org/packages/37/4e/bbf19de6acbf2645991413c071eba0b68227ca8f38106c941a80cf70e163/textbite-1.0.0.tar.gz",
    "platform": null,
    "description": "# semANT-TextBite\n\nTool for extracting logical chunks from complex document pages.\n\nInstall from PyPi:\n```\npip install textbite\n```\n\nRun by simply providing a folder of images alongside a folder of corresponding PAGE XMLs (such as obtained from pero-ocr):\n\n```\ntextbite \\\n    --xml xmls/ \\\n    --img imgs/ \\\n    --yolo yolo.pt \\\n    --gnn gnn.pth \\\n    --normalizer norm.pkl \\\n    --save out/ \\\n    [--logging-level INFO] \\\n    [--json] \\\n    [--alto altos/]\n```\n\nBy default, TextBite downloads neccessary models from the internet. In case you are working in an offline environment, you can [download it](https://nextcloud.fit.vutbr.cz/s/6jNgze6fLYXQBgq) yourself and provide path as an argument.\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License  Copyright (c) 2023, DCGM  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
    "summary": "Toolkit for extracting logical chunks from complex document pages.",
    "version": "1.0.0",
    "project_urls": null,
    "split_keywords": [
        "layout analysis",
        " text segmentation",
        " machine learning",
        " language models",
        " graph neural networks",
        " object detection",
        " yolov8"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9a1455b80c1b1ca05216bc7e3bdad88e9f73da42c7b6dad8e100e83fd9696ddc",
                "md5": "7a01f3ae64950523f03173eddde45006",
                "sha256": "b1560ad729001e1d621fc85c84f898b3b0fa0899ff894084256c1c87cf3efb12"
            },
            "downloads": -1,
            "filename": "textbite-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7a01f3ae64950523f03173eddde45006",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 20432,
            "upload_time": "2024-10-09T09:28:42",
            "upload_time_iso_8601": "2024-10-09T09:28:42.291344Z",
            "url": "https://files.pythonhosted.org/packages/9a/14/55b80c1b1ca05216bc7e3bdad88e9f73da42c7b6dad8e100e83fd9696ddc/textbite-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "374ebbf19de6acbf2645991413c071eba0b68227ca8f38106c941a80cf70e163",
                "md5": "6753dcc2536525c51cae09c52918f543",
                "sha256": "f9d79e36748f3af7e79dd4832875cfefe89d00dcbba3d26d09740cd282f34253"
            },
            "downloads": -1,
            "filename": "textbite-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "6753dcc2536525c51cae09c52918f543",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 17937,
            "upload_time": "2024-10-09T09:28:43",
            "upload_time_iso_8601": "2024-10-09T09:28:43.449247Z",
            "url": "https://files.pythonhosted.org/packages/37/4e/bbf19de6acbf2645991413c071eba0b68227ca8f38106c941a80cf70e163/textbite-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-09 09:28:43",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "textbite"
}
        
Elapsed time: 2.72010s