Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }