Package opennlp.tools.namefind
Class RegexNameFinderFactory
java.lang.Object
opennlp.tools.namefind.RegexNameFinderFactory
Returns a 
RegexNameFinder based on a selection of
 defaults or a configuration and a selection of defaults.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of typical regex expressions available in OpenNLP.static interface
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic RegexNameFindergetDefaultRegexNameFinders(Map<String, Pattern[]> config, RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER... defaults) Allows for use of selected Defaults as well as regexes from external configuration.static RegexNameFinderRetrieves aRegexNameFinderthat will utilize specified default regexes.
- 
Constructor Details- 
RegexNameFinderFactorypublic RegexNameFinderFactory()
 
- 
- 
Method Details- 
getDefaultRegexNameFinderspublic 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.- Parameters:
- config- A- Mapwhere the key is a type, and the value is a- Pattern. If a key clashes with one of the default keys, the config map entry will be taken.
- defaults- One or more of the default- RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDERenum values.
- Returns:
- A RegexNameFinderinstance.
 
- 
getDefaultRegexNameFinderspublic static RegexNameFinder getDefaultRegexNameFinders(RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER... defaults) Retrieves aRegexNameFinderthat will utilize specified default regexes.- Parameters:
- defaults- One or more of the default- RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDERenum values.
- Returns:
- A RegexNameFinderinstance.
 
 
-