Pormalizer
There are different unicode for lots of persian characters and for computers do not understand this. So before any NLP task first we need to normalize our text and come to singular form for any characters. We also remove any non-alphabet characters and all change all white-space characters into a single space.
Installation
Simply you can install it from PyPi by following command:
pip install -U pormalizer
or if you prefer the latest development version, you can install it from the source:
git clone https://github.com/xurvan/pormalizer.git
cd pormalizer
python setup.py install
Quickstart
A very simple usage could be like:
from pormalizer import Pormalizer
pormalizer = Pormalizer()
pormalizer.normalize("متن امتحانی")
Metadata
Release files for pormalizer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pormalizer-0.1.0.tar.gz | 8.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pormalizer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.6 kB
Release files / pormalizer-0.1.0.tar.gz
| Download URL | pormalizer-0.1.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86c9f5818b9a2a65c79ed7c89b62955e4f6661af2a0afbd2877236f31e6ab39d
|
|
BLAKE2b-256 checksum How to use checksums |
442c41222d9fb378b862fd203c9211a37735661f43f3c5695cc202dd6032590e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
|
Release files / pormalizer-0.1.0-py3-none-any.whl
| Download URL | pormalizer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3861e4062b00c0da62852deb171f6576ca08e338aa62d0833dda71382d2499d0
|
|
BLAKE2b-256 checksum How to use checksums |
69c077a66e63f070a3132c1b82575f30f4071bd2c29fc447a64edd94090077ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
|
Security for pormalizer 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.