public CJKBigramFilterFactory(Map<String,String> args) {super(args);int flags = 0;if (getBoolean(args, "han", true)) {flags |= CJKBigramFilter.HAN;}if (getBoolean(args, "hiragana", true)) {flags |= CJKBigramFilter.HIRAGANA;}if (getBoolean(args, "katakana", true)) {flags |= CJKBigramFilter.KATAKANA;}if (getBoolean(args, "hangul", true)) {flags |= CJKBigramFilter.HANGUL;}this.flags = flags;this.outputUnigrams = getBoolean(args, "outputUnigrams", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

public CJKBigramFilterFactory ( Map < String , String > args ) { super ( args ) ; int flags = 0 ; if ( getBoolean ( args , "han" , true ) ) { flags |= CJKBigramFilter . HAN ; } if ( getBoolean ( args , "hiragana" , true ) ) { flags |= CJKBigramFilter . HIRAGANA ; } if ( getBoolean ( args , "katakana" , true ) ) { flags |= CJKBigramFilter . KATAKANA ; } if ( getBoolean ( args , "hangul" , true ) ) { flags |= CJKBigramFilter . HANGUL ; } this . flags = flags ; this . outputUnigrams = getBoolean ( args , "outputUnigrams" , false ) ; if ( ! args . isEmpty ( ) ) { throw new IllegalArgumentException ( "Unknown parameters: " + args ) ; } }
public CJKBigramFilterFactory(IDictionary<string, string> args): base(args){CJKScript flags = 0;if (GetBoolean(args, "han", true)){flags |= CJKScript.HAN;}if (GetBoolean(args, "hiragana", true)){flags |= CJKScript.HIRAGANA;}if (GetBoolean(args, "katakana", true)){flags |= CJKScript.KATAKANA;}if (GetBoolean(args, "hangul", true)){flags |= CJKScript.HANGUL;}this.flags = flags;this.outputUnigrams = GetBoolean(args, "outputUnigrams", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
