広聴AI分析パイプラインコア - Broadlistening Analysis Pipeline Core
Project description
kouchou-ai-analysis-core
広聴AIの分析パイプラインコアライブラリ。
概要
このパッケージは、コメントデータを分析し、クラスタリングと要約を行うパイプラインを提供します。
必要条件
- Python 3.12以上
インストール
pip install kouchou-ai-analysis-core
Geminiサポートを含める場合:
pip install kouchou-ai-analysis-core[gemini]
使用方法
詳細なチュートリアルは以下を参照してください:
- CLIクイックスタート - コマンドラインからの利用
- インポート方法 - Python スクリプトからの利用
CLI
kouchou-analyze --config config.json
ライブラリとして
from analysis_core import PipelineOrchestrator, PipelineConfig
config = PipelineConfig.from_json("config.json")
orchestrator = PipelineOrchestrator(config.to_dict())
result = orchestrator.run()
プラグインシステム
analysis-core は拡張可能なプラグインアーキテクチャを採用しています。
カスタムプラグインの作成
from analysis_core.plugin import step_plugin, StepContext, StepInputs, StepOutputs
@step_plugin(
id="mycompany.custom_step",
version="1.0.0",
inputs=["arguments"],
outputs=["custom_result"],
)
def custom_step(ctx: StepContext, inputs: StepInputs, config: dict) -> StepOutputs:
# カスタム処理
output_path = ctx.output_dir / "custom_result.csv"
return StepOutputs(artifacts={"custom_result": output_path})
外部プラグインの配置
plugins/analysis/
└── my-plugin/
├── manifest.yaml
└── plugin.py
詳細は プラグイン開発ガイド を参照してください。
開発
# 依存関係のインストール
pip install -e ".[dev]"
# テストの実行
pytest
# リンターの実行
ruff check .
ライセンス
MIT License
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 kouchou_ai_analysis_core-0.1.2.tar.gz.
File metadata
- Download URL: kouchou_ai_analysis_core-0.1.2.tar.gz
- Upload date:
- Size: 89.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eebc1931c1fe818a26cfc1e76e2951e3000b06cc8aa6077d48311690dd620fd
|
|
| MD5 |
23d72a92424305df24864d34e8ac15d5
|
|
| BLAKE2b-256 |
1220dec5ecfa10d146d11ad4cd1bbefa407f06f6acd2bd4c45e9b110c0b7fc36
|
File details
Details for the file kouchou_ai_analysis_core-0.1.2-py3-none-any.whl.
File metadata
- Download URL: kouchou_ai_analysis_core-0.1.2-py3-none-any.whl
- Upload date:
- Size: 85.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
699965b6fb0363a86cfecc3d242a6b7f745ac5913de818cd6f714aead0ea1668
|
|
| MD5 |
058cec89390999cf795c7e52744891b6
|
|
| BLAKE2b-256 |
08befa98f86fe67f1b9867974a3b641480bea6127e7f7276828b6de2695d52ad
|