When there are no specialized models for SBD, it becomes necessary to train a new model. In this recipe, we will illustrate how this can be performed using the OpenNLP API. We will create a set of training data and use it to train a neural network model. The model will then be tested using the OpenNLP technique illustrated in the Using OpenNLP to perform SBD recipe.
Training a neural network to perform SBD with specialized text
Getting ready
To prepare, we need to do the following:
- Create new Maven project
- Add the following dependency to the POM file:
<dependency>
<groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools</artifactId>
<version>1.9.0</version>
</dependency...