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.
|
static void |
main(String[] args) |
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 regexespublic static RegexNameFinder getDefaultRegexNameFinders(RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER... defaults)
defaults
- the OpenNLP default regexespublic static void main(String[] args)
Copyright © 2015 The Apache Software Foundation. All rights reserved.