Package org.apache.ctakes.coreference.util

Examples of org.apache.ctakes.coreference.util.SvmVectorCreator


        else if (i < 0)
          stopwords.add(l.trim());
      }
      File anaphModFile = FileLocator.locateFile("anaphoricity.mayo.rbf.model");
      svm_model anaphModel = svm.svm_load_model(anaphModFile.getAbsolutePath());
      vecCreator = new SvmVectorCreator(stopwords, anaphModel);
      r = (FileResource) super.getUimaContext().getResourceObject("treeFrags");
      Scanner scanner = new Scanner(r.getFile());
      if(useFrags){
        treeFrags = new ArrayList<String>();
        while(scanner.hasNextLine()){
View Full Code Here


        else if (i < 0)
          stopwords.add(l.trim());
      }
//      File anaphModFile = FileLocator.locateFile("anaphoricity.mayo.rbf.model");
//      svm_model anaphModel = svm.svm_load_model(anaphModFile.getAbsolutePath());
      vecCreator = new SvmVectorCreator(stopwords);
//      r = (FileResource) aContext.getResourceObject("treeFrags");
      File fragFile = FileLocator.locateFile(((String)aContext.getConfigParameterValue(PARAM_FRAGS)));
      Scanner scanner = new Scanner(fragFile);
      if(useFrags){
        treeFrags = new ArrayList<String>();
View Full Code Here

          stopwords.add(l.substring(0,i).trim());
        else if (i < 0)
          stopwords.add(l.trim());
      }
      logger.info("Stop words list loaded: " + r.getFile().getAbsolutePath());
      vecCreator = new SvmVectorCreator(stopwords);

      treeFrags = new ArrayList<String>();
      r = (FileResource) uc.getResourceObject("frags");
      if(r != null){
        scanner = new Scanner(r.getFile());
View Full Code Here

TOP

Related Classes of org.apache.ctakes.coreference.util.SvmVectorCreator

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.