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.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.1.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.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file nepali-normalizer-0.1.1.tar.gz.

File metadata

  • Download URL: nepali-normalizer-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2d79d8c9886150f2603809e4deb0735341c6b930c7404adc42ef6d952f4ccbd3
MD5 08986ce512080f22aec32c801f949fa6
BLAKE2b-256 b760d137e172af31b998b93c49927950418fa85681fbd9c9d48e72f4b53a276b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nepali_normalizer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f68420257d3f3258fdd3e7de11c649d8a5bb224602d09507cd9635363e2b319
MD5 cb6c06ca628acd738a580f3fc8a5d44b
BLAKE2b-256 9dbd86fa8a5cf53df5970f38267be61f926d107f0a3fe4a910adbc04e449348e

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