Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nepali-normalizer-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nepali_normalizer-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for nepali-normalizer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 88317201c306f22bb5951c97af1d78931ee5ba72e0e1bed5758b7a283162e9e6
MD5 967185507317053a08ab1621515509d9
BLAKE2b-256 50a0d9259c8ef4ec292a1df8f454ab08ac70652e41c38284d84482ff1d7cec47

See more details on using hashes here.

File details

Details for the file nepali_normalizer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nepali_normalizer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75bad15412a432614befd218046c970f85ca31b8670519d5086e6bcdec5ad99e
MD5 691d2d307d459ca57cf439215e3fd43d
BLAKE2b-256 07183cf195dc421d41833993986ebb4e93472686121b36ead4e2eefb2ec84e20

See more details on using hashes here.

Supported by

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