incubator-ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chen...@apache.org
Subject svn commit: r1442179 - in /incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor: desc/analysis_engine/ src/main/java/org/apache/ctakes/relationextractor/pipelines/
Date Mon, 04 Feb 2013 17:02:47 GMT
Author: chenpei
Date: Mon Feb  4 17:02:46 2013
New Revision: 1442179

URL: http://svn.apache.org/viewvc?rev=1442179&view=rev
Log:
CTAKES-140 - Tempoarily updating the relation extractor desc model paths to a valid file URL
in the unpacked resources folder resources/org/apache/ctakes/relationextractor/models(current
limitation where clearTK can't read from classpath).

Modified:
    incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/DegreeOfRelationExtractorAnnotator.xml
    incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/EntityMentionPairRelationExtractorAnnotator.xml
    incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/ModifierExtractorAnnotator.xml
    incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/RelationExtractorAggregate.xml
    incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationExtractorTrain.java

Modified: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/DegreeOfRelationExtractorAnnotator.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/DegreeOfRelationExtractorAnnotator.xml?rev=1442179&r1=1442178&r2=1442179&view=diff
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/DegreeOfRelationExtractorAnnotator.xml
(original)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/DegreeOfRelationExtractorAnnotator.xml
Mon Feb  4 17:02:46 2013
@@ -113,7 +113,7 @@
             <nameValuePair>
                 <name>org.cleartk.classifier.jar.GenericJarClassifierFactory.classifierJarPath</name>
                 <value>
-                    <string>resources/models/degree_of/model.jar</string>
+                    <string>resources/org/apache/ctakes/relationextractor/models/degree_of/model.jar</string>
                 </value>
             </nameValuePair>
         </configurationParameterSettings>

Modified: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/EntityMentionPairRelationExtractorAnnotator.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/EntityMentionPairRelationExtractorAnnotator.xml?rev=1442179&r1=1442178&r2=1442179&view=diff
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/EntityMentionPairRelationExtractorAnnotator.xml
(original)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/EntityMentionPairRelationExtractorAnnotator.xml
Mon Feb  4 17:02:46 2013
@@ -120,7 +120,7 @@
             <nameValuePair>
                 <name>org.cleartk.classifier.jar.GenericJarClassifierFactory.classifierJarPath</name>
                 <value>
-                    <string>resources/models/em_pair/model.jar</string>
+                    <string>resources/org/apache/ctakes/relationextractor/models/em_pair/model.jar</string>
                 </value>
             </nameValuePair>
             <nameValuePair>

Modified: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/ModifierExtractorAnnotator.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/ModifierExtractorAnnotator.xml?rev=1442179&r1=1442178&r2=1442179&view=diff
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/ModifierExtractorAnnotator.xml
(original)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/ModifierExtractorAnnotator.xml
Mon Feb  4 17:02:46 2013
@@ -73,7 +73,7 @@
             <nameValuePair>
                 <name>org.cleartk.classifier.jar.GenericJarClassifierFactory.classifierJarPath</name>
                 <value>
-                    <string>resources/models/modifier_extractor/model.jar</string>
+                    <string>resources/org/apache/ctakes/relationextractor/models/modifier_extractor/model.jar</string>
                 </value>
             </nameValuePair>
         </configurationParameterSettings>

Modified: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/RelationExtractorAggregate.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/RelationExtractorAggregate.xml?rev=1442179&r1=1442178&r2=1442179&view=diff
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/RelationExtractorAggregate.xml
(original)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/desc/analysis_engine/RelationExtractorAggregate.xml
Mon Feb  4 17:02:46 2013
@@ -118,7 +118,7 @@
                         <nameValuePair>
                             <name>org.cleartk.classifier.jar.GenericJarClassifierFactory.classifierJarPath</name>
                             <value>
-                                <string>resources/models/degree_of/model.jar</string>
+                                <string>resources/org/apache/ctakes/relationextractor/models/degree_of/model.jar</string>
                             </value>
                         </nameValuePair>
                     </configurationParameterSettings>
@@ -2145,7 +2145,7 @@ Equivalent to cTAKES: org.apache.ctakes.
                         <nameValuePair>
                             <name>org.cleartk.classifier.jar.GenericJarClassifierFactory.classifierJarPath</name>
                             <value>
-                                <string>resources/models/em_pair/model.jar</string>
+                                <string>resources/org/apache/ctakes/relationextractor/models/resources/models/em_pair/model.jar</string>
                             </value>
                         </nameValuePair>
                         <nameValuePair>
@@ -4313,7 +4313,7 @@ Equivalent to cTAKES: org.apache.ctakes.
                         <nameValuePair>
                             <name>org.cleartk.classifier.jar.GenericJarClassifierFactory.classifierJarPath</name>
                             <value>
-                                <string>resources/models/modifier_extractor/model.jar</string>
+                                <string>resources/org/apache/ctakes/relationextractor/models/modifier_extractor/model.jar</string>
                             </value>
                         </nameValuePair>
                     </configurationParameterSettings>

Modified: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationExtractorTrain.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationExtractorTrain.java?rev=1442179&r1=1442178&r2=1442179&view=diff
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationExtractorTrain.java
(original)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationExtractorTrain.java
Mon Feb  4 17:02:46 2013
@@ -151,7 +151,7 @@ public class RelationExtractorTrain {
     List<File> trainFiles = Arrays.asList(options.trainDirectory.listFiles());
     
     // Initialize model directories
-    File modelsDirBase = new File("src/main/resources/org/apache/ctakes/relationextractor/models");
+    File modelsDirBase = new File("resources/org/apache/ctakes/relationextractor/models");
     File modelsDirModExtractor = new File(modelsDirBase, "modifier_extractor");
     File modelsDirDegreeOf = new File(modelsDirBase, "degree_of");
     File modelsDirEMPair = new File(modelsDirBase, "em_pair");



Mime
View raw message