You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by au...@apache.org on 2012/11/22 18:48:53 UTC

svn commit: r1412631 - /opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/mention/JWNLDictionary.java

Author: autayeu
Date: Thu Nov 22 17:48:52 2012
New Revision: 1412631

URL: http://svn.apache.org/viewvc?rev=1412631&view=rev
Log:
OPENNLP-549 Inconsistent handling of lower- and uppercase POS tags in the JWNLDictionary.getLemmas method. The uppercase tags are PTB tags and there the second N should be V. The lowercase tags are JWNL "navr" tags.

Modified:
    opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/mention/JWNLDictionary.java

Modified: opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/mention/JWNLDictionary.java
URL: http://svn.apache.org/viewvc/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/mention/JWNLDictionary.java?rev=1412631&r1=1412630&r2=1412631&view=diff
==============================================================================
--- opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/mention/JWNLDictionary.java (original)
+++ opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/coref/mention/JWNLDictionary.java Thu Nov 22 17:48:52 2012
@@ -84,7 +84,7 @@ public class JWNLDictionary implements D
       if (tag.startsWith("N") || tag.startsWith("n")) {
         pos = POS.NOUN;
       }
-      else if (tag.startsWith("N") || tag.startsWith("v")) {
+      else if (tag.startsWith("V") || tag.startsWith("v")) {
         pos = POS.VERB;
       }
       else if (tag.startsWith("J") || tag.startsWith("a")) {