Analyse automatique de phrases préfabriquées des interactions (PPI) — pipeline NLP + serveur FastAPI
Project description
PPI Analyser
Outil d'analyse automatique de phrases préfabriquées d'interaction (PPI) françaises.
Installation
python -m venv myenv
source myenv/bin/activate
pip install -e .
Configuration
Copy .env.example to .env and fill in your API keys:
cp .env.example .env
Usage
from ppi_analyser.core import PPIAnalyser
from ppi_analyser.config import PipelineConfig, AnalysisMode
analyser = PPIAnalyser()
config = PipelineConfig(
models=["mistral_mistral-medium-latest"],
expression="je t'en prie",
sentence_file="path/to/corpus.xlsx",
mode=AnalysisMode.ORAL,
output_dir="path/to/output",
)
df, state = analyser.process_sentences(config)
Modes
ORAL— corpus oralECRIT— corpus écrit (segmentation automatique)ECRIT_IA— corpus écrit avec détection des tours de parole par LLMECRIT_TEST— mode test rapide
Models supported
- Mistral (
mistral_mistral-medium-latest) - Ollama (
ollama_mistral:7b) - Groq (
groq_moonshotai/kimi-k2-instruct) - DeepSeek (
deepseek_deepseek-chat) - Gemini (
gemini_gemini-3-flash-preview)
ppi_analyser
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
ppi_analyser-0.1.8.3.tar.gz
(113.0 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
File details
Details for the file ppi_analyser-0.1.8.3.tar.gz.
File metadata
- Download URL: ppi_analyser-0.1.8.3.tar.gz
- Upload date:
- Size: 113.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4c8077fbe57744bfc22c89ffaadeba72abbbac177cd65ef23cdb42b0719aa00
|
|
| MD5 |
a783485156a9bc5d6b40cd4fadc5964b
|
|
| BLAKE2b-256 |
af2593a5734b40bd32f854ece2e12f6e82f85178736a95ce9d2ecdb49dd6df41
|
File details
Details for the file ppi_analyser-0.1.8.3-py3-none-any.whl.
File metadata
- Download URL: ppi_analyser-0.1.8.3-py3-none-any.whl
- Upload date:
- Size: 127.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99164a970ea37ebc41f110feabf269d215696aba4d354cc6fc4b7d3aa92bd8ce
|
|
| MD5 |
6177008f97f6efdd75a3d32a0e42a249
|
|
| BLAKE2b-256 |
e63df0d379867da38bbbc8e25eab53df337f9eb079d036816e0fe90f7d30665c
|