Git Product home page Git Product logo

gender-guess-indiannames's Introduction

Guess gender from indian names

Motivation

I was not able to find a open source library that guess gender from indian names. So made one.

Prerequisites

  • Python 3.7
  • Pipenv

Development - Setup instructions

  • Clone this repository.
  • cd to the repo
  • Activate pipenv pipenv shell
  • Install dependencies pipenv install
  • Fire up a python shell and type the following.
>>> from guess_indian_gender import IndianGenderPredictor
>>> i = IndianGenderPredictor()
>>> i.predict(name="adhi") # returns male

Installation

  • pip install guess-indian-gender

Accuracy

  • Currently the accuracy is 0.88. Any contributions are welcome to improve the accuracy.

Changelog

  • When the last letter is considered as a feature for gender detection the accuracy is 78%.
  • When the last four letters was considered the accuracy became 88%.

Todo

  • Convert to Pip package.
  • Convert to nice oops.
  • Improve accuracy to 95%.

Dataset credits

License

MIT. See license file for more info

gender-guess-indiannames's People

Contributors

v-adhithyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gender-guess-indiannames's Issues

Predicted gender is not consistent

I try to run the below example. Some times the model prediction is male and sometimes it's female.

1st Run:

from guess_indian_gender import IndianGenderPredictor
i = IndianGenderPredictor()
i.predict(name="adhi")

'male'

2nd Run:

from guess_indian_gender import IndianGenderPredictor
i = IndianGenderPredictor()
i.predict(name="adhi")

'female'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.