ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chen...@apache.org
Subject svn commit: r1387795 - in /incubator/ctakes/trunk: ctakes-coreference/ ctakes-pad-term-spotter/ ctakes-pad-term-spotter/desc/type_system/ ctakes-relation-extractor/src/main/java/org/chboston/cnlp/ctakes/relationextractor/cr/
Date Wed, 19 Sep 2012 22:13:41 GMT
Author: chenpei
Date: Wed Sep 19 22:13:41 2012
New Revision: 1387795

URL: http://svn.apache.org/viewvc?rev=1387795&view=rev
Log:
Fixing the types for proper jcasgen in maven for the coref and padterm spotter project.
fixed collection reader in relation extraction compilation errors.

Modified:
    incubator/ctakes/trunk/ctakes-coreference/pom.xml
    incubator/ctakes/trunk/ctakes-pad-term-spotter/desc/type_system/PADSiteAndTerm.xml
    incubator/ctakes/trunk/ctakes-pad-term-spotter/pom.xml
    incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/chboston/cnlp/ctakes/relationextractor/cr/GoldEntityAndRelationReader.java
    incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/chboston/cnlp/ctakes/relationextractor/cr/GoldEntityReader.java

Modified: incubator/ctakes/trunk/ctakes-coreference/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-coreference/pom.xml?rev=1387795&r1=1387794&r2=1387795&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-coreference/pom.xml (original)
+++ incubator/ctakes/trunk/ctakes-coreference/pom.xml Wed Sep 19 22:13:41 2012
@@ -8,6 +8,11 @@
 		<artifactId>ctakes</artifactId>
 		<version>3.0.0-SNAPSHOT</version>
 	</parent>
+	
+	<properties>
+	<jcasgen.typesystem>desc/type-system/CorefTypes.xml</jcasgen.typesystem>
+	</properties>
+		
 	<dependencies>
 		<dependency>
 			<groupId>org.apache.ctakes</groupId>
@@ -42,4 +47,18 @@
 			<artifactId>junit</artifactId>
 		</dependency>
 	</dependencies>
+	
+		<build>
+		<plugins>
+			<!-- Invoke JCasGen on the type system (see properties above) -->
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>exec-maven-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>build-helper-maven-plugin</artifactId>
+			</plugin>
+		</plugins>
+	</build>
 </project>

Modified: incubator/ctakes/trunk/ctakes-pad-term-spotter/desc/type_system/PADSiteAndTerm.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-pad-term-spotter/desc/type_system/PADSiteAndTerm.xml?rev=1387795&r1=1387794&r2=1387795&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-pad-term-spotter/desc/type_system/PADSiteAndTerm.xml (original)
+++ incubator/ctakes/trunk/ctakes-pad-term-spotter/desc/type_system/PADSiteAndTerm.xml Wed
Sep 19 22:13:41 2012
@@ -5,7 +5,7 @@
   <version>1.0</version>
   <vendor>Mayo</vendor>
   <imports>
-    <import location="../../../common-type-system/desc/common_type_system.xml"/>
+    <import location="../../../ctakes-type-system/desc/common_type_system.xml"/>
     <import location="SubSection.xml"/>
   </imports>
   <types>

Modified: incubator/ctakes/trunk/ctakes-pad-term-spotter/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-pad-term-spotter/pom.xml?rev=1387795&r1=1387794&r2=1387795&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-pad-term-spotter/pom.xml (original)
+++ incubator/ctakes/trunk/ctakes-pad-term-spotter/pom.xml Wed Sep 19 22:13:41 2012
@@ -7,8 +7,12 @@
 		<groupId>org.apache.ctakes</groupId>
 		<artifactId>ctakes</artifactId>
 		<version>3.0.0-SNAPSHOT</version>
-		<relativePath>..</relativePath>
 	</parent>
+
+	<properties>
+	<jcasgen.typesystem>desc/type_system/PADSiteAndTerm.xml</jcasgen.typesystem>
+	</properties>
+		
 	<dependencies>
 		<dependency>
 			<groupId>org.apache.ctakes</groupId>
@@ -23,6 +27,10 @@
 			<artifactId>ctakes-utils</artifactId>
 		</dependency>
 		<dependency>
+			<groupId>org.apache.ctakes</groupId>
+			<artifactId>ctakes-dictionary-lookup</artifactId>
+		</dependency>		
+		<dependency>
 			<groupId>log4j</groupId>
 			<artifactId>log4j</artifactId>
 		</dependency>
@@ -31,4 +39,19 @@
 			<artifactId>junit</artifactId>
 		</dependency>
 	</dependencies>
+	
+		<build>
+		<plugins>
+			<!-- Invoke JCasGen on the type system (see properties above) -->
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>exec-maven-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>build-helper-maven-plugin</artifactId>
+			</plugin>
+		</plugins>
+	</build>
+	
 </project>

Modified: incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/chboston/cnlp/ctakes/relationextractor/cr/GoldEntityAndRelationReader.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/chboston/cnlp/ctakes/relationextractor/cr/GoldEntityAndRelationReader.java?rev=1387795&r1=1387794&r2=1387795&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/chboston/cnlp/ctakes/relationextractor/cr/GoldEntityAndRelationReader.java
(original)
+++ incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/chboston/cnlp/ctakes/relationextractor/cr/GoldEntityAndRelationReader.java
Wed Sep 19 22:13:41 2012
@@ -121,9 +121,7 @@ public class GoldEntityAndRelationReader
 		Document document;
 		try {
 			document = builder.build(goldFile);
-		} catch (JDOMException e) {
-			throw new AnalysisEngineProcessException(e);
-		} catch (IOException e) {
+		} catch (Exception e) {
 			throw new AnalysisEngineProcessException(e);
 		}
 

Modified: incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/chboston/cnlp/ctakes/relationextractor/cr/GoldEntityReader.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/chboston/cnlp/ctakes/relationextractor/cr/GoldEntityReader.java?rev=1387795&r1=1387794&r2=1387795&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/chboston/cnlp/ctakes/relationextractor/cr/GoldEntityReader.java
(original)
+++ incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/chboston/cnlp/ctakes/relationextractor/cr/GoldEntityReader.java
Wed Sep 19 22:13:41 2012
@@ -85,9 +85,7 @@ public class GoldEntityReader extends JC
       Document document;
       try {
         document = builder.build(new File(goldFilePath));
-      } catch (JDOMException e) {
-        throw new AnalysisEngineProcessException(e);
-      } catch (IOException e) {
+      } catch (Exception e) {
         throw new AnalysisEngineProcessException(e);
       }
 			



Mime
View raw message