Skip to content

Instantly share code, notes, and snippets.

View evanmiltenburg's full-sized avatar

Emiel van Miltenburg evanmiltenburg

View GitHub Profile
# modified from: https://gist.github.com/dellis23/6174914/
# - Added NLTK, which simplifies the chain and ngram logic.
# To use this script, you need to have downloaded the punkt
# data like this:
#
# import nltk
# nltk.download('punkt')
#
# - No more occasional KeyErrors.