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.1.22.tar.gz
(25.6 kB
view details)
Built Distribution
File details
Details for the file ratchada_utils-2.1.22.tar.gz
.
File metadata
- Download URL: ratchada_utils-2.1.22.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 | 7b60f5b36d03f1289c7771fe5239c3e06f41cb75eaf584b19e06d981bff44603 |
|
MD5 | 14df81318564cd98a3126ca4602961f9 |
|
BLAKE2b-256 | 56e8556b03a7713a2869b9923437b61fe0d2c71242635f4f891c6b325f24ec68 |
File details
Details for the file ratchada_utils-2.1.22-py3-none-any.whl
.
File metadata
- Download URL: ratchada_utils-2.1.22-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 | 04ab4523c875f59e053a96cb7de9455e38e236fcbf99b80e33e1a577007a5f5c |
|
MD5 | 9360a8078733060a576b74cfdf7fa558 |
|
BLAKE2b-256 | 1084ba9de7129e747b2b24b26a9c9d3a97bf43f78f306a7b28a77219a8b9f66e |