Package opennlp.maxent.quasinewton

Examples of opennlp.maxent.quasinewton.QNModel


  public AbstractModel constructModel() throws IOException {
  String[] predNames = getPredicates();
    String[] outcomeNames = getOutcomes();
    Context[] params = getParameters();
    double[] parameters = getDoubleArrayParams();
    return new QNModel(predNames, outcomeNames, params, parameters);
  }
View Full Code Here


    Object[] data = model.getDataStructures();
    params = (Context[]) data[0];
    pmap = (IndexHashTable<String>) data[1];
    outcomeNames = (String[]) data[2];
   
    QNModel qnModel = (QNModel) model;
    parameters = qnModel.getParameters();
  }
View Full Code Here

TOP

Related Classes of opennlp.maxent.quasinewton.QNModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.