You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by dl...@apache.org on 2015/09/09 23:40:20 UTC
svn commit: r1702117 - in /ctakes/sandbox/ctakes-wsd: pom.xml
src/main/java/org/apache/ctakes/bootstrap/NarrativeContainers.java
src/main/java/org/apache/ctakes/pipelines/BasicPipeline.java
Author: dligach
Date: Wed Sep 9 21:40:20 2015
New Revision: 1702117
URL: http://svn.apache.org/r1702117
Log:
Switched to event mentions found by event tagger (rather than dict lookup)
Modified:
ctakes/sandbox/ctakes-wsd/pom.xml
ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/bootstrap/NarrativeContainers.java
ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/BasicPipeline.java
Modified: ctakes/sandbox/ctakes-wsd/pom.xml
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-wsd/pom.xml?rev=1702117&r1=1702116&r2=1702117&view=diff
==============================================================================
--- ctakes/sandbox/ctakes-wsd/pom.xml (original)
+++ ctakes/sandbox/ctakes-wsd/pom.xml Wed Sep 9 21:40:20 2015
@@ -117,6 +117,10 @@
<artifactId>ctakes-sentdetect-cleartk</artifactId>
<version>3.2.3-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.ctakes</groupId>
+ <artifactId>ctakes-temporal</artifactId>
+ </dependency>
</dependencies>
<!-- The below is all necessary to unpack the UMLS resources since they
can't be used from the classpath -->
Modified: ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/bootstrap/NarrativeContainers.java
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/bootstrap/NarrativeContainers.java?rev=1702117&r1=1702116&r2=1702117&view=diff
==============================================================================
--- ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/bootstrap/NarrativeContainers.java (original)
+++ ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/bootstrap/NarrativeContainers.java Wed Sep 9 21:40:20 2015
@@ -65,7 +65,7 @@ public class NarrativeContainers {
public static class NarrativeContainerExtractor extends JCasAnnotator_ImplBase {
public static final String anchor = "during";
- public static final int maxDistance = 0;
+ public static final int maxDistance = 1;
@Override
public void process(JCas jCas) throws AnalysisEngineProcessException {
Modified: ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/BasicPipeline.java
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/BasicPipeline.java?rev=1702117&r1=1702116&r2=1702117&view=diff
==============================================================================
--- ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/BasicPipeline.java (original)
+++ ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/BasicPipeline.java Wed Sep 9 21:40:20 2015
@@ -26,6 +26,7 @@ import org.apache.ctakes.dictionary.look
import org.apache.ctakes.dictionary.lookup2.ae.JCasTermAnnotator;
import org.apache.ctakes.lvg.ae.LvgAnnotator;
import org.apache.ctakes.postagger.POSTagger;
+import org.apache.ctakes.temporal.ae.EventAnnotator;
import org.apache.ctakes.typesystem.type.syntax.BaseToken;
import org.apache.ctakes.typesystem.type.syntax.Chunk;
import org.apache.ctakes.typesystem.type.textspan.LookupWindowAnnotation;
@@ -156,9 +157,10 @@ public class BasicPipeline {
// add dependency parser
aggregateBuilder.add(ClearNLPDependencyParserAE.createAnnotatorDescription());
- // add semantic role labeler (removing for now -- crashes after switched to Tim's sentence segmenter)
- // aggregateBuilder.add(AnalysisEngineFactory.createEngineDescription(ClearNLPSemanticRoleLabelerAE.class));
-
+ // add event annotation
+ // TODO: make sure all required AEs have been added at this point
+ aggregateBuilder.add(EventAnnotator.createAnnotatorDescription());
+
// write out the CAS after all the above annotations
aggregateBuilder.add(AnalysisEngineFactory.createEngineDescription(
XMIWriter.class,