Examples of ConceptDao


Examples of org.apache.ctakes.ytex.kernel.dao.ConceptDao

      CommandLine line = parser.parse(options, args);
      Properties ytexProps = new Properties();
      ytexProps.putAll((Properties) KernelContextHolder
          .getApplicationContext().getBean("ytexProperties"));
      ytexProps.putAll(System.getProperties());
      ConceptDao conceptDao = KernelContextHolder.getApplicationContext()
          .getBean(ConceptDao.class);
      PageRankService pageRankService = KernelContextHolder
          .getApplicationContext().getBean(PageRankService.class);
      ConceptGraph cg = conceptDao.getConceptGraph(ytexProps
          .getProperty("org.apache.ctakes.ytex.conceptGraphName"));
      if (line.hasOption("sim")) {
        String cs = line.getOptionValue("sim");
        String concept[] = cs.split(",");
        System.out.println(pageRankService.sim(concept[0], concept[1],
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.