ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1706860 - in /ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor: ae/ metastasis/ pipelines/
Date Mon, 05 Oct 2015 15:49:07 GMT
Author: dligach
Date: Mon Oct  5 15:49:06 2015
New Revision: 1706860

URL: http://svn.apache.org/viewvc?rev=1706860&view=rev
Log:
refactoring

Added:
    ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/metastasis/
    ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/metastasis/MetastasisAnaforaXMLReader.java
      - copied, changed from r1706614, ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/DeepPheAnaforaXMLReader.java
    ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/metastasis/MetastasisXmiGenerationPipeline.java
      - copied, changed from r1706611, ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/AnaforaGoldStandardEvaluationPipeline.java
Removed:
    ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/DeepPheAnaforaXMLReader.java
    ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/AnaforaGoldStandardEvaluationPipeline.java

Copied: ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/metastasis/MetastasisAnaforaXMLReader.java
(from r1706614, ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/DeepPheAnaforaXMLReader.java)
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/metastasis/MetastasisAnaforaXMLReader.java?p2=ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/metastasis/MetastasisAnaforaXMLReader.java&p1=ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/DeepPheAnaforaXMLReader.java&r1=1706614&r2=1706860&rev=1706860&view=diff
==============================================================================
--- ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/DeepPheAnaforaXMLReader.java
(original)
+++ ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/metastasis/MetastasisAnaforaXMLReader.java
Mon Oct  5 15:49:06 2015
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.ctakes.relationextractor.ae;
+package org.apache.ctakes.relationextractor.metastasis;
 
 import java.io.File;
 import java.io.IOException;
@@ -45,9 +45,9 @@ import org.jdom2.input.SAXBuilder;
 import com.google.common.collect.Lists;
 import com.google.common.collect.Maps;
 
-public class DeepPheAnaforaXMLReader extends JCasAnnotator_ImplBase {
+public class MetastasisAnaforaXMLReader extends JCasAnnotator_ImplBase {
   
-  private static Logger LOGGER = Logger.getLogger(DeepPheAnaforaXMLReader.class);
+  private static Logger LOGGER = Logger.getLogger(MetastasisAnaforaXMLReader.class);
 
   public static final String PARAM_ANAFORA_DIRECTORY = "anaforaDirectory";
 
@@ -58,14 +58,14 @@ public class DeepPheAnaforaXMLReader ext
   private File anaforaDirectory;
 
   public static AnalysisEngineDescription getDescription() throws ResourceInitializationException
{
-    return AnalysisEngineFactory.createEngineDescription(DeepPheAnaforaXMLReader.class);
+    return AnalysisEngineFactory.createEngineDescription(MetastasisAnaforaXMLReader.class);
   }
 
   public static AnalysisEngineDescription getDescription(File anaforaDirectory)
       throws ResourceInitializationException {
     return AnalysisEngineFactory.createEngineDescription(
-        DeepPheAnaforaXMLReader.class,
-        DeepPheAnaforaXMLReader.PARAM_ANAFORA_DIRECTORY,
+        MetastasisAnaforaXMLReader.class,
+        MetastasisAnaforaXMLReader.PARAM_ANAFORA_DIRECTORY,
         anaforaDirectory);
   }
 

Copied: ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/metastasis/MetastasisXmiGenerationPipeline.java
(from r1706611, ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/AnaforaGoldStandardEvaluationPipeline.java)
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/metastasis/MetastasisXmiGenerationPipeline.java?p2=ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/metastasis/MetastasisXmiGenerationPipeline.java&p1=ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/AnaforaGoldStandardEvaluationPipeline.java&r1=1706611&r2=1706860&rev=1706860&view=diff
==============================================================================
--- ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/AnaforaGoldStandardEvaluationPipeline.java
(original)
+++ ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/metastasis/MetastasisXmiGenerationPipeline.java
Mon Oct  5 15:49:06 2015
@@ -1,4 +1,4 @@
-package org.apache.ctakes.relationextractor.pipelines;
+package org.apache.ctakes.relationextractor.metastasis;
 
 import java.io.File;
 import java.io.FileOutputStream;
@@ -9,7 +9,6 @@ import java.net.URI;
 import java.util.ArrayList;
 import java.util.List;
 
-import org.apache.ctakes.relationextractor.ae.DeepPheAnaforaXMLReader;
 import org.apache.ctakes.relationextractor.eval.SHARPXMI.CopyDocumentTextToGoldView;
 import org.apache.ctakes.relationextractor.eval.SHARPXMI.DocumentIDAnnotator;
 import org.apache.ctakes.typesystem.type.syntax.Chunk;
@@ -38,7 +37,7 @@ import org.xml.sax.SAXException;
 
 import com.google.common.io.CharStreams;
 
-public class AnaforaGoldStandardEvaluationPipeline {
+public class MetastasisXmiGenerationPipeline {
 
   public static final File INPUT_DIR = new File("/Users/dima/Boston/Data/DeepPhe/Metastasis/patient93_report028_NOTE/");
   public static final String OUTPUT_DIR = "/Users/Dima/Boston/Out/";
@@ -77,7 +76,7 @@ public class AnaforaGoldStandardEvaluati
         GOLD_VIEW_NAME);
     
     builder.add(
-        DeepPheAnaforaXMLReader.getDescription(INPUT_DIR),
+        MetastasisAnaforaXMLReader.getDescription(INPUT_DIR),
         CAS.NAME_DEFAULT_SOFA,
         GOLD_VIEW_NAME);
 



Mime
View raw message