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.2.0.1.tar.gz (85.4 kB view details)

Uploaded Source

Built Distribution

infer_gender-0.2.0.1-py3-none-any.whl (85.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: infer-gender-0.2.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.2.0.1.tar.gz
Algorithm Hash digest
SHA256 4eaf66da6e78c15797a5829882aee3a97384194ea86a59698a8c0ce4385802f1
MD5 8d0b626213d9968bfec524e8d946a863
BLAKE2b-256 a174c6cc8c79a9f91e9215d1658917933d0dc1ac3a0411db6ad40aa97bc799b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infer_gender-0.2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 85.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.2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45518da814d72e8583d03a75265aef0036e6e4cc566c0f83e066f67ef73c608d
MD5 9398d807afe813f965d9f8ea301e0bb2
BLAKE2b-256 c8e1b117f65d5ed0db54d2114e7f5db239e27f7f1a222787a00ff8b1c01d385e

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