public abstract class LinebasedWordListNerDetector extends WordListDetector
WordListDetector that reads from a Reader
expecting one word per line.RegexNamedEntityFactory.NamedPatternlog| Modifier | Constructor and Description |
|---|---|
protected |
LinebasedWordListNerDetector(String name,
NerTag type,
Locale lang,
boolean caseSensitive) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<String> |
loadWords() |
protected abstract Reader |
readFrom() |
acceptMatch, initPatterns, isCaseSensitivecreateNamedEntity, getName, getRegexes, getType, initprocessprotected final Set<String> loadWords() throws IOException
loadWords in class WordListDetectorIOExceptionprotected abstract Reader readFrom()
Copyright © 2016–2017 Redlink GmbH. All rights reserved.