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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: infer-gender-0.2.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 159fb911e2bc0a9066dd8bee34ad6e5f7c5fefc46dc294a05afb0f43c08bdf15
MD5 de90c9cd9b7c37bf02a58e2369f638e5
BLAKE2b-256 6fa5bb99e9250c910b749e75a62919fa6bc74514e6d3c42803ca0f18024d6c04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infer_gender-0.2.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c268ac6802f999b24aef5edd0def6571e3eaebe4fd1c0a8d4acc618936a12ea
MD5 5bd05b0078b953af81b3da6c6af41cb2
BLAKE2b-256 dc0754163526ba255f35c8fd78ab2e3c7527c4acb5fabe8fdd9d3d47787d0d17

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