Registry / ai-ml / urduhack

urduhack

JSON →
library1.1.1pypypiunverified

A Natural Language Processing (NLP) library for the Urdu language, providing tokenization, normalization, lemmatization, and POS tagging. Current version is 1.1.1, released in 2020. The project appears to be in maintenance mode with last commit in 2021.

pip install urduhack
INSTALL
IMPORT
SIG · URDUHACK
U
urduhack
ai-mlpythonv1.1.1
Install
26.2s avg
Import
Disk
743MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 123.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 26.2s · import 0.000s · 2150.4MB
743MB installed
● package 743MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

urduhack
import urduhack
import urduhack

Basic usage: import urduhack and call tokenize on Urdu text.

import urduhack # Example: tokenize a sentence text = "اردو زبان پاکستان کی قومی زبان ہے۔" tokens = urduhack.tokenize(text) print(tokens)
Debug
Known issues
gotchaurduhack.tokenize returns lists of tokens, not spaCy-like objects. Do not expect .text attributes.
fix
Treat output as a plain list of strings.
affects: all
deprecatedThe library has not been updated since 2021 and may not work with Python 3.10+. Dependencies like TensorFlow may be outdated.
fix
Consider using alternatives like `urdu-words` or `hazm` for Persian/Urdu, or fork the library to update dependencies.
affects: >= 1.0.0
gotchaurduhack.normalize and urduhack.lemmatize require downloading models on first run. Internet connection needed.
fix
Run `urduhack.download()` or let the functions auto-download.
affects: all
Upgrade
Version history
1.1.1latest on PyPI · released Jul 6, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
26
OpenAI (training)
1
Resources
urduhack — pip install urduhack · libregistry