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

Uploaded Source

Built Distribution

ratchada_utils-2.2.5-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for ratchada_utils-2.2.5.tar.gz
Algorithm Hash digest
SHA256 3172519843326d2856f18fe7507c5df8c08647518efe82ce45d8c8944d477ebb
MD5 bf31d3cfb8e30922bdf56dcaf455201a
BLAKE2b-256 8fc886b310838aae6eed3418f52466dffa10c02907d961bd656842bf7c46fe90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ratchada_utils-2.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e0d2fd8f5623b527ab81d5c5509b173d3f84fb364f5e5ee5c69734b9c2200265
MD5 94ff01ea4f6cb05319221c2b4557fef2
BLAKE2b-256 d35ec8912c840b768a830e2bbb84e39e2d2da7d4c123b396de5c37b78608eddb

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