java: public OpenNLPTokenizerFactory(Map<String,String> args) {super(args);sentenceModelFile = require(args, SENTENCE_MODEL);tokenizerModelFile = require(args, TOKENIZER_MODEL);if ( ! args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
C#: public OpenNLPTokenizerFactory(IDictionary<string, string> args): base(args){sentenceModelFile = Require(args, SENTENCE_MODEL);tokenizerModelFile = Require(args, TOKENIZER_MODEL);if (args.Any()){throw new ArgumentException("Unknown parameters: " + args);}}