This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |