This is support code for a medium article publication: Who is Holden Caulfield? A Natural Language Processing Approach
The code supports analysis by retrieving a personality tree from IBM BlueMix NLP service and charting it on plots using the Big Five Model.
- Replace username, password strings with your credentials in retrieve_personality.py
- The text_edit.py is very specific to separating chapters for The Catcher in the Rye, you will have to replace that with a function of your own that can separate your choice of input text by chapters.
- Once your novel is separated by chapters, run retrieve_personality.py to save personality tree in bin.dat (sample has been provided)
- Run chart_personality.py to create the charts (samples provided in Sample Plots directory)