Inverse Text Normalization (ITN) for Indic languages
Project description
indic-itn
Inverse Text Normalization (ITN) for Indic languages.
Installation
To install the package in editable mode for development:
pip install -e .
To install dev dependencies as well:
pip install -e ".[dev]"
Usage
from indic_itn import HindiITN
# Instantiate the ITN processor
itn = HindiITN()
# Normalize text (placeholder)
# text = "कक्षा दो" -> "कक्षा 2"
Development and Tooling
This project uses modern tooling for maintaining code quality:
Code Formatting and Linting
We use Ruff and Black for formatting, linting, and imports sorting.
# Run Ruff lint check
ruff check .
# Run Ruff formatter check
ruff format --check .
# Run Black formatting check
black --check .
Type Checking
We use MyPy for static type checking.
mypy src tests
Running Tests
We use Pytest for unit testing along with pytest-cov for coverage.
pytest
Pre-commit Hooks
To set up pre-commit hooks:
pre-commit install
To run hooks on all files manually:
pre-commit run --all-files
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 indic_itn-0.1.0.tar.gz.
File metadata
- Download URL: indic_itn-0.1.0.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d93d12c79ff734eb58f481c5c70a7847cb3d42e5469e8d5ef0d6c58f1ccd953a
|
|
| MD5 |
1db732f6477440a92f9f560db9f19269
|
|
| BLAKE2b-256 |
b159b67b784926dc0862630858800831c67ebcdadb48e49e21cda9062fe9308c
|
File details
Details for the file indic_itn-0.1.0-py3-none-any.whl.
File metadata
- Download URL: indic_itn-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a24fa539c6515940535cebc812c2e8c61952f0624fd60c6ae549460acba509e
|
|
| MD5 |
d70428beaf2c140bd3ccf58ec6793794
|
|
| BLAKE2b-256 |
ef2c2edeaa477198f866288feccabb37abadaf29b8a75af19a0ee8619c51d821
|