Package org.apache.ctakes.constituency.parser

Examples of org.apache.ctakes.constituency.parser.MaxentParserWrapper


  public void initialize(UimaContext aContext)
      throws ResourceInitializationException {
    super.initialize(aContext);
    try {
      logger.info("Initializing parser...");   
      parser = new MaxentParserWrapper(FileLocator.locateFile(modelFilename).getAbsolutePath(), usePos);
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      logger.error("Error reading parser model file/directory: " + e.getMessage());
      throw new ResourceInitializationException(e);
    }
View Full Code Here


      modelFileOrDirname = defaultModel;
    }
    try {
      logger.info("Initializing parser...");
     
      parser = new MaxentParserWrapper(FileLocator.locateFile(modelFileOrDirname).getAbsolutePath());
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      logger.error("Error reading parser model file/directory: " + e.getMessage());
    }
  }
View Full Code Here

      throws ResourceInitializationException {
    super.initialize(aContext);
    String modelFileOrDirname = (String) aContext.getConfigParameterValue(PARAM_MODELFILE);
    try {
          logger.info("Initializing parser...");
          parser = new MaxentParserWrapper(FileLocator.locateFile(modelFileOrDirname).getAbsolutePath());
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      logger.error("Error reading parser model file/directory: " + e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.ctakes.constituency.parser.MaxentParserWrapper

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.