I have just touched a bit of the surface of the NLTK lib in python. With that said, can python NLTK do things like tell about who are the characters in a work of fiction? For instance you have play Hamlet. I would like to all the places were Hamlet shows up and in which act/scene does Hamlet appear with the Ghost. Also I am interested in creating concordances of fictional works. Is this functionality to be found in NLTK or is rather in something like Lucene/Solr and then NLTK uses those?
1 · February 16
OK everyone, here is the IPython notebook I was playing with:
Please let me know if you have any questions or trouble with it. You can't get to the ngramcounts.pickle file itself, unless you create a http://Wakari.io account. If you create a Wakari account, though, you can just click the button in the upper right and you'll get the notebook and the .pickle file.
0 · February 15