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
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.2.tar.gz
(85.9 kB
view details)
Built Distribution
File details
Details for the file infer-gender-0.2.0.2.tar.gz
.
File metadata
- Download URL: infer-gender-0.2.0.2.tar.gz
- Upload date:
- Size: 85.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9339706da7370e94f084df304a476909d326f64b8197ea85bc305c1b27fddcab |
|
MD5 | 54844a43cbde2264ceae317fd35e205e |
|
BLAKE2b-256 | bf46d3822017b4dec78df0234d5e2a5338847e245b74d81e6afdd9b37f7b9db1 |
File details
Details for the file infer_gender-0.2.0.2-py3-none-any.whl
.
File metadata
- Download URL: infer_gender-0.2.0.2-py3-none-any.whl
- Upload date:
- Size: 87.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 487369d22057c24df2885e09501a2a579afb55b432c89b0b77a4eb0581bd5e02 |
|
MD5 | a522416dbd3b1472a1747fc7b3ff9c93 |
|
BLAKE2b-256 | 9d1bfeaf1f305c71aba35972f2e13aaba3026e241fe93fc1c791a706639e1911 |