Moving to opennlp from regex