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.4.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.4-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for improve_diarization_with_llm-0.0.4.tar.gz
Algorithm Hash digest
SHA256 020139d49506b45e69c9b3af328fda339bc6474f61b1fcc61900456a6ae68cdd
MD5 16cf34dd0a5e1e24fe76adfc7c81a1bd
BLAKE2b-256 e27d28978eb494680c857643e9610c9548f62064f1ae66ca15c49b1577177b52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for improve_diarization_with_llm-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e3093e2d4dfb260385276fdf68be1ff84078418df9f936ae2e8f8844b699f02
MD5 8e9c6c4bc2acd887d36cfe1fcbae41a1
BLAKE2b-256 0325b2770930dd26f86f0347eb5977c3bad763216fbf7f77825d454cdc403da5

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