Skip to main content

Gender Classifier ML Package for classifying gender using firstname

Project description

GenderClassifier Tool

  • For classifying gender of individuals using their first names

Installation

pip install genderclf

Usage

Basic usage

>>> from genderclf import GenderClassifier
>>> g = GenderClassifier()
>>> g.name = 'Hemant'
>>> g.predict()

Loading Different Models

>>> from genderclf import GenderClassifier
>>> g = GenderClassifier()
>>> g.name = 'Hansa'
>>> g.load('logit')
>>> g.predict()

Using the Classify Method

>>> from genderclf import GenderClassifier
>>> g = GenderClassifier()
>>> g.load('nb')
>>> g.classify("Hemant")

Check Gender

>>> from genderclf import GenderClassifier
>>> g = GenderClassifier()
>>> g.is_male("Hemant")
>>> from genderclf import GenderClassifier
>>> g = GenderClassifier()
>>> g.is_female("Hansa")

Requirements

  • Joblib
  • Scikit-learn

Maintainer

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

genderclf-0.0.1.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genderclf-0.0.1-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file genderclf-0.0.1.tar.gz.

File metadata

  • Download URL: genderclf-0.0.1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.2 Windows/10

File hashes

Hashes for genderclf-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c58db3211a3da746d714e36820f0a7a0c7d53aea574b5e439ba5a34506ea0e6a
MD5 5e2bbbca0a4f208f88713e540b710f05
BLAKE2b-256 ee81782f62d8f96df2e190122c7b8c44b83af0d7ca3afb3c6b7346cf339591a3

See more details on using hashes here.

File details

Details for the file genderclf-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: genderclf-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.2 Windows/10

File hashes

Hashes for genderclf-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea811eab4960b9dc6cf554cbba06fd54a1bbcc21147f188e678879040c96c6a5
MD5 3a65e93413a1148fb54daeeac0b7b1e3
BLAKE2b-256 ec1d3b64fe3abd279000078a99efc2eb9d20e47e9c62599139a84b3233c29771

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page