Package opennlp.tools.namefind
Klasse 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.-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumEnumeration of typical regex expressions available in OpenNLP.static interface -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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.
-
Konstruktordetails
-
RegexNameFinderFactory
public RegexNameFinderFactory()
-
-
Methodendetails
-
getDefaultRegexNameFinders
public 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.- Parameter:
config- AMapwhere the key is a type, and the value is aPattern. If a key clashes with one of the default keys, the config map entry will be taken.defaults- One or more of the defaultRegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDERenum values.- Gibt zurück:
- A
RegexNameFinderinstance.
-
getDefaultRegexNameFinders
public static RegexNameFinder getDefaultRegexNameFinders(RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER... defaults) Retrieves aRegexNameFinderthat will utilize specified default regexes.- Parameter:
defaults- One or more of the defaultRegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDERenum values.- Gibt zurück:
- A
RegexNameFinderinstance.
-