public OpenNLPChunkerFilter create(TokenStream in) {try {NLPChunkerOp chunkerOp = null;if (chunkerModelFile != null) {chunkerOp = OpenNLPOpsFactory.getChunker(chunkerModelFile);}return new OpenNLPChunkerFilter(in, chunkerOp);} catch (IOException e) {throw new IllegalArgumentException(e);}}

public override TokenStream Create(TokenStream input){try{NLPChunkerOp chunkerOp = null;if (chunkerModelFile != null){chunkerOp = OpenNLPOpsFactory.GetChunker(chunkerModelFile);}return new OpenNLPChunkerFilter(input, chunkerOp);}catch (IOException e){throw new ArgumentException(e.ToString(), e);}}
