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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for ratchada_utils-2.2.3.tar.gz
Algorithm Hash digest
SHA256 74b7a507bc7525ca0f00f5ee57a2465e6865dbffae02fa18f445f927570682c7
MD5 503fe52167b0ffb53b27c0d5c18471c0
BLAKE2b-256 45958d78dd0cdf7796123fb4b8db9f0bb93845b63557f16c032e94f581993559

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ratchada_utils-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7949f40ed468b3c6aaac35f817efdd54f16145fdc69b2b9f1dbb92813eb6e819
MD5 adf6b1839f2c2f14cee1c8a7764ebc99
BLAKE2b-256 b8488bfad3b08109317eca35b70e721f5c2afe74ac59b06a8c627fec5dc23be3

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