simply-python.com
Saving output of NLTK text.concordance()
In NLP, sometimes users would like to search for series of phrases that contain particular keyword in a passage or web page. NLTK provides the function concordance() to locate and print series of p…