public abstract class WordListDetector extends RegexNerDetector
RegexNamedEntityFactory.NamedPatternlog| Constructor and Description |
|---|
WordListDetector(String name,
NerTag type,
Locale lang,
boolean caseSensitive) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptMatch(String word)
Ensure that only matches are accepted that are actual words in the word list
|
protected Map<String,List<Pattern>> |
initPatterns() |
boolean |
isCaseSensitive() |
protected abstract Set<String> |
loadWords() |
createNamedEntity, getName, getRegexes, getType, initprocessprotected Map<String,List<Pattern>> initPatterns() throws IOException
initPatterns in class RegexNerDetectorIOExceptionprotected abstract Set<String> loadWords() throws IOException
IOExceptionpublic boolean isCaseSensitive()
protected boolean acceptMatch(String word)
acceptMatch in class RegexNerDetectorword - the valueCopyright © 2016–2017 Redlink GmbH. All rights reserved.