Skip to main content

This tool can take a long script (greater than 10 hours) of diarized content and improve the diarization by prompting an LLM model to look for obviously incorrect attribution and fix it.

Project description

improve-diarization-with-llm

Install

pip install improve_diarization_with_llm

How to use

import os
from improve_diarization_with_llm import claude_corrector
    
os.environ['ANTHROPIC_API_KEY'] = 'your-api-key'  # Replace with your actual API key
input_file = 'path/to/your/input/transcript.txt'  # Replace with your actual input file path
output_file = 'path/to/your/output/improved_transcript.txt'  # Replace with your desired output file path
    
corrector = claude_corrector.ClaudeDiarizationCorrector(input_file, output_file)

# corrector.process_conversation() this assumes a valid ANTHROPIC_API_KEY environment variable and input path

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

improve_diarization_with_llm-0.0.3.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

improve_diarization_with_llm-0.0.3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file improve_diarization_with_llm-0.0.3.tar.gz.

File metadata

File hashes

Hashes for improve_diarization_with_llm-0.0.3.tar.gz
Algorithm Hash digest
SHA256 03e28b90922ed7a2f637b6e04c9f4f79bd0d30cfd7e9b6ac964fb1637cfc5054
MD5 fe670a45db3acd0ddce056657194a6dc
BLAKE2b-256 9cc55a604eb71a1ad8107410a28801ff3183755135862ecd9352283b7c7c56a8

See more details on using hashes here.

File details

Details for the file improve_diarization_with_llm-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for improve_diarization_with_llm-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9a7d0bfe4fff3ebec487437c17fcdd6e2887a0074bfb231d8037924305b70fa9
MD5 c48bc0411ab03f040c24d7e3f8168c68
BLAKE2b-256 a1e3cbb9b74f09e2ed712460dd4faf6a26fe5020687549689fc77947d70be576

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