高性能日本語形態素解析ライブラリ - SudachiPyとGemini AIによるテキスト分析
Project description
Mirage-Core
日本語文章解析エンジン。伝統的な自然言語処理(NLP)とLLMを組み合わせたハイブリッドアーキテクチャを採用しています。
🚀 クイックスタート
Docker Hub から実行(最も簡単)
# Docker Hub から最新イメージを取得
docker pull stayforge/mirage:latest
# コンテナを起動
docker run -d -p 8000:8000 stayforge/mirage:latest
# API にアクセス
curl http://localhost:8000/analysis/health
Docker Compose で実行
# リポジトリをクローン
git clone https://github.com/[your-repo]/Mirage-Core.git
cd Mirage-Core
# Docker Compose で起動
docker-compose up -d
# API にアクセス
curl http://localhost:8000/analysis/health
詳細は DOCKER.md を参照
ローカル環境で実行
# 依存関係をインストール
pip install -r requirements.txt
# UniDic 辞書をダウンロード(初回のみ)
python -m unidic download
# API サーバーを起動
python main.py
📚 API ドキュメント
起動後、以下の URL でアクセス:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
- API ガイド: API.md
🧪 テスト
# 全テストを実行
pytest tests/ -v
# API テストのみ
pytest tests/test_api.py -v
# 分析機能テストのみ
pytest tests/test_analysis.py -v
🔄 CI/CD
GitHub Actions による自動ビルド・デプロイを設定済み
- main ブランチ:
stayforge/mirage:latest - dev ブランチ:
stayforge/mirage:dev - バージョンタグ:
stayforge/mirage:v1.0.0
セットアップ方法: CI_SETUP.md
🛠️ Tools
A tool to convert other formats (mainly Aozora Bunko) to .MDI
Supported file(text) formats:
- Plain text (.txt)
- Markdown (.md)
- HTML(青空文庫)
- illusion Markdown (.imd)
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
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
File details
Details for the file pymirage-0.1.1.dev2.tar.gz.
File metadata
- Download URL: pymirage-0.1.1.dev2.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f37ec537f7e1504f61fd8901e78f0f2845b9876a503452a9bfd4723402013de8
|
|
| MD5 |
f7c6c7e933395ec8c8aa69d49e8416ea
|
|
| BLAKE2b-256 |
00c043e4b3e0000905f0678edb7aa24ede9013a8061c85970507427d7c80cc1c
|
Provenance
The following attestation bundles were made for pymirage-0.1.1.dev2.tar.gz:
Publisher:
pypi.yml on stayforge/Mirage-Core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymirage-0.1.1.dev2.tar.gz -
Subject digest:
f37ec537f7e1504f61fd8901e78f0f2845b9876a503452a9bfd4723402013de8 - Sigstore transparency entry: 908133688
- Sigstore integration time:
-
Permalink:
stayforge/Mirage-Core@cf10e3b461c9bdb5ed5cc3b9d95fceff3754327c -
Branch / Tag:
refs/heads/dev - Owner: https://github.com/stayforge
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@cf10e3b461c9bdb5ed5cc3b9d95fceff3754327c -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymirage-0.1.1.dev2-py3-none-any.whl.
File metadata
- Download URL: pymirage-0.1.1.dev2-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
179b7036b1fa13cd6ef224e604050a4a0948393bba7bc384c3812d1856333151
|
|
| MD5 |
00e90d7b3cf209b9e5c0d99834c93fff
|
|
| BLAKE2b-256 |
dd84fd2aedcc7cbf98c8a3f9a0f244a02f9a56a243a5d229d7aa3d50040ab286
|
Provenance
The following attestation bundles were made for pymirage-0.1.1.dev2-py3-none-any.whl:
Publisher:
pypi.yml on stayforge/Mirage-Core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymirage-0.1.1.dev2-py3-none-any.whl -
Subject digest:
179b7036b1fa13cd6ef224e604050a4a0948393bba7bc384c3812d1856333151 - Sigstore transparency entry: 908133736
- Sigstore integration time:
-
Permalink:
stayforge/Mirage-Core@cf10e3b461c9bdb5ed5cc3b9d95fceff3754327c -
Branch / Tag:
refs/heads/dev - Owner: https://github.com/stayforge
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@cf10e3b461c9bdb5ed5cc3b9d95fceff3754327c -
Trigger Event:
push
-
Statement type: