public class RegexNameFinderFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER |
static interface |
RegexNameFinderFactory.RegexAble |
Constructor and Description |
---|
RegexNameFinderFactory() |
Modifier and Type | Method and Description |
---|---|
static RegexNameFinder |
getDefaultRegexNameFinders(Map<String,Pattern[]> config,
RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER... defaults)
Allows for use of selected Defaults as well as regexes from external
configuration
|
static RegexNameFinder |
getDefaultRegexNameFinders(RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER... defaults)
Returns a RegexNamefinder that will utilize specified default regexes.
|
public static RegexNameFinder getDefaultRegexNameFinders(Map<String,Pattern[]> config, RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER... defaults)
config
- a map where the key is a type, and the value is a
Pattern[]. If the keys clash with default keys, the config
map will windefaults
- the OpenNLP default regexesRegexNameFinder
public static RegexNameFinder getDefaultRegexNameFinders(RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER... defaults)
defaults
- the OpenNLP default regexesRegexNameFinder
Copyright © 2018 The Apache Software Foundation. All rights reserved.