ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1762102 - /ctakes/trunk/ctakes-temporal/scripts/nn/hybrid_classify.py
Date Sat, 24 Sep 2016 01:41:27 GMT
Author: dligach
Date: Sat Sep 24 01:41:27 2016
New Revision: 1762102

URL: http://svn.apache.org/viewvc?rev=1762102&view=rev
Log:
fixed a bug

Modified:
    ctakes/trunk/ctakes-temporal/scripts/nn/hybrid_classify.py

Modified: ctakes/trunk/ctakes-temporal/scripts/nn/hybrid_classify.py
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/scripts/nn/hybrid_classify.py?rev=1762102&r1=1762101&r2=1762102&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/scripts/nn/hybrid_classify.py (original)
+++ ctakes/trunk/ctakes-temporal/scripts/nn/hybrid_classify.py Sat Sep 24 01:41:27 2016
@@ -45,7 +45,7 @@ def main(args):
             tags = []
             for tag in pos.rstrip().split():
                 if tag in tag2int:
-                    tags.append(tag2int[token])
+                    tags.append(tag2int[tag])
                 else:
                     tags.append(tag2int['oov_word'])
                     



Mime
View raw message