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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ratchada_utils-2.2.6.tar.gz.
File metadata
- Download URL: ratchada_utils-2.2.6.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e73cbc2f95c6ed75b6fe81baa8a41f88214bb91cb2224228d27e936b28a12db9
|
|
| MD5 |
58cade532ac3eddc66b54863ddeb4715
|
|
| BLAKE2b-256 |
432c33ebb71409a1a2ef2d4d27093043cc46991d74f1480325e025715e32de37
|
File details
Details for the file ratchada_utils-2.2.6-py3-none-any.whl.
File metadata
- Download URL: ratchada_utils-2.2.6-py3-none-any.whl
- Upload date:
- Size: 26.0 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 |
01dfd7b47767fa7bb131b4aeed99b08c4fa420e5af78fe321cc6cadbf7cf6e21
|
|
| MD5 |
7a0d59ba9a77a75d517d4a7880dbb2d7
|
|
| BLAKE2b-256 |
8b9b94fa9eb861c3e878d55147ebe0e4d5c94687bb2acc04c974c9daa132c20e
|