/** Default constructor the initialises the configuration with the default values */ public EntityLinkerConfig() { setMinSearchTokenLength(DEFAULT_MIN_SEARCH_TOKEN_LENGTH); setMaxSuggestions(DEFAULT_SUGGESTIONS); setMaxSearchTokens(DEFAULT_MAX_SEARCH_TOKENS); setRedirectProcessingMode(DEFAULT_REDIRECT_PROCESSING_MODE); typeMappings = new HashMap<String, UriRef>(DEFAULT_ENTITY_TYPE_MAPPINGS); unmodTypeMappings = Collections.unmodifiableMap(typeMappings); setDefaultDcType(typeMappings.remove(null)); setNameField(DEFAULT_NAME_FIELD); setRedirectField(DEFAULT_REDIRECT_FIELD); setTypeField(DEFAULT_TYPE_FIELD); setMaxNotFound(DEFAULT_MAX_NOT_FOUND); setMinTokenMatchFactor(DEFAULT_MIN_TOKEN_MATCH_FACTOR); }