format_iramuteq_corpus
Converts speaker-diarized transcripts or raw SRT/VTT files into clean UTF-8 starred corpora for IRaMuTeQ, Alceste, and TXM, removing stray asterisks and adding document metadata.
Instructions
Locally converts a speaker-diarized transcript (or raw SRT/VTT) into a clean UTF-8 IRaMuTeQ / Alceste / TXM starred corpus (**** *id *var_val, zero stray asterisks).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"transcript_text": "<transcript_text>"
},
"name": "format_iramuteq_corpus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Corpus document identifier (sanitized to ASCII slug, default "entretien_01"). | entretien_01 |
| variables | No | Key/value metadata variables converted into starred modalities (e.g. {"sexe": "F", "theme": "sante"}). | |
| transcript_text | Yes | Speaker-diarized transcript text (e.g. "M. Martin : ...") or raw SRT/VTT content. | |
| interviewer_mode | No | How to handle interviewer turns: 'keep', 'tag' (-*relance_enqueteur), or 'exclude'. | keep |
| clean_input_first | No | Clean raw SRT/VTT timecodes before building the IRaMuTeQ corpus. | |
| split_by_speaker_starred | No | Emit one starred unit (`**** *id *locuteur_x`) per speaker turn when interviewer_mode is keep. |