Skip to main content

Ratchada Utils are Python package use with Ratchada Whisper model utilities.

Project description

Ratchada_Utils

License: MIT PyPI version Python Versions

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

  1. Python 3.10 or higher
  2. 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


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.21.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

ratchada_utils-2.1.21-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file ratchada_utils-2.1.21.tar.gz.

File metadata

  • Download URL: ratchada_utils-2.1.21.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

Hashes for ratchada_utils-2.1.21.tar.gz
Algorithm Hash digest
SHA256 dbb01473dafb990a46866032bc0397db60b3853d0b162fb2d594943737351f9f
MD5 3d6b11c82bcb3b806ea55cbe9d6664c8
BLAKE2b-256 53a164b1d4f4a5d6ac6adb5ec23a901a8979dd1bf8cb4eeed98f541ab2ca6f2b

See more details on using hashes here.

File details

Details for the file ratchada_utils-2.1.21-py3-none-any.whl.

File metadata

File hashes

Hashes for ratchada_utils-2.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 a8a2a8c8c05897cf72608ecd3566732fc8cd016faa9b20b8e6c40fb68839f4c1
MD5 8e29800844e938d83eef0d8efd367072
BLAKE2b-256 b2b3254c77d2c638ea8aad8c2769683087b845c3be8d2569d9d23a53e8699d20

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page