https://www.airpair.com/nlp/keyword-extraction-tutorial
1 Introduction
In this tutorial you will learn how to extract keywords automatically using both Python and Java, and you will also understand its related tasks such as keyphrase extraction with a controlled vocabulary (or, in other words, text classification into a very large set of possible classes) and terminology extraction.
The tutorial is organized as follows: First, we discuss a little bit of background — what are keywords, and how does a keyword algorithm work? Then we demonstrate a simple, but in many cases effective, keyword extraction with a Python library called RAKE. And finally, we show how a Java tool called Maui extracts keywords using a machine-learning technique.