You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by ja...@apache.org on 2014/03/20 19:40:39 UTC
svn commit: r1579707 -
/ctakes/trunk/ctakes-template-filler/src/main/java/org/apache/ctakes/template/filler/ae/TemplateFillerAnnotator.java
Author: james-masanz
Date: Thu Mar 20 18:40:39 2014
New Revision: 1579707
URL: http://svn.apache.org/r1579707
Log:
more of fix for CTAKES-288 - index name change - creation of text relation annotations has degree_of and location_of separated into two indexes, no longer just one with BinaryTextRelation in the name
Modified:
ctakes/trunk/ctakes-template-filler/src/main/java/org/apache/ctakes/template/filler/ae/TemplateFillerAnnotator.java
Modified: ctakes/trunk/ctakes-template-filler/src/main/java/org/apache/ctakes/template/filler/ae/TemplateFillerAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-template-filler/src/main/java/org/apache/ctakes/template/filler/ae/TemplateFillerAnnotator.java?rev=1579707&r1=1579706&r2=1579707&view=diff
==============================================================================
--- ctakes/trunk/ctakes-template-filler/src/main/java/org/apache/ctakes/template/filler/ae/TemplateFillerAnnotator.java (original)
+++ ctakes/trunk/ctakes-template-filler/src/main/java/org/apache/ctakes/template/filler/ae/TemplateFillerAnnotator.java Thu Mar 20 18:40:39 2014
@@ -219,12 +219,14 @@ public class TemplateFillerAnnotator ext
// Fill in template slots from relations.
//FSIndex<FeatureStructure> relationArgs = jcas.getFSIndexRepository().getIndex("_org.apache.ctakes.typesystem.type.relation.RelationArgument_GeneratedIndex");
- FSIndex<FeatureStructure> binaryTextRelations = jcas.getFSIndexRepository().getIndex("_org.apache.ctakes.typesystem.type.relation.BinaryTextRelation_GeneratedIndex");
+ //FSIndex<FeatureStructure> binaryTextRelations = jcas.getFSIndexRepository().getIndex("_org.apache.ctakes.typesystem.type.relation.BinaryTextRelation_GeneratedIndex");
+ FSIndex<FeatureStructure> locationOfTextRelations = jcas.getFSIndexRepository().getIndex("_org.apache.ctakes.typesystem.type.relation.LocationOfTextRelation_GeneratedIndex");
+ FSIndex<FeatureStructure> degreeOfTextRelations = jcas.getFSIndexRepository().getIndex("_org.apache.ctakes.typesystem.type.relation.DegreeOfTextRelation_GeneratedIndex");
int i = 0;
- if (binaryTextRelations != null) {
+ if (locationOfTextRelations != null) {
- for (FeatureStructure binaryTextRelationFS: binaryTextRelations) {
+ for (FeatureStructure binaryTextRelationFS: locationOfTextRelations) {
i++;
//logger.info("binaryTextRelationFS = " + binaryTextRelationFS);
@@ -290,9 +292,9 @@ public class TemplateFillerAnnotator ext
}
}
- if (binaryTextRelations != null) {
+ if (degreeOfTextRelations != null) {
- for (FeatureStructure binaryTextRelationFS: binaryTextRelations) {
+ for (FeatureStructure binaryTextRelationFS: degreeOfTextRelations) {
i++;
//logger.info("binaryTextRelationFS = " + binaryTextRelationFS);
@@ -345,8 +347,7 @@ public class TemplateFillerAnnotator ext
logger.error("Need to implement more cases for relation: " + relation);
}
}
- }
-
+ }
}