ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1753526 - /ctakes/trunk/ctakes-temporal/scripts/keras/dima-predict.py
Date Wed, 20 Jul 2016 14:46:30 GMT
Author: clin
Date: Wed Jul 20 14:46:29 2016
New Revision: 1753526

URL: http://svn.apache.org/viewvc?rev=1753526&view=rev
Log:
fix the bug in the python script of reading none category as "-NONE-", which doesn't match
the expected "none"

Modified:
    ctakes/trunk/ctakes-temporal/scripts/keras/dima-predict.py

Modified: ctakes/trunk/ctakes-temporal/scripts/keras/dima-predict.py
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/scripts/keras/dima-predict.py?rev=1753526&r1=1753525&r2=1753526&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/scripts/keras/dima-predict.py (original)
+++ ctakes/trunk/ctakes-temporal/scripts/keras/dima-predict.py Wed Jul 20 14:46:29 2016
@@ -16,7 +16,7 @@ def main(args):
     working_dir = args[0]
 
     int2label = {
-        0:'-NONE-',
+        0:'none',
         1:'CONTAINS',
         2:'CONTAINS-1'
     }



Mime
View raw message