Class RegexNameFinderFactory


  • public class RegexNameFinderFactory
    extends java.lang.Object
    Returns a RegexNameFinder based on A selection of defaults or a configuration and a selection of defaults
    • Constructor Detail

      • RegexNameFinderFactory

        public RegexNameFinderFactory()
    • Method Detail

      • getDefaultRegexNameFinders

        public static RegexNameFinder getDefaultRegexNameFinders​(java.util.Map<java.lang.String,​java.util.regex.Pattern[]> config,
                                                                 RegexNameFinderFactory.DEFAULT_REGEX_NAME_FINDER... defaults)
        Allows for use of selected Defaults as well as regexes from external configuration
        Parameters:
        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 win
        defaults - the OpenNLP default regexes
        Returns:
      • main

        public static void main​(java.lang.String[] args)