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 2013/01/14 18:08:14 UTC
svn commit: r1432992 -
/incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/Baseline3EntityMentionPairRelationExtractorAnnotator.java
Author: dligach
Date: Mon Jan 14 17:08:14 2013
New Revision: 1432992
URL: http://svn.apache.org/viewvc?rev=1432992&view=rev
Log:
added more comments
Modified:
incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/Baseline3EntityMentionPairRelationExtractorAnnotator.java
Modified: incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/Baseline3EntityMentionPairRelationExtractorAnnotator.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/Baseline3EntityMentionPairRelationExtractorAnnotator.java?rev=1432992&r1=1432991&r2=1432992&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/Baseline3EntityMentionPairRelationExtractorAnnotator.java (original)
+++ incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/Baseline3EntityMentionPairRelationExtractorAnnotator.java Mon Jan 14 17:08:14 2013
@@ -38,10 +38,8 @@ import org.uimafit.descriptor.Configurat
import org.uimafit.util.JCasUtil;
/**
- * Annotate location_of relation between two entities in sentences containing
- * exactly two entities (where the entities are of the correct types).
- * This implementation assumes classifyBothDirections is set to true (i.e.
- * each pair of entities is considered twice).
+ * Annotate location_of relation between two entities whenever
+ * they are enclosed within the same noun phrse.
*/
public class Baseline3EntityMentionPairRelationExtractorAnnotator extends RelationExtractorAnnotator {
@@ -91,12 +89,10 @@ public class Baseline3EntityMentionPairR
IdentifiedAnnotation arg1 = pair.getArg1();
IdentifiedAnnotation arg2 = pair.getArg2();
result.add(new IdentifiedAnnotationPair(arg1, arg2));
-
System.out.println("NP: " + nounPhrase.getCoveredText() + ", " + nounPhrase.getBegin() + ", " + nounPhrase.getEnd());
System.out.println("arg1: " + arg1.getCoveredText() + ", " + arg1.getBegin() + ", " + arg1.getEnd());
System.out.println("arg2: " + arg2.getCoveredText() + ", " + arg2.getBegin() + ", " + arg2.getEnd());
System.out.println();
-
break; // don't check other NPs
}
}