Skip to main content

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 oral
  • ECRIT — corpus écrit (segmentation automatique)
  • ECRIT_IA — corpus écrit avec détection des tours de parole par LLM
  • ECRIT_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


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.4.tar.gz (113.0 kB view details)

Uploaded Source

Built Distribution

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

ppi_analyser-0.1.8.4-py3-none-any.whl (127.3 kB view details)

Uploaded Python 3

File details

Details for the file ppi_analyser-0.1.8.4.tar.gz.

File metadata

  • Download URL: ppi_analyser-0.1.8.4.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

Hashes for ppi_analyser-0.1.8.4.tar.gz
Algorithm Hash digest
SHA256 94550471dcea201cc52f26799284a6dfe130602e3b36ef52038b91a0197a2c9a
MD5 325d593bdaa9ed396572b7a2b07254b8
BLAKE2b-256 d43a67be78a91e9b5e34b55a64d6d9ac9c4cbc6fbc6508e3de9e25a991749b0d

See more details on using hashes here.

File details

Details for the file ppi_analyser-0.1.8.4-py3-none-any.whl.

File metadata

  • Download URL: ppi_analyser-0.1.8.4-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

Hashes for ppi_analyser-0.1.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 62f858c6ccbd3ab315de3a313d9b4f14ded44f099903593f9aa660f947b416d1
MD5 27e2726c5863771f5f90d1b26a3d8af8
BLAKE2b-256 8c98ec47be768f861e9a1b317e1dab6318befca830ba13c360672568269f32f6

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