Package org.apache.ctakes.preprocessor

Examples of org.apache.ctakes.preprocessor.PreProcessor


        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.PreProcessor

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.