Skip to main content

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


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 details)

Uploaded Source

Built Distribution

NameGenderFA-0.0.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for NameGenderFA-0.0.3.tar.gz
Algorithm Hash digest
SHA256 195630d54461bf3f0cfd34233096473384cfd37dda4edaf37464ef391eb7f77e
MD5 3e04f056566d8f25cc6a5c3e3bbd6024
BLAKE2b-256 70ad79508812b1f07c1a35f258415a29378fb115e45525df574a0e26ee915019

See more details on using hashes here.

File details

Details for the file NameGenderFA-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for NameGenderFA-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b64f526e97357a20963486e792fe840b1820548885228ef69b8c43dd481446e5
MD5 68f3960f29135203754cb93bb5a36d63
BLAKE2b-256 cdd4241ab9e0b47eebb4fa58dbc4edb7895e4f70bfa8a0943069b41c2f195266

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page