public abstract class CsvVocabularyNerDetector extends VocabularyDetector
VocabularyDetector that reads a Vocabulary from a
CSV file where the first column is the name and all further columns are
synonymsVocabularyDetector.CaseSensitivityRegexNamedEntityFactory.NamedPatternlog| Modifier | Constructor and Description |
|---|---|
protected |
CsvVocabularyNerDetector(String name,
NerTag type,
Locale lang,
VocabularyDetector.CaseSensitivity cs) |
protected |
CsvVocabularyNerDetector(String name,
NerTag type,
Locale lang,
VocabularyDetector.CaseSensitivity cs,
org.apache.commons.csv.CSVFormat csvFormat) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<VocabularyEntry> |
loadEntries() |
protected abstract Reader |
readFrom() |
createNamedEntity, getCaseSensitivity, getLanguage, getName, getRegexes, init, normalizeprocessprotected CsvVocabularyNerDetector(String name, NerTag type, Locale lang, VocabularyDetector.CaseSensitivity cs)
protected CsvVocabularyNerDetector(String name, NerTag type, Locale lang, VocabularyDetector.CaseSensitivity cs, org.apache.commons.csv.CSVFormat csvFormat)
protected final Collection<VocabularyEntry> loadEntries() throws IOException
loadEntries in class VocabularyDetectorIOExceptionprotected abstract Reader readFrom()
Copyright © 2016–2017 Redlink GmbH. All rights reserved.