ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1488386 - in /ctakes/trunk/ctakes-assertion: pom.xml src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/TrainAssertionModel.java src/main/java/org/apache/ctakes/assertion/util/NegationManualDepContextAnalyzer.java
Date Fri, 31 May 2013 20:25:32 GMT
Author: tmill
Date: Fri May 31 20:25:32 2013
New Revision: 1488386

URL: http://svn.apache.org/r1488386
Log:
per discussion on dev email list, dependency on cleartk-examples not used.

Modified:
    ctakes/trunk/ctakes-assertion/pom.xml
    ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/TrainAssertionModel.java
    ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/util/NegationManualDepContextAnalyzer.java

Modified: ctakes/trunk/ctakes-assertion/pom.xml
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-assertion/pom.xml?rev=1488386&r1=1488385&r2=1488386&view=diff
==============================================================================
--- ctakes/trunk/ctakes-assertion/pom.xml (original)
+++ ctakes/trunk/ctakes-assertion/pom.xml Fri May 31 20:25:32 2013
@@ -88,19 +88,6 @@
 		<dependency>
 			<groupId>org.cleartk</groupId>
 			<artifactId>cleartk-eval</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.cleartk</groupId>
-			<artifactId>cleartk-examples</artifactId>
-			<exclusions>
-				<exclusion>
-				<!-- Excluding mallet/trove4j dependencies due to 
-				licence in compatible until we could remove the
-				cleartk-examples dependency. -->
-					<groupId>org.cleartk</groupId>
-	          		<artifactId>cleartk-ml-mallet</artifactId>
-	          	</exclusion>
-			</exclusions>
 		</dependency>			
 		<dependency>
 			<groupId>args4j</groupId>

Modified: ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/TrainAssertionModel.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/TrainAssertionModel.java?rev=1488386&r1=1488385&r2=1488386&view=diff
==============================================================================
--- ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/TrainAssertionModel.java
(original)
+++ ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/TrainAssertionModel.java
Fri May 31 20:25:32 2013
@@ -61,7 +61,6 @@ import org.apache.ctakes.typesystem.type
 import org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation;
 import org.apache.ctakes.typesystem.type.textspan.Sentence;
 import org.cleartk.classifier.jar.DefaultDataWriterFactory;
-import org.cleartk.examples.pos.ExamplePOSPlainTextWriter;
 
 
 public class TrainAssertionModel {

Modified: ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/util/NegationManualDepContextAnalyzer.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/util/NegationManualDepContextAnalyzer.java?rev=1488386&r1=1488385&r2=1488386&view=diff
==============================================================================
--- ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/util/NegationManualDepContextAnalyzer.java
(original)
+++ ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/util/NegationManualDepContextAnalyzer.java
Fri May 31 20:25:32 2013
@@ -37,8 +37,6 @@ import org.apache.uima.jcas.tcas.Annotat
 import org.apache.uima.resource.ResourceInitializationException;
 import org.apache.uima.jcas.JCas;
 
-import clear.dep.DepNode;
-
 //import edu.mayo.bmi.fsm.output.NegationIndicator;
 //import edu.mayo.bmi.nlp.parser.util.ClearDependencyUtility;
 //import edu.mayo.bmi.nlp.parser.util.DependencyPath;
@@ -142,7 +140,8 @@ public class NegationManualDepContextAna
 		// Test regexes on path
 //		System.out.println(path.toString());
 		for (int i=0; i<regexes.regexSet.size(); i++) {
-			if (regexes.regexSet.get(i).matches( path.toString() )) {
+			String pathString = path.toString();
+			if (regexes.regexSet.get(i).matches( pathString )) {
 //				System.out.println("  Regex: "+regexes.regexSet.get(i).toString()+"\n  "
 //						+regexes.regexSet.get(i).matches( path.toString() ));
 				return i;



Mime
View raw message