ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevenbeth...@apache.org
Subject svn commit: r1394298 - /incubator/ctakes/trunk/ctakes-dependency-parser/src/main/java/org/apache/ctakes/dependency/parser/ae/ClearParserSemanticRoleLabelerAE.java
Date Thu, 04 Oct 2012 22:17:33 GMT
Author: stevenbethard
Date: Thu Oct  4 22:17:32 2012
New Revision: 1394298

URL: http://svn.apache.org/viewvc?rev=1394298&view=rev
Log:
Fixes bug in handling of unspecified lemmatizer data file.

Modified:
    incubator/ctakes/trunk/ctakes-dependency-parser/src/main/java/org/apache/ctakes/dependency/parser/ae/ClearParserSemanticRoleLabelerAE.java

Modified: incubator/ctakes/trunk/ctakes-dependency-parser/src/main/java/org/apache/ctakes/dependency/parser/ae/ClearParserSemanticRoleLabelerAE.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-dependency-parser/src/main/java/org/apache/ctakes/dependency/parser/ae/ClearParserSemanticRoleLabelerAE.java?rev=1394298&r1=1394297&r2=1394298&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-dependency-parser/src/main/java/org/apache/ctakes/dependency/parser/ae/ClearParserSemanticRoleLabelerAE.java
(original)
+++ incubator/ctakes/trunk/ctakes-dependency-parser/src/main/java/org/apache/ctakes/dependency/parser/ae/ClearParserSemanticRoleLabelerAE.java
Thu Oct  4 22:17:32 2012
@@ -122,7 +122,7 @@ public class ClearParserSemanticRoleLabe
     	if (useLemmatizer) {
     		// Note: If lemmatizer data file is not specified, then use lemmas from the BaseToken
normalizedToken field.
     		// Initialize lemmatizer
-        URL lemmatizerDataFileURL = this.lemmatizerDataFile != null
+        URL lemmatizerDataFileURL = this.lemmatizerDataFile == null
             ? this.getClass().getClassLoader().getResource(ENG_LEMMATIZER_DATA_FILE)
             : this.lemmatizerDataFile.toURI().toURL();
     		lemmatizer = new MorphEnAnalyzer(new URL(lemmatizerDataFileURL.toString()));



Mime
View raw message