A Python library for text processing and utilities related to the Ratchada Whisper model.
You can install ratchada_utils using pip:
pip install ratchada_utilsTo install from source, clone the repository and run:
git clone https://github.com/yourusername/ratchada_utils.git
cd ratchada_utils
pip install .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']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"])- Python 3.10 or higher
- The Requirements are located in
requirements.txt
This project is licensed under the MIT License - see the LICENSE file for details.
Please made contact on the official repository of this project.