Detecting the gender of Persian names with automatic cleaning of input
Project description
NameGenderFA
Detecting the gender of Persian names with automatic cleaning of input
Example:
from NameGenderFA import NameGenderFA
gd=NameGenderFA.Gender_detector()
name='علی123! عزیزی'
gender, cleaned_name=gd.detect(name)
output: ('male', 'علی')
gender: male/female/None
cleaned_name: cleaned name
Gender_detector.perfixes: removes some perfixes like "سید", you can set it manually
Gender_detector.replace_chars: replace some characters like 'ي' to 'ی' or 'السادات' to ''
also punctuations and numbers will be remove.
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
File details
Details for the file NameGenderFA-0.0.3.tar.gz
.
File metadata
- Download URL: NameGenderFA-0.0.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 195630d54461bf3f0cfd34233096473384cfd37dda4edaf37464ef391eb7f77e |
|
MD5 | 3e04f056566d8f25cc6a5c3e3bbd6024 |
|
BLAKE2b-256 | 70ad79508812b1f07c1a35f258415a29378fb115e45525df574a0e26ee915019 |
File details
Details for the file NameGenderFA-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: NameGenderFA-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b64f526e97357a20963486e792fe840b1820548885228ef69b8c43dd481446e5 |
|
MD5 | 68f3960f29135203754cb93bb5a36d63 |
|
BLAKE2b-256 | cdd4241ab9e0b47eebb4fa58dbc4edb7895e4f70bfa8a0943069b41c2f195266 |