ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1725975 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfBothEEAndETRelations.java
Date Thu, 21 Jan 2016 15:03:25 GMT
Author: tmill
Date: Thu Jan 21 15:03:24 2016
New Revision: 1725975

URL: http://svn.apache.org/viewvc?rev=1725975&view=rev
Log:
Fix so that anafora writer doesn't get probview name unless write probabilities is enabled.

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfBothEEAndETRelations.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfBothEEAndETRelations.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfBothEEAndETRelations.java?rev=1725975&r1=1725974&r2=1725975&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfBothEEAndETRelations.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfBothEEAndETRelations.java
Thu Jan 21 15:03:24 2016
@@ -428,7 +428,14 @@ EvaluationOfTemporalRelations_ImplBase{
 		aggregateBuilder.add(aed);
 
 		if(this.anaforaOutput != null){
-			aggregateBuilder.add(AnalysisEngineFactory.createEngineDescription(WriteAnaforaXML.class,
WriteAnaforaXML.PARAM_OUTPUT_DIR, this.anaforaOutput, WriteAnaforaXML.PARAM_PROB_VIEW, PROB_VIEW_NAME),
"TimexView", CAS.NAME_DEFAULT_SOFA);
+                        aed = AnalysisEngineFactory.createEngineDescription(WriteAnaforaXML.class,
WriteAnaforaXML.PARAM_OUTPUT_DIR, this.anaforaOutput);
+                        if(this.writeProbabilities){
+		          ConfigurationParameterFactory.addConfigurationParameters(
+		          aed,    
+		          WriteAnaforaXML.PARAM_PROB_VIEW, 
+		          PROB_VIEW_NAME);
+                        }
+                        aggregateBuilder.add(aed, "TimexView", CAS.NAME_DEFAULT_SOFA);
 		}
 
 		File outf = null;



Mime
View raw message