When the data being processed is specialized, then we often need to train a model to address that specific problem domain. In this recipe, we will use OpenNLP to illustrate how this is done.
We will need to create a file that has been marked up to identify location entities. The TokenNameFinderModel class will use these markups to train a model. We will then test the model to see how well it worked.