Analyzing and parsing documents
Project description
📑 Exparso
本ライブラリは、画像を含むドキュメントのパースを行うためのライブラリです。 テキストとして出力することで、従来のベクトル検索や全文検索での利用を可能することを目的とします。
📥 インストール方法
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
exparso-0.0.3-py3-none-any.whl
(24.3 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a779e8af7d5afe82e822521938b5801fbfd47001cd6cea9c56efd8e8020464a
|
|
| MD5 |
e18b5982e8609de707b10e37042493e9
|
|
| BLAKE2b-256 |
156884a5bb8c3f544f1494436f22e5d98d826cd6a22e845d3c968d2459666b6b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39778da11956f407de52479e3e561aa4aaff7b06bed05989c218b6df5bca2f24
|
|
| MD5 |
d641d4e9bb671cd629b5826601cdeb72
|
|
| BLAKE2b-256 |
7a1eed7a00a5593bff7a7667d3ca34c058d25fb7a20d349471ca78a3c0525630
|