private void init(AbstractModel model, BufferedWriter bw) { if (model.ModelType == ModelType.Perceptron) { delegateWriter = new PlainTextPerceptronModelWriter(model, bw); } else if (model.ModelType == ModelType.Maxent) { delegateWriter = new PlainTextGISModelWriter(model, bw); } }
private void init(AbstractModel model, DataOutputStream dos) { if (model.ModelType == ModelType.Perceptron) { delegateWriter = new BinaryPerceptronModelWriter(model, dos); } else if (model.ModelType == ModelType.Maxent) { delegateWriter = new BinaryGISModelWriter(model, dos); } else if (model.ModelType == ModelType.MaxentQn) { delegateWriter = new BinaryQNModelWriter(model, dos); } }