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.1.tar.gz (9.5 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.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for improve_diarization_with_llm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d1b1167de198011f051a59dad476b9c9fb510dbde4c1955277c17b756edf07e3
MD5 85d9718bfdfee0948ebc7d440b463248
BLAKE2b-256 7e49bfa0b1bb055681d29ec6b2eca9ccff068115ce9c80a025f3652ccefc4048

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for improve_diarization_with_llm-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2a6ec78692aba960f005a0a753c6a07a47ced6c460374bdbaab0094c3b81d7d
MD5 79118df786f59520f430384d38549dc8
BLAKE2b-256 9615f3cdfb1a1e9094d019d56853ca1fd31c829a6de5ce8c4664f72ab2a8e825

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