Package opennlp.maxent.io

Examples of opennlp.maxent.io.BinaryGISModelReader


   * @param String
   *            path to MaxentModel
   */
  public static MaxentModel getModel(URL name) {
    try {
      return new BinaryGISModelReader(new DataInputStream(
          new GZIPInputStream(name.openStream()))).getModel();
    } catch (IOException E) {
      E.printStackTrace();
      return null;
    }
View Full Code Here


   * @param String
   *            path to MaxentModel
   */
  public static MaxentModel getModel(URL name) {
    try {
      return new BinaryGISModelReader(new DataInputStream(
          new GZIPInputStream(name.openStream()))).getModel();
    } catch (IOException E) {
      E.printStackTrace();
      return null;
    }
View Full Code Here

TOP

Related Classes of opennlp.maxent.io.BinaryGISModelReader

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.