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.3.tar.gz
(25.6 kB
view details)
Built Distribution
File details
Details for the file ratchada_utils-2.2.3.tar.gz
.
File metadata
- Download URL: ratchada_utils-2.2.3.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 | 74b7a507bc7525ca0f00f5ee57a2465e6865dbffae02fa18f445f927570682c7 |
|
MD5 | 503fe52167b0ffb53b27c0d5c18471c0 |
|
BLAKE2b-256 | 45958d78dd0cdf7796123fb4b8db9f0bb93845b63557f16c032e94f581993559 |
File details
Details for the file ratchada_utils-2.2.3-py3-none-any.whl
.
File metadata
- Download URL: ratchada_utils-2.2.3-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 | 7949f40ed468b3c6aaac35f817efdd54f16145fdc69b2b9f1dbb92813eb6e819 |
|
MD5 | adf6b1839f2c2f14cee1c8a7764ebc99 |
|
BLAKE2b-256 | b8488bfad3b08109317eca35b70e721f5c2afe74ac59b06a8c627fec5dc23be3 |