avikj / Name-NationalOrigin-Classifier

Using a recurrent neural network in TensorFlow to predict national origin by last name.
32 stars 8 forks source link

Gender detection #1

Open beshoo opened 6 years ago

beshoo commented 6 years ago

Dear avikj. I am very new to python and tf, but i am php dev. i need a way to make Neural Network to know the gender of any giving name , i have 1m first name labeled with gender , what is the best way to start !

I am not sure if this program can understand Unicode names such Japanese names / not only Latin! BTW i want to pass the name to python file and it gave me the gender and percentage % please may you advice

avikj commented 6 years ago

The reason Unicode names don't work is that I encoded each letter as a one-hot vector with 26 possible values, one for each letter of the alphabet. You would need to alter this to have many more possible values to also account for Unicode characters You can check out a tutorial like this one on using tensorflow for sequence classification.