Skip to main content

Analyzing and parsing documents

Project description

📑 Exparso

python

本ライブラリは、画像を含むドキュメントのパースを行うためのライブラリです。 テキストとして出力することで、従来のベクトル検索や全文検索での利用を可能することを目的とします。

📥 インストール方法

LibreOffice

Office ファイルをテキストに変換するために、LibreOffice をインストールします。

# Ubuntu
sudo apt install libreoffice

# Mac
brew install --cask libreoffice

ライブラリのインストール

pip install exparso

💡 使用方法

parse_document 関数を利用して、ドキュメントをパースします。

from exparso import parse_document
from langchain_openai import AzureChatOpenAI

llm_model = AzureChatOpenAI(model="gpt-4o")
text = parse_document(path="path/to/document.pdf", model=llm_model)

📑 対応ファイル

コンテンツタイプ 拡張子
📑 ドキュメント PDF, PowerPoint
🖼️ 画像 JPEG, PNG, BMP
📝 テキストデータ テキストファイル, Markdown
📊 表データ Excel, CSV

🔥 LLM

クラウドベンダー モデル
Azure ChatGPT(gpt-4o, gpt-4o-mini)
Google Cloud Claude(claude-3.7-sonnet,claude-3.5-sonnet), Gemini(gemini-2.0-flash,gemini-1.5-flash-*,gemini-2.0-pro-*)

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

exparso-0.0.3.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

exparso-0.0.3-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file exparso-0.0.3.tar.gz.

File metadata

  • Download URL: exparso-0.0.3.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.11

File hashes

Hashes for exparso-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9a779e8af7d5afe82e822521938b5801fbfd47001cd6cea9c56efd8e8020464a
MD5 e18b5982e8609de707b10e37042493e9
BLAKE2b-256 156884a5bb8c3f544f1494436f22e5d98d826cd6a22e845d3c968d2459666b6b

See more details on using hashes here.

File details

Details for the file exparso-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: exparso-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.11

File hashes

Hashes for exparso-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 39778da11956f407de52479e3e561aa4aaff7b06bed05989c218b6df5bca2f24
MD5 d641d4e9bb671cd629b5826601cdeb72
BLAKE2b-256 7a1eed7a00a5593bff7a7667d3ca34c058d25fb7a20d349471ca78a3c0525630

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