Package org.maltparserx.core.config.version

Examples of org.maltparserx.core.config.version.Versioning


      return;
    }
   
    File mcoPath = new File(workingDirectory.getPath()+File.separator+getName()+".mco");
    File newMcoPath = new File(workingDirectory.getPath()+File.separator+getName()+"."+SystemInfo.getVersion().trim()+".mco");
    Versioning versioning = new Versioning(name, type, mcoPath, createdByMaltParserVersion);
    if (!versioning.support(createdByMaltParserVersion)) {
      SystemLogger.logger().warn("The parser model '"+ name+ ".mco' is created by MaltParser "+getCreatedByMaltParserVersion()+", which cannot be converted to a MaltParser "+SystemInfo.getVersion()+" parser model.\n");
      SystemLogger.logger().warn("Please retrain the parser model with MaltParser "+SystemInfo.getVersion() +" or download MaltParser "+getCreatedByMaltParserVersion()+" from http://maltparser.org/download.html\n");
      return;
    }
    SystemLogger.logger().info("Converts the parser model '"+ mcoPath.getName()+ "' into '"+newMcoPath.getName()+"'....\n");
View Full Code Here

TOP

Related Classes of org.maltparserx.core.config.version.Versioning

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.