Chapter 9 – Authorship Attribution

Local n-grams

Another form of classifier is local n-gram, which involves choosing the best features per-author, not globally for the entire dataset. I wrote a tutorial on using local n-grams for authorship attribution, which is available at https://github.com/robertlayton/authorship_tutorials/blob/master/LNGTutorial.ipynb

Get Python: Real-World Data Science now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.