ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1637160 - /ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java
Date Thu, 06 Nov 2014 17:13:18 GMT
Author: tmill
Date: Thu Nov  6 17:13:18 2014
New Revision: 1637160

URL: http://svn.apache.org/r1637160
Log:
Added constituency parser and some additional examples.

Modified:
    ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java

Modified: ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java?rev=1637160&r1=1637159&r2=1637160&view=diff
==============================================================================
--- ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java
(original)
+++ ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java
Thu Nov  6 17:13:18 2014
@@ -71,6 +71,7 @@ public class ClinicalPipelineFactory {
     builder.add(getTokenProcessingPipeline());
     builder.add(AnalysisEngineFactory.createEngineDescription(CopyNPChunksToLookupWindowAnnotations.class));
     builder.add(AnalysisEngineFactory.createEngineDescription(RemoveEnclosedLookupWindows.class));
+    builder.add(AnalysisEngineFactory.createEngineDescription(ConstituencyParser.class));
     builder.add(UmlsDictionaryLookupAnnotator.createAnnotatorDescription());
     builder.add(ClearNLPDependencyParserAE.createAnnotatorDescription());
     builder.add(PolarityCleartkAnalysisEngine.createAnnotatorDescription());
@@ -175,7 +176,8 @@ public class ClinicalPipelineFactory {
     String note = "History of diabetes and hypertension. Mother had breast cancer. Sister
with multiple sclerosis. " +
     			  "The patient is suffering from extreme pain due to shark bite. Recommend continuing
use of aspirin, oxycodone, and coumadin. Continue exercise for obesity and hypertension."
+
                   "Patient denies smoking and chest pain. Patient has no cancer. There is
no sign of multiple sclerosis. " +
-    			  "Mass is suspicious for breast cancer. Discussed surgery and chemotherapy. Will
return if pain continues.";
+    			  "Mass is suspicious for breast cancer. Possible breast cancer. Cannot exclude stenosis.
Some degree of focal pancreatitis is also possible." +
+    			  "Discussed surgery and chemotherapy. Will return if pain continues. ";
     JCas jcas = JCasFactory.createJCas();
     jcas.setDocumentText(note);
     SimplePipeline.runPipeline(jcas, aed);



Mime
View raw message