Package edu.pitt.dbmi.nlp.noble.extract.model

Examples of edu.pitt.dbmi.nlp.noble.extract.model.TemplateDocument


  private void process(List<Template> templates,File reportFile) throws Exception {
    progress("processing report ("+(processCount+1)+") "+reportFile.getName()+" ... ");
   
    // read in the report, do first level proce
    String text = TextTools.getText(new FileInputStream(reportFile));
    TemplateDocument doc = new TemplateDocument();
    doc.setTitle(reportFile.getName());
    doc.setLocation(reportFile.getAbsolutePath());
    doc.setText(text);
    doc.addTemplates(templates);
    doc.setDocumentType(DocumentProcessor.suggestDocumentType(text));
    //doc.getFilters().addAll(DocumentFilter.getDeIDFilters());
   
    // do information extraction
    process(doc);
   
View Full Code Here

TOP

Related Classes of edu.pitt.dbmi.nlp.noble.extract.model.TemplateDocument

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.