public HyphenationCompoundWordTokenFilterFactory(Map<String, String> args) {super(args);dictFile = get(args, "dictionary");encoding = get(args, "encoding");hypFile = require(args, "hyphenator");minWordSize = getInt(args, "minWordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);minSubwordSize = getInt(args, "minSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_SUBWORD_SIZE);maxSubwordSize = getInt(args, "maxSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MAX_SUBWORD_SIZE);onlyLongestMatch = getBoolean(args, "onlyLongestMatch", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

public HyphenationCompoundWordTokenFilterFactory(IDictionary<string, string> args) : base(args){AssureMatchVersion();dictFile = Get(args, "dictionary");encoding = Get(args, "encoding");hypFile = Require(args, "hyphenator");minWordSize = GetInt32(args, "minWordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);minSubwordSize = GetInt32(args, "minSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_SUBWORD_SIZE);maxSubwordSize = GetInt32(args, "maxSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MAX_SUBWORD_SIZE);onlyLongestMatch = GetBoolean(args, "onlyLongestMatch", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
