ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1631763 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfAnnotationSpans_ImplBase.java
Date Tue, 14 Oct 2014 13:53:16 GMT
Author: tmill
Date: Tue Oct 14 13:53:16 2014
New Revision: 1631763

URL: http://svn.apache.org/r1631763
Log:
CTAKES-82: Constructor with optional coreference directory.

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

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfAnnotationSpans_ImplBase.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfAnnotationSpans_ImplBase.java?rev=1631763&r1=1631762&r2=1631763&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfAnnotationSpans_ImplBase.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfAnnotationSpans_ImplBase.java
Tue Oct 14 13:53:16 2014
@@ -79,8 +79,9 @@ Evaluation_ImplBase<AnnotationStatistics
 			XMLFormat xmlFormat,
 			File xmiDirectory,
 			File treebankDirectory,
+			File coreferenceDirectory,
 			Class<? extends Annotation> annotationClass) {
-		super(baseDirectory, rawTextDirectory, xmlDirectory, xmlFormat, xmiDirectory, treebankDirectory);
+		super(baseDirectory, rawTextDirectory, xmlDirectory, xmlFormat, xmiDirectory, treebankDirectory,
coreferenceDirectory);
 		this.annotationClass = annotationClass;
 	}
 
@@ -91,7 +92,7 @@ Evaluation_ImplBase<AnnotationStatistics
 			XMLFormat xmlFormat,
 			File xmiDirectory,
 			Class<? extends Annotation> annotationClass) {
-		this(baseDirectory,rawTextDirectory, xmlDirectory, xmlFormat, xmiDirectory, null, annotationClass);
+		this(baseDirectory,rawTextDirectory, xmlDirectory, xmlFormat, xmiDirectory, null, null,
annotationClass);
 	}
 
 	protected abstract AnalysisEngineDescription getDataWriterDescription(File directory)
@@ -113,7 +114,7 @@ Evaluation_ImplBase<AnnotationStatistics
 
 	protected abstract Collection<? extends Annotation> getGoldAnnotations(JCas jCas,
Segment segment);
 
-	protected abstract Collection<? extends Annotation> getSystemAnnotations(JCas jCas,
Segment segment);
+  protected abstract Collection<? extends Annotation> getSystemAnnotations(JCas jCas,
Segment segment);
 
 	@Override
 	protected AnnotationStatistics<String> test(CollectionReader collectionReader, File
directory)
@@ -135,6 +136,7 @@ Evaluation_ImplBase<AnnotationStatistics
 			JCas jCas = casIter.next();
 			JCas goldView = jCas.getView(GOLD_VIEW_NAME);
 			JCas systemView = jCas.getView(CAS.NAME_DEFAULT_SOFA);
+      this.logger.fine("Errors in : " + ViewUriUtil.getURI(jCas).toString());
 			for (Segment segment : JCasUtil.select(jCas, Segment.class)) {
 				if (!THYMEData.SEGMENTS_TO_SKIP.contains(segment.getId())) {
 					Collection<? extends Annotation> goldAnnotations = this.getGoldAnnotations(goldView,
segment);



Mime
View raw message