In this recipe, we will show one way of using OpenNLP to identify entities in a document. This technique does not use regular expressions, but rather a neural network model trained on date type entities.
Specifically, we will use the NameFinderME class, which uses the maximum entropy approach. We will download and use a model trained to detect dates in text. We will use another model to tokenize the text.