Package org.apache.ctakes.preprocessor

Examples of org.apache.ctakes.preprocessor.ClinicalNotePreProcessor


    {
        super.setUp();

        String dtdLocation = "src/test/resources/NotesIIST_RTF.DTD";
        File dtd = new File(dtdLocation);
        iv_cnotePreProcessor = new ClinicalNotePreProcessor(dtd, false);

        String cnoteLocationOnCp = "src/test/resources/testpatient_cn_1.xml";
        String cnoteLocation = new File(cnoteLocationOnCp).getPath();
       
        if (cnoteLocation == null) {
View Full Code Here


        try {
           
          JCas originalView = jcas.getView("_InitialView");
          originalText = originalView.getSofaDataString();

            PreProcessor pp = new ClinicalNotePreProcessor(
                    dtdFile,
                    includeSectionMarkers.booleanValue());
            dmd = pp.process(originalText);

            String text = dmd.getText();
            StringBuffer sb = new StringBuffer(text);

            applyTextModifier(text, sb);
View Full Code Here

            File dtdFile = new File(dtdFilename);
            if (!exists(dtdFile)) {
              System.exit(-1);
            }
           
            PreProcessor pp = new ClinicalNotePreProcessor(dtdFile, false);

            timestamp = System.currentTimeMillis();
            DocumentMetaData dmd = pp.process(hl7Text);
            elapsedTime = System.currentTimeMillis() - timestamp;
            System.out.println("PreProcessor Took " + elapsedTime + "ms");

            System.out.println("Plain Text Start");
            System.out.println(dmd.getText());
View Full Code Here

TOP

Related Classes of org.apache.ctakes.preprocessor.ClinicalNotePreProcessor

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.