Skip to content

S-Farooq/character-personality-catcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

character-personality-catcher

Testing IBM BlueMix NLP Service on a Fictional First-Person Novel Character

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.

To use this code:

  1. Replace username, password strings with your credentials in retrieve_personality.py
  2. 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.
  3. Once your novel is separated by chapters, run retrieve_personality.py to save personality tree in bin.dat (sample has been provided)
  4. Run chart_personality.py to create the charts (samples provided in Sample Plots directory)

About

Testing IBM BlueMix NLP Service on a Fictional First-Person Novel Character

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages