Skip to main content

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.

Metadata

Release files for ratchada-utils 2.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ratchada-utils 2.2.6
File Size Uploaded
ratchada_utils-2.2.6.tar.gz 26.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ratchada-utils 2.2.6
File Interpreter ABI Platform
ratchada_utils-2.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 52.5 kB

Release files / ratchada_utils-2.2.6.tar.gz

Download URL ratchada_utils-2.2.6.tar.gz
Size 26.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e73cbc2f95c6ed75b6fe81baa8a41f88214bb91cb2224228d27e936b28a12db9
BLAKE2b-256 checksum
How to use checksums
432c33ebb71409a1a2ef2d4d27093043cc46991d74f1480325e025715e32de37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / ratchada_utils-2.2.6-py3-none-any.whl

Download URL ratchada_utils-2.2.6-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01dfd7b47767fa7bb131b4aeed99b08c4fa420e5af78fe321cc6cadbf7cf6e21
BLAKE2b-256 checksum
How to use checksums
8b9b94fa9eb861c3e878d55147ebe0e4d5c94687bb2acc04c974c9daa132c20e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

2.2.6 This release

2 release files

2.2.5

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.0

2 release files

2.1.22

2 release files

2.1.21

2 release files

2.1.20

2 release files

2.1.19

2 release files

2.1.18

2 release files

2.1.17

2 release files

2.1.16

2 release files

2.1.15

2 release files

2.1.14

2 release files

2.1.13

2 release files

2.1.12

2 release files

2.1.11

2 release files

2.1.10

2 release files

2.1.9

2 release files

2.1.8

2 release files

2.1.7

2 release files

2.1.6

2 release files

2.1.5

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page