Giter VIP home page Giter VIP logo

ksdkamesh99 / ling-gender Goto Github PK

View Code? Open in Web Editor NEW
28.0 2.0 13.0 23.72 MB

A Natural Language Processing model trained with over 1,00,000 (1 Lakh) names is used to predict a gender of a person based on the first name of the person.This model is created using Long Short Term Memory(LSTM) a variant of Recurrent Nueral Network which has training accuracy of 99.35% and tested over 11,000 samples with a test accuracy of 89.08% which is quite high in nlp for out of sample test cases.

License: MIT License

Jupyter Notebook 98.59% Python 1.41%
nlp-machine-learning lstm-neural-networks gender-classification gender-detection gender-from-name deep-learning ling-gender recurrent-nueral-network

ling-gender's Introduction

👨Ling-Gender👩

📌 Introduction:-

A Natural Language Processing model trained with over 1,00,000 (1 Lakh) names is used to predict a gender of a person based on the first name of the person.This model is created using Long Short Term Memory(LSTM) a variant of Recurrent Nueral Network which has training accuracy of 99.35% and tested over 11,000 samples with a test accuracy of 89.08% which is quite high in nlp for out of sample test cases.

Logo

🏃‍♂️ Local Installation

  1. Drop a ⭐ on the Github Repository.

  2. Clone the Repo by going to your local Git Client and pushing in the command:

https://github.com/ksdkamesh99/Ling.git
  1. Install the Packages:
pip install -r requirements.txt
  1. At last, Go to 3.7.7 Python interpreter(Make Sure to create virtual env).
#Import Ling as l in any python file/Interpreter(note it is present in the same directory)
import Ling as l
print(l.gender("kamesh"))
# Output will be 1 which means male
print(l.gender("sudha"))
#Output will be 0 which means female
  1. Screenshots will be updated below.

📧Contact:-

For any kind of suggesstions/ help in package regarding improving accuracy of model. Please mail me at [email protected].

📜 LICENSE

MIT

ling-gender's People

Contributors

dependabot[bot] avatar ksdkamesh99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ling-gender's Issues

Need to create a swagger API

Till now we can operate the model to predict name using command line. But need to make a flask swagger interface for making it used with GUI

Error downloading model

hello friend i have this problem when try download you repo but i have problems downloading your model

git-lfs/2.12.1 (GitHub; linux amd64; go 1.13.4)
git version 2.20.1

$ git-lfs filter-process
Error downloading object: model.h5 (6d1a6e1): Smudge error: Error downloading model.h5 (6d1a6e18dc110dc4ed2d3bd4122a8269b9ce89a2245d185953907a80011f7208): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
batch response
github.com/git-lfs/git-lfs/errors.newWrappedError
	/tmp/docker_run/src/git-lfs/amd64/errors/types.go:198
github.com/git-lfs/git-lfs/errors.Wrap
	/tmp/docker_run/src/git-lfs/amd64/errors/errors.go:74
github.com/git-lfs/git-lfs/tq.(*tqClient).Batch
	/tmp/docker_run/src/git-lfs/amd64/tq/api.go:77
github.com/git-lfs/git-lfs/tq.Batch
	/tmp/docker_run/src/git-lfs/amd64/tq/api.go:40
github.com/git-lfs/git-lfs/tq.(*TransferQueue).enqueueAndCollectRetriesFor
	/tmp/docker_run/src/git-lfs/amd64/tq/transfer_queue.go:559
github.com/git-lfs/git-lfs/tq.(*TransferQueue).collectBatches.func1
	/tmp/docker_run/src/git-lfs/amd64/tq/transfer_queue.go:453
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1357
Error downloading model.h5 (6d1a6e18dc110dc4ed2d3bd4122a8269b9ce89a2245d185953907a80011f7208)
github.com/git-lfs/git-lfs/errors.newWrappedError
	/tmp/docker_run/src/git-lfs/amd64/errors/types.go:198
github.com/git-lfs/git-lfs/errors.Wrapf
	/tmp/docker_run/src/git-lfs/amd64/errors/errors.go:85
github.com/git-lfs/git-lfs/lfs.(*GitFilter).downloadFile
	/tmp/docker_run/src/git-lfs/amd64/lfs/gitfilter_smudge.go:115
github.com/git-lfs/git-lfs/lfs.(*GitFilter).Smudge
	/tmp/docker_run/src/git-lfs/amd64/lfs/gitfilter_smudge.go:76
github.com/git-lfs/git-lfs/commands.smudge
	/tmp/docker_run/src/git-lfs/amd64/commands/command_smudge.go:127
github.com/git-lfs/git-lfs/commands.filterCommand
	/tmp/docker_run/src/git-lfs/amd64/commands/command_filter_process.go:120
github.com/spf13/cobra.(*Command).execute
	/tmp/docker_run/src/git-lfs/amd64/vendor/github.com/spf13/cobra/command.go:766
github.com/spf13/cobra.(*Command).ExecuteC
	/tmp/docker_run/src/git-lfs/amd64/vendor/github.com/spf13/cobra/command.go:852
github.com/spf13/cobra.(*Command).Execute
	/tmp/docker_run/src/git-lfs/amd64/vendor/github.com/spf13/cobra/command.go:800
github.com/git-lfs/git-lfs/commands.Run
	/tmp/docker_run/src/git-lfs/amd64/commands/run.go:103
main.main
	/tmp/docker_run/src/git-lfs/amd64/git-lfs.go:33
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1357
Smudge error
github.com/git-lfs/git-lfs/errors.newWrappedError
	/tmp/docker_run/src/git-lfs/amd64/errors/types.go:198
github.com/git-lfs/git-lfs/errors.NewSmudgeError
	/tmp/docker_run/src/git-lfs/amd64/errors/types.go:284
github.com/git-lfs/git-lfs/lfs.(*GitFilter).Smudge
	/tmp/docker_run/src/git-lfs/amd64/lfs/gitfilter_smudge.go:85
github.com/git-lfs/git-lfs/commands.smudge
	/tmp/docker_run/src/git-lfs/amd64/commands/command_smudge.go:127
github.com/git-lfs/git-lfs/commands.filterCommand
	/tmp/docker_run/src/git-lfs/amd64/commands/command_filter_process.go:120
github.com/spf13/cobra.(*Command).execute
	/tmp/docker_run/src/git-lfs/amd64/vendor/github.com/spf13/cobra/command.go:766
github.com/spf13/cobra.(*Command).ExecuteC
	/tmp/docker_run/src/git-lfs/amd64/vendor/github.com/spf13/cobra/command.go:852
github.com/spf13/cobra.(*Command).Execute
	/tmp/docker_run/src/git-lfs/amd64/vendor/github.com/spf13/cobra/command.go:800
github.com/git-lfs/git-lfs/commands.Run
	/tmp/docker_run/src/git-lfs/amd64/commands/run.go:103
main.main
	/tmp/docker_run/src/git-lfs/amd64/git-lfs.go:33
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1357

Current time in UTC: 
2020-11-08 23:23:08

ENV:
LocalWorkingDir=/media/crisfon6/Cosas/desarrollo/practicas/primerproyecto/gender/testLing/model/model.h5
LocalGitDir=/media/crisfon6/Cosas/desarrollo/practicas/primerproyecto/gender/testLing/model/model.h5/.git
LocalGitStorageDir=/media/crisfon6/Cosas/desarrollo/practicas/primerproyecto/gender/testLing/model/model.h5/.git
LocalMediaDir=/media/crisfon6/Cosas/desarrollo/practicas/primerproyecto/gender/testLing/model/model.h5/.git/lfs/objects
LocalReferenceDirs=
TempDir=/media/crisfon6/Cosas/desarrollo/practicas/primerproyecto/gender/testLing/model/model.h5/.git/lfs/tmp
ConcurrentTransfers=8
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
LfsStorageDir=/media/crisfon6/Cosas/desarrollo/practicas/primerproyecto/gender/testLing/model/model.h5/.git/lfs
AccessDownload=none
AccessUpload=none
DownloadTransfers=basic,lfs-standalone-file
UploadTransfers=basic,lfs-standalone-file
GIT_EXEC_PATH=/usr/lib/git-core
GIT_DIR=/media/crisfon6/Cosas/desarrollo/practicas/primerproyecto/gender/testLing/model/model.h5/.git




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.