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
NameGenderFA-0.0.3.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for NameGenderFA-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b64f526e97357a20963486e792fe840b1820548885228ef69b8c43dd481446e5 |
|
MD5 | 68f3960f29135203754cb93bb5a36d63 |
|
BLAKE2b-256 | cdd4241ab9e0b47eebb4fa58dbc4edb7895e4f70bfa8a0943069b41c2f195266 |