# improve-diarization-with-llm
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
## Install
``` sh
pip install improve_diarization_with_llm
```
## How to use
``` python
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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/russedavid/improve-diarization-with-llm",
"name": "improve-diarization-with-llm",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "nbdev jupyter notebook python",
"author": "rijimuge",
"author_email": "david.russell04@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e2/7d/28978eb494680c857643e9610c9548f62064f1ae66ca15c49b1577177b52/improve_diarization_with_llm-0.0.4.tar.gz",
"platform": null,
"description": "# improve-diarization-with-llm\n\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\n## Install\n\n``` sh\npip install improve_diarization_with_llm\n```\n\n## How to use\n\n``` python\nimport os\nfrom improve_diarization_with_llm import claude_corrector\n \nos.environ['ANTHROPIC_API_KEY'] = 'your-api-key' # Replace with your actual API key\ninput_file = 'path/to/your/input/transcript.txt' # Replace with your actual input file path\noutput_file = 'path/to/your/output/improved_transcript.txt' # Replace with your desired output file path\n \ncorrector = claude_corrector.ClaudeDiarizationCorrector(input_file, output_file)\n\n# corrector.process_conversation() this assumes a valid ANTHROPIC_API_KEY environment variable and input path\n```\n",
"bugtrack_url": null,
"license": "Apache Software License 2.0",
"summary": "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.",
"version": "0.0.4",
"project_urls": {
"Homepage": "https://github.com/russedavid/improve-diarization-with-llm"
},
"split_keywords": [
"nbdev",
"jupyter",
"notebook",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0325b2770930dd26f86f0347eb5977c3bad763216fbf7f77825d454cdc403da5",
"md5": "8e9c6c4bc2acd887d36cfe1fcbae41a1",
"sha256": "9e3093e2d4dfb260385276fdf68be1ff84078418df9f936ae2e8f8844b699f02"
},
"downloads": -1,
"filename": "improve_diarization_with_llm-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8e9c6c4bc2acd887d36cfe1fcbae41a1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 9252,
"upload_time": "2024-08-27T01:54:30",
"upload_time_iso_8601": "2024-08-27T01:54:30.244729Z",
"url": "https://files.pythonhosted.org/packages/03/25/b2770930dd26f86f0347eb5977c3bad763216fbf7f77825d454cdc403da5/improve_diarization_with_llm-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e27d28978eb494680c857643e9610c9548f62064f1ae66ca15c49b1577177b52",
"md5": "16cf34dd0a5e1e24fe76adfc7c81a1bd",
"sha256": "020139d49506b45e69c9b3af328fda339bc6474f61b1fcc61900456a6ae68cdd"
},
"downloads": -1,
"filename": "improve_diarization_with_llm-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "16cf34dd0a5e1e24fe76adfc7c81a1bd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 9449,
"upload_time": "2024-08-27T01:54:31",
"upload_time_iso_8601": "2024-08-27T01:54:31.419691Z",
"url": "https://files.pythonhosted.org/packages/e2/7d/28978eb494680c857643e9610c9548f62064f1ae66ca15c49b1577177b52/improve_diarization_with_llm-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-27 01:54:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "russedavid",
"github_project": "improve-diarization-with-llm",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "improve-diarization-with-llm"
}