ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1753405 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventTimeSelfRelationAnnotator.java
Date Tue, 19 Jul 2016 17:09:30 GMT
Author: clin
Date: Tue Jul 19 17:09:30 2016
New Revision: 1753405

URL: http://svn.apache.org/viewvc?rev=1753405&view=rev
Log:
add syntactic features for classic event-time model

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventTimeSelfRelationAnnotator.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventTimeSelfRelationAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventTimeSelfRelationAnnotator.java?rev=1753405&r1=1753404&r2=1753405&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventTimeSelfRelationAnnotator.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventTimeSelfRelationAnnotator.java
Tue Jul 19 17:09:30 2016
@@ -34,6 +34,7 @@ import org.apache.ctakes.temporal.ae.fea
 import org.apache.ctakes.temporal.ae.feature.DependencyFeatureExtractor;
 import org.apache.ctakes.temporal.ae.feature.DependencyPathFeaturesExtractor;
 import org.apache.ctakes.temporal.ae.feature.RelationEmbeddingFeatureExtractor;
+import org.apache.ctakes.temporal.ae.feature.RelationSyntacticETEmbeddingFeatureExtractor;
 import org.apache.ctakes.temporal.ae.feature.EmptyFeaturesExtractor;
 import org.apache.ctakes.temporal.ae.feature.EventArgumentPropertyExtractor;
 import org.apache.ctakes.temporal.ae.feature.MultiTokenFeaturesExtractor;
@@ -126,13 +127,13 @@ public class EventTimeSelfRelationAnnota
 				new File(modelDirectory, "model.jar"));
 	}
 	
-	private RelationEmbeddingFeatureExtractor embedingExtractor;
+	private RelationSyntacticETEmbeddingFeatureExtractor embedingExtractor;
 
 	@Override
 	protected List<RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>>
getFeatureExtractors() {
-		final String vectorFile = "org/apache/ctakes/temporal/glove.6B.50d.txt";
+		final String vectorFile = "org/apache/ctakes/temporal/gloveresult_3";
 		try {
-			this.embedingExtractor = new RelationEmbeddingFeatureExtractor(vectorFile);
+			this.embedingExtractor = new RelationSyntacticETEmbeddingFeatureExtractor(vectorFile);
 		} catch (CleartkExtractorException e) {
 			System.err.println("cannot find file: "+ vectorFile);
 			e.printStackTrace();



Mime
View raw message