/** Creates a new HunspellStemFilterFactory */ public HunspellStemFilterFactory(Map<String,String> args) { super(args); dictionaryFiles = require(args, PARAM_DICTIONARY); affixFile = get(args, PARAM_AFFIX); ignoreCase = getBoolean(args, PARAM_IGNORE_CASE, false); longestOnly = getBoolean(args, PARAM_LONGEST_ONLY, false); // this isnt necessary: we properly load all dictionaries. // but recognize and ignore for back compat getBoolean(args, "strictAffixParsing", true); // this isn't necessary: multi-stage stripping is fixed and // flags like COMPLEXPREFIXES in the data itself control this. // but recognize and ignore for back compat getInt(args, "recursionCap", 0); if (!args.isEmpty()) { throw new IllegalArgumentException("Unknown parameters: " + args); } }
/** Creates a new HunspellStemFilterFactory */ public HunspellStemFilterFactory(Map<String,String> args) { super(args); dictionaryFiles = require(args, PARAM_DICTIONARY); affixFile = get(args, PARAM_AFFIX); ignoreCase = getBoolean(args, PARAM_IGNORE_CASE, false); longestOnly = getBoolean(args, PARAM_LONGEST_ONLY, false); // this isnt necessary: we properly load all dictionaries. // but recognize and ignore for back compat getBoolean(args, "strictAffixParsing", true); // this isn't necessary: multi-stage stripping is fixed and // flags like COMPLEXPREFIXES in the data itself control this. // but recognize and ignore for back compat getInt(args, "recursionCap", 0); if (!args.isEmpty()) { throw new IllegalArgumentException("Unknown parameters: " + args); } }