Skip to main content

A package to read and process documents

Project description

# DocumentsReader

# Document to JSON Converter

This project provides a script to extract data in json format from various types of documents (PDF, DOCX, TXT, PPT, Excel, HTML) using a pre-trained model.

## Requirements

Before you begin, ensure you have the following software installed:

- Python 3.10+
- pip (Python package installer)

## Installation

1. Install the necessary Python package:

    ```sh
    pip install documentsreader
    ```

2. Install Poppler (required for `pdf2image`):

    - **Ubuntu/Debian**:
      ```sh
      sudo apt-get install poppler-utils
      ```
    - **macOS** (using Homebrew):
      ```sh
      brew install poppler
      ```
## Example

1. The script will load document, apply the pre-trained model, and generate JSON responses.

- **Documents Processing**:
  - The script loads a pre-trained model using the `transformers` library.
  - It generates a JSON response using the model.
  - The responses can be printed or saved for further analysis.

This README provides an overview of how to set up and use the scripts for to generating JSON data from these documents using a pre-trained model.

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

DocumentsReader-1.1.5.tar.gz (384.1 kB view details)

Uploaded Source

Built Distribution

DocumentsReader-1.1.5-py3-none-any.whl (384.2 kB view details)

Uploaded Python 3

File details

Details for the file DocumentsReader-1.1.5.tar.gz.

File metadata

  • Download URL: DocumentsReader-1.1.5.tar.gz
  • Upload date:
  • Size: 384.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.3

File hashes

Hashes for DocumentsReader-1.1.5.tar.gz
Algorithm Hash digest
SHA256 3f6290b55fcaec50f76a2f00786f3eabe7ac784b7150f68100b01d909d927a07
MD5 29c6afc4b5d02d7d474302700fb23e1b
BLAKE2b-256 d4ce0bf8ed1245854dab50d62c3ed56b87b084ac107fb56338eb85d0b5191fd9

See more details on using hashes here.

File details

Details for the file DocumentsReader-1.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for DocumentsReader-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b0bf68501443c70e96f3121576ad5e6673ccd7c96a97cc310c2d0f4de3f51ba8
MD5 a910ee400abfcd54d926219e251674d8
BLAKE2b-256 19d10fa91558f7c2f4f83c4ce669a9a3cc02cdefbdeca2b40ee2c185685b4339

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