I use regexner to find named entities that are not in the default set of Stanford NLP and it works fine. However, when I add ner annotator, it annotates tokens that match my regular expression with default tags. How can I overwrite default annotations?
def createNLPPipelineRegex(): StanfordCoreNLP = {
val props = new Properties()
props.put("regexner.mapping", "regex.txt")
props.put("annotators", "tokenize, ssplit, regexner, pos, lemma, ner")
props.put("tokenize.options", "untokenizable=noneKeep,normalizeParentheses=false")
new StanfordCoreNLP(props)
}