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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: infer-gender-0.1.0.2.tar.gz
  • Upload date:
  • Size: 85.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3

File hashes

Hashes for infer-gender-0.1.0.2.tar.gz
Algorithm Hash digest
SHA256 ead1146fefaf4a4ef90faa6fd421c99c1b1f5ba5458491da906ff3202257cbc7
MD5 200c9e36c888be067e0e73fb70b70903
BLAKE2b-256 ebdafd31bac24c3a42f117aba3ea046b32c163d9a938963f2dbb8d8377a16ed7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infer_gender-0.1.0.2-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.10.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3

File hashes

Hashes for infer_gender-0.1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec49bfd4c0ee9d36fd16118692249e4bf275cf39eb8bc0464a773c5647c1c97
MD5 88ca7dc4ec8a9ebc4f0c1b818cc1503c
BLAKE2b-256 89fbcd19da1b0f5b981fa5b67e49d2727887b3046190b84cbb90ce06a6347cb2

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