Skip to main content

Infer gender from the Indian first name or full name

Project description

Infer Gender


Infers gender from the indian first name or full name.

Installation


Using pip

PyPi Version

You can install using the pip package manager by running

pip install infer-gender

Alternatively, you could install the latest version directly from Github:

pip install https://github.com/infer-gender/infer-gender/archive/master.zip

Using conda

You can install using the conda package manager by running

conda install -c conda-forge infer-gender

From source

Download the source code by cloning the repository or by pressing 'Download ZIP' on this page.

Install by navigating to the proper directory and running:

python setup.py install

Usage


from infer_gender import GenderPredictor
gp = GenderPredictor()

sample_names = ['katrina kaif','narendra modi','naga budigam','james bond','samantha']
predicted_genders = gp.predict_gender(sample_names)

for name,pred_gender in zip(sample_names,predicted_genders):
    print('{} --> {}'.format(name,pred_gender))
katrina kaif --> Female
narendra modi --> Male
naga budigam --> Male
james bond --> Male
samantha --> Female

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

infer-gender-0.1.0.1.tar.gz (85.4 kB view details)

Uploaded Source

Built Distribution

infer_gender-0.1.0.1-py3-none-any.whl (86.7 kB view details)

Uploaded Python 3

File details

Details for the file infer-gender-0.1.0.1.tar.gz.

File metadata

  • Download URL: infer-gender-0.1.0.1.tar.gz
  • Upload date:
  • Size: 85.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for infer-gender-0.1.0.1.tar.gz
Algorithm Hash digest
SHA256 8a28f76db1e8a262f28d4dd383fccc3a37cc97976823904b8ac7f85711bff99e
MD5 9ec5fc5cfc54b23e0bcafa7cd13cb697
BLAKE2b-256 9dae2d0bc530859225e7539be4550d3f241e1b7aa15f264c61580d142d3249cc

See more details on using hashes here.

File details

Details for the file infer_gender-0.1.0.1-py3-none-any.whl.

File metadata

  • Download URL: infer_gender-0.1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 86.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for infer_gender-0.1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af01f2c6c20ad24b712d1e8f31582d25a93effbac0cc5b92c8125e3a9b1da3d7
MD5 2ded9735ecf3b4d142959494f86720a2
BLAKE2b-256 e5df9ed9c4593f3e38631387e1c4cc86587dca4c8afba744e9e9c6b5f5093c1c

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