Advanced normalization toolkit for Nepali text processing
Project description
Nepali Text Normalizer
Advanced normalization toolkit for Nepali text processing. This package provides tools to normalize Nepali text, including vowel normalization, punctuation removal, Unicode standardization, and numeral conversion.
This tool helps evaluators evaluate WER normalizing nepali text better.
Installation
Install the package via pip:
pip install nepali-normalizer
Example
# example_script.py
from nepali_normalizer import NepaliTextNormalizerWerCer
# Define the normalizer
normalizer = NepaliTextNormalizerWerCer()
# Test strings
test_string1 = "मेरी आमा राम्री छिन asdf '' 1234"
test_string2 = "मेरि आमा राम्रि छीन asdf '''' 1234"
# Normalize and print results
test_string1_normalized = normalizer(test_string1)
test_string2_normalized = normalizer(test_string2)
print(f"Test string 1: {test_string1_normalized}")
print(f"Test string 2: {test_string2_normalized}")
# output
# Test string 1: मेरी आमा राम्री छीन asdf १२३४
# Test string 2: मेरी आमा राम्री छीन asdf १२३४
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nepali-normalizer-0.1.0.tar.gz.
File metadata
- Download URL: nepali-normalizer-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88317201c306f22bb5951c97af1d78931ee5ba72e0e1bed5758b7a283162e9e6
|
|
| MD5 |
967185507317053a08ab1621515509d9
|
|
| BLAKE2b-256 |
50a0d9259c8ef4ec292a1df8f454ab08ac70652e41c38284d84482ff1d7cec47
|
File details
Details for the file nepali_normalizer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nepali_normalizer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75bad15412a432614befd218046c970f85ca31b8670519d5086e6bcdec5ad99e
|
|
| MD5 |
691d2d307d459ca57cf439215e3fd43d
|
|
| BLAKE2b-256 |
07183cf195dc421d41833993986ebb4e93472686121b36ead4e2eefb2ec84e20
|