Skip to main content

PDF processing pipeline: remove headers/footers, convert to markdown, and generate image captions

Project description

multimodal-parsers

PDF processing pipeline: removes headers/footers, converts to markdown, and generates image captions using MLX VLM.

Installation

pip install multimodal-parsers

Dependencies

The package automatically installs:

  • Pillow
  • mlx-vlm
  • pymupdf
  • scikit-learn
  • numpy
  • marker-pdf

Additionally, you may need to install:

pip install "unstructured[pdf]"

Usage

After installation, use the multimodal-parsers command:

multimodal-parsers <input_dir> <output_dir>

Example

multimodal-parsers Database/Private/Files Database/Private/Files/output

What it does

  1. Removes headers and footers from PDF files using clustering algorithms
  2. Converts PDFs to markdown using marker-pdf
  3. Generates image captions using MLX VLM (InternVL3-1B-4bit)
  4. Outputs final markdown files with captioned images

Development

git clone https://github.com/thuuyen98/PIER-QA
cd PIER-QA
pip install -e ".[dev]"

License

MIT License

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

multimodal_parsers-0.1.3.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multimodal_parsers-0.1.3-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file multimodal_parsers-0.1.3.tar.gz.

File metadata

  • Download URL: multimodal_parsers-0.1.3.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for multimodal_parsers-0.1.3.tar.gz
Algorithm Hash digest
SHA256 276ea87e1c68e8176f34bf8a50198fa20a86a06e6e65782cd26b6a2dd7d2955c
MD5 e963b66f4189cfd53232906b780b912b
BLAKE2b-256 0ece80353c92f5d6272a6593230e5c7cc2aefcfcc47909b158acfe689ef4a6f5

See more details on using hashes here.

File details

Details for the file multimodal_parsers-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for multimodal_parsers-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 099ff77e0a7b7bb4930bfbe226d3745a84a33fb92a623ffb4336ffcafb313213
MD5 e36a80f91b9105087c867a049e15c8f3
BLAKE2b-256 4881faa300d9c362708ee7b33d9b5529603f42686524a83d20bf41f899b30391

See more details on using hashes here.

Supported by

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