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 enum
Enumeration of typical regex expressions available in OpenNLP.static interface
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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
Retrieves aRegexNameFinder
that 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
- AMap
where 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_FINDER
enum values.- Gibt zurück:
- A
RegexNameFinder
instance.
-
getDefaultRegexNameFinders
public static RegexNameFinder getDefaultRegexNameFinders(RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER... defaults) Retrieves aRegexNameFinder
that will utilize specified default regexes.- Parameter:
defaults
- One or more of the defaultRegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER
enum values.- Gibt zurück:
- A
RegexNameFinder
instance.
-