Ratchada Utils are Python package use with Ratchada Whisper model utilities.
Project description
Ratchada_Utils
A Python library for text processing and utilities related to the Ratchada Whisper model.
Installation
You can install ratchada_utils
using pip:
pip install ratchada_utils
To install from source, clone the repository and run:
git clone https://github.com/yourusername/ratchada_utils.git
cd ratchada_utils
pip install .
Usage
Tokenizing Text
from ratchada_utils.processor import tokenize_text
text = "Your input text here."
tokenized_text = tokenize_text(text, pred=True)
print("Tokenized Text:", tokenized_text)
# Tokenized Text: ['your', 'input', 'text', 'here']
Evaluate Performance
from ratchada_utils.evaluator import simple_evaluator
result = pd.read_csv("./output/result-whisper-ratchada.csv")
summary = simple_evaluator(result["pred_text"], result["true_text"])
Requirements
- Python 3.10 or higher
- The Requirements are located in
requirements.txt
License
This project is licensed under the MIT License - see the LICENSE
file for details.
Contact
Please made contact on the official repository of this project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ratchada_utils-2.2.0.tar.gz
(25.6 kB
view details)
Built Distribution
File details
Details for the file ratchada_utils-2.2.0.tar.gz
.
File metadata
- Download URL: ratchada_utils-2.2.0.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abb8701c6761adb8bae86513dd564bcf00624aa1d90a86ac33ec8b444ace38f6 |
|
MD5 | f94811128ea18b6528fe136680134373 |
|
BLAKE2b-256 | 21e627ce85b8098b8df45e3bac43928c1799741cef6a5480bcd74d98a03a9b0c |
File details
Details for the file ratchada_utils-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: ratchada_utils-2.2.0-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fad4dd9219a3ebfc0a14d095b9690ce7d1f7fb8959d6da2b71c9f413d1b9a50 |
|
MD5 | 015020e5d2c499c4492ab20481f98e4a |
|
BLAKE2b-256 | 46825c6cd09b9134b501d389decc4b0715a0cf4140cefa4f90620f5e315cd80f |