ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1632116 - /ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/extractors/DependencyWordsFragmentExtractor.java
Date Wed, 15 Oct 2014 16:35:38 GMT
Author: tmill
Date: Wed Oct 15 16:35:37 2014
New Revision: 1632116

URL: http://svn.apache.org/r1632116
Log:
Fixed extractor types to model parent.

Modified:
    ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/extractors/DependencyWordsFragmentExtractor.java

Modified: ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/extractors/DependencyWordsFragmentExtractor.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/extractors/DependencyWordsFragmentExtractor.java?rev=1632116&r1=1632115&r2=1632116&view=diff
==============================================================================
--- ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/extractors/DependencyWordsFragmentExtractor.java
(original)
+++ ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/extractors/DependencyWordsFragmentExtractor.java
Wed Oct 15 16:35:37 2014
@@ -26,11 +26,11 @@ import org.apache.ctakes.assertion.util.
 import org.apache.ctakes.assertion.util.AssertionTreeUtils;
 import org.apache.ctakes.constituency.parser.util.TreeUtils;
 import org.apache.ctakes.typesystem.type.syntax.ConllDependencyNode;
+import org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation;
 import org.apache.ctakes.typesystem.type.textspan.Sentence;
 import org.apache.ctakes.utils.tree.SimpleTree;
 import org.apache.uima.fit.util.JCasUtil;
 import org.apache.uima.jcas.JCas;
-import org.apache.uima.jcas.tcas.Annotation;
 import org.cleartk.ml.Feature;
 import org.cleartk.util.CleartkInitializationException;
 
@@ -41,7 +41,7 @@ public class DependencyWordsFragmentExtr
   }
 
   @Override
-  public List<Feature> extract(JCas jCas, Annotation mention) {
+  public List<Feature> extract(JCas jCas, IdentifiedAnnotation mention) {
     List<Feature> features = new ArrayList<Feature>();
 
     List<Sentence> sents = JCasUtil.selectCovering(jCas, Sentence.class, mention.getBegin(),
mention.getEnd());



Mime
View raw message