You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by ch...@apache.org on 2013/03/08 21:13:01 UTC
svn commit: r1454525 [1/19] - in
/incubator/ctakes/trunk/ctakes-regression-test: ./
desc/collection_processing_engine/
src/test/java/org/apache/ctakes/regression/test/
testdata/expectedoutput/CoreferenceCPETest/
testdata/expectedoutput/RegressionPipeli...
Author: chenpei
Date: Fri Mar 8 20:13:00 2013
New Revision: 1454525
URL: http://svn.apache.org/r1454525
Log:
CTAKES-84 - Adding Coreference pipeline to the regression test.
Added:
incubator/ctakes/trunk/ctakes-regression-test/desc/collection_processing_engine/CoreferenceCPETest.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/SampleInputRadiologyNotes.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/doc1_07543210_sample_current.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/doc1_07543210_sample_past_smoker.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/doc1_07543210_sample_unknown.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/doc2_07543210_sample_current.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/doc2_07543210_sample_past_smoker.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/sample_note.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/sample_note_plaintext.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/testfakenote.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/testpatient_plaintext_1.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/testpatient_plaintext_2.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/CoreferenceCPETest/text1.txt.xml
Modified:
incubator/ctakes/trunk/ctakes-regression-test/pom.xml
incubator/ctakes/trunk/ctakes-regression-test/src/test/java/org/apache/ctakes/regression/test/RegressionPipelineTest.java
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/SampleInputRadiologyNotes.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/doc1_07543210_sample_current.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/doc1_07543210_sample_past_smoker.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/doc1_07543210_sample_unknown.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/doc2_07543210_sample_current.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/doc2_07543210_sample_past_smoker.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/sample_note.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/sample_note_plaintext.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/testfakenote.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/testpatient_plaintext_1.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/testpatient_plaintext_2.txt.xml
incubator/ctakes/trunk/ctakes-regression-test/testdata/expectedoutput/RegressionPipelineCPETest/text1.txt.xml
Added: incubator/ctakes/trunk/ctakes-regression-test/desc/collection_processing_engine/CoreferenceCPETest.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-regression-test/desc/collection_processing_engine/CoreferenceCPETest.xml?rev=1454525&view=auto
==============================================================================
--- incubator/ctakes/trunk/ctakes-regression-test/desc/collection_processing_engine/CoreferenceCPETest.xml (added)
+++ incubator/ctakes/trunk/ctakes-regression-test/desc/collection_processing_engine/CoreferenceCPETest.xml Fri Mar 8 20:13:00 2013
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<cpeDescription xmlns="http://uima.apache.org/resourceSpecifier">
+<collectionReader>
+<collectionIterator>
+<descriptor>
+<import location="../../../ctakes-core/desc/collection_reader/FilesInDirectoryCollectionReader.xml"/>
+</descriptor>
+<configurationParameterSettings>
+<nameValuePair>
+<name>InputDirectory</name>
+<value>
+<string>testdata/input/plaintext</string>
+</value>
+</nameValuePair>
+</configurationParameterSettings>
+</collectionIterator>
+</collectionReader>
+<casProcessors casPoolSize="3" processingUnitThreadCount="1">
+<casProcessor deployment="integrated" name="CoreferenceCPETest">
+<descriptor>
+<import location="../../../ctakes-coreference/desc/analysis_engine/CorefProcessor.xml"/>
+</descriptor>
+<deploymentParameters/>
+<errorHandling>
+<errorRateThreshold action="terminate" value="0/1000"/>
+<maxConsecutiveRestarts action="terminate" value="30"/>
+<timeout max="100000" default="-1"/>
+</errorHandling>
+<checkpoint batch="10000" time="1000ms"/>
+</casProcessor>
+<casProcessor deployment="integrated" name="Write CAS to XML file">
+<descriptor>
+<import location="../../../ctakes-core/desc/cas_consumer/FileWriterCasConsumer.xml"/>
+</descriptor>
+<deploymentParameters/>
+<errorHandling>
+<errorRateThreshold action="terminate" value="0/1000"/>
+<maxConsecutiveRestarts action="terminate" value="30"/>
+<timeout max="100000" default="-1"/>
+</errorHandling>
+<checkpoint batch="10000" time="1000ms"/>
+<configurationParameterSettings>
+<nameValuePair>
+<!-- Make the output directory always the same name as this file name in the output dir-->
+<name>outputDir</name>
+<value>
+<string>testdata/generatedoutput/CoreferenceCPETest</string>
+</value>
+</nameValuePair>
+</configurationParameterSettings>
+</casProcessor>
+</casProcessors>
+<cpeConfig>
+<numToProcess>-1</numToProcess>
+<deployAs>immediate</deployAs>
+<checkpoint batch="0" time="300000"/>
+<timerImpl></timerImpl>
+</cpeConfig>
+</cpeDescription>
Modified: incubator/ctakes/trunk/ctakes-regression-test/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-regression-test/pom.xml?rev=1454525&r1=1454524&r2=1454525&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-regression-test/pom.xml (original)
+++ incubator/ctakes/trunk/ctakes-regression-test/pom.xml Fri Mar 8 20:13:00 2013
@@ -6,8 +6,8 @@
<version>3.1.0-incubating-SNAPSHOT</version>
</parent>
<artifactId>ctakes-regression-test</artifactId>
- <name>ctakes-regression-test</name>
- <description>ctakes-regression-test</description>
+ <name>Apache cTAKES Regression-test</name>
+ <description>Apache cTAKES Regression-test</description>
<dependencies>
<dependency>
Modified: incubator/ctakes/trunk/ctakes-regression-test/src/test/java/org/apache/ctakes/regression/test/RegressionPipelineTest.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-regression-test/src/test/java/org/apache/ctakes/regression/test/RegressionPipelineTest.java?rev=1454525&r1=1454524&r2=1454525&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-regression-test/src/test/java/org/apache/ctakes/regression/test/RegressionPipelineTest.java (original)
+++ incubator/ctakes/trunk/ctakes-regression-test/src/test/java/org/apache/ctakes/regression/test/RegressionPipelineTest.java Fri Mar 8 20:13:00 2013
@@ -132,10 +132,9 @@ public class RegressionPipelineTest exte
Diff myDiff = new Diff(expected, generated);
// Only Testing the skeleton because the xml attributes in the
- // xcas could be in different
- // Ordering
- myDiff.overrideElementQualifier(new ElementNameAndTextQualifier());
- myDiff.overrideDifferenceListener(new IgnoreTextAndAttributeValuesDifferenceListener());
+ // xcas could be in different Ordering
+ //myDiff.overrideElementQualifier(new ElementNameAndTextQualifier());
+ //myDiff.overrideDifferenceListener(new IgnoreTextAndAttributeValuesDifferenceListener());
assertTrue("Verifying Test Output: " + file.getName() + myDiff,
myDiff.similar());
// assertXMLEqual("Verifying Test Output: " + file.getName(),