News for hackers. Stuff that matters.
Re:NLP analysis of Pride and Prejudice by minimaxir on Wednesday December 14, 2016 @12:29PM (#13177792)
Hmm, why isn't the cell output included?

Additionally, Jupyter Notebooks on GitHub do not render; instead, you should visit the site of the original post: http://www.cytora.com/insights/2016/11/30/natural-language-p...

Re:NLP analysis of Pride and Prejudice by bunderbunder on Wednesday December 14, 2016 @01:11PM (#13178209)
They do if you don't strip the results before publishing, which seems to be what happened here.
Re:NLP analysis of Pride and Prejudice by minimaxir on Wednesday December 14, 2016 @02:06PM (#13178730)
From reading the commands, the cells were never even executed.
Re:NLP analysis of Pride and Prejudice by hribo on Wednesday December 14, 2016 @04:40PM (#13179907)
Cell output is now included in repository. Thanks for the feedback.
Re:NLP analysis of Pride and Prejudice by joemi on Wednesday December 14, 2016 @04:56PM (#13180027)
That original post on cytora seems quite a bit better to me than the github link since it gives more context. Thanks!
Re:NLP analysis of Pride and Prejudice by mendelbot on Wednesday December 14, 2016 @01:14PM (#13178234)
Check out textacy, a higher-level text library built on top of spaCy, for better keywords extraction:

https://github.com/chartbeat-labs/textacy

https://textacy.readthedocs.io/en/latest/api_reference.html#...

Re:NLP analysis of Pride and Prejudice by Xeoncross on Wednesday December 14, 2016 @12:31PM (#13177803)
Spacy is a great library and tutorials like this give a clear and simple path for testing it out. They even included a function for reading a file, rather than assuming the audience are all python programers.

(Not that reading a file is hard, but it's an extra few minutes as you google how to read a file in X language.)

Re:NLP analysis of Pride and Prejudice by czep on Wednesday December 14, 2016 @02:22PM (#13178860)
Spacy is awesome. The API is clean and powerful. I have been using it heavily over the past few months, using it almost exclusively for feature extraction now. I'm currently working on extracting subject-verb-object tuples, which is amazingly easy to do, because I am finding these to be much more powerful than unigrams or ngrams for classification.

Named Entity extraction in Spacy is another killer feature. It's been instrumental in some fraud detection work I've been doing as well.

Re:NLP analysis of Pride and Prejudice by Xeoncross on Wednesday December 14, 2016 @02:29PM (#13178920)
> working on extracting subject-verb-object tuples, which is amazingly easy to do

Can you share any of your work or give examples?

Re:NLP analysis of Pride and Prejudice by czep on Wednesday December 14, 2016 @07:29PM (#13181156)
This is not my work, but will show you how it's done: https://nicschrading.com/project/Intro-to-NLP-with-spaCy/
Re:NLP analysis of Pride and Prejudice by wodenokoto on Wednesday December 14, 2016 @01:15PM (#13178238)
They forgot to run the notebook before uploading the file to github, so there are no results. What a shame.

Anyway, this is the 2nd part of a 3 part tutorial. Full setup instructions and the 2 other parts are available here: https://github.com/cytora/pycon-nlp-in-10-lines

Re:NLP analysis of Pride and Prejudice by hribo on Wednesday December 14, 2016 @04:41PM (#13179914)
Output is not included in the notebook. Hope you still like the tutorial.
Re:NLP analysis of Pride and Prejudice by hribo on Thursday December 15, 2016 @04:30AM (#13183435)
* Output is NOW included in the notebook