Last active
March 5, 2021 12:20
-
-
Save amrakm/f66c536c75de9fa4fe31f02003810cf8 to your computer and use it in GitHub Desktop.
#nlp #library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## pip install gender-guesser | |
import gender_guesser.detector as gender | |
def get_gender(x): | |
d = gender.Detector() | |
return d.get_gender(x.lower().capitalize()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment