public abstract class LinebasedRegexListNerDetector extends RegexNerDetector
RegexDetector that reads from a Reader
expecting one regex pattern per line.
It will ignore lines with illegal formatted patternsRegexNamedEntityFactory.NamedPatternlog| Modifier | Constructor and Description |
|---|---|
protected |
LinebasedRegexListNerDetector(String name,
NerTag type,
String lang,
boolean caseSensitive) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,List<Pattern>> |
initPatterns() |
protected abstract Reader |
readFrom() |
acceptMatch, createNamedEntity, getName, getRegexes, getType, initprocessprotected final Map<String,List<Pattern>> initPatterns() throws IOException
initPatterns in class RegexNerDetectorIOExceptionprotected abstract Reader readFrom()
Copyright © 2016–2017 Redlink GmbH. All rights reserved.