stephanie

stephanie / test / 0.3.0

README.md

Introduction

This algorithm is a working demo of the guide for how to host your NLTK model on the Algorithmia platform, but of course feel free to use it anywhere you want to guess a persons gender based on their name. 

The pickled model used in the source code follows the NLTK tutorial for classifying text and the feature selected is the last letter of a person's name.

Input

  • Required: String

Output

  • Object: {'gender': 'male'}

Credits

The model and code example used in this demo is modified and taken from: Natural Language Processing with Python by Steven Bird, Ewan Klein, and Edward Loper, O'Reilly Media, 978-0-596-51649-9 via the online edition: http://www.nltk.org/book/