format_conversation_dataset
Convert your diarized content into a dataset that can be used to finetune a model!
Install
pip install format_conversation_dataset
How to use
Designate a speaker number as the ‘assistant’ and supply input and output file paths, and this module with do the rest.
from format_covnersation_dataset.core import *
convert_file(‘input/file/path’, ‘output/file/path’, 1, “You are participating in a conversation”)
This will output a json format like so:
{‘messages’: [ { ‘role’ : ‘system’, ‘content’ : ‘You are participating
in a conversation’ }, { ‘role’ : ‘user’, ‘content’ : ‘SPEAKER_02 : Hello
everyone SPEAKER_03 : Good morning SPEAKER_04 : Hi’ }, { ‘role’ :
‘assistant’, ‘content’ : ‘Hi!’ },
]}
Metadata
Release files for format-conversation-dataset 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| format_conversation_dataset-0.0.1.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| format_conversation_dataset-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / format_conversation_dataset-0.0.1.tar.gz
| Download URL | format_conversation_dataset-0.0.1.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c970f9f35a128e41a26c024bf51ad25e398d699d2461c1e156bc3f5348e8b76
|
|
BLAKE2b-256 checksum How to use checksums |
9b0f985d4f20b2ae0b70d44f99397abb5fee6809dd859c901a714595b43254ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Release files / format_conversation_dataset-0.0.1-py3-none-any.whl
| Download URL | format_conversation_dataset-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd1917e15b2d466ac48e9eb20e2a0e820dac35ceaadaefbf2f1be217e2de8ff3
|
|
BLAKE2b-256 checksum How to use checksums |
a1f3a57eacef20d76e3d41e069585ea47c9dc1655e6fcf02b5860a2994023063
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|