You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by cl...@apache.org on 2016/07/20 14:46:30 UTC
svn commit: r1753526 -
/ctakes/trunk/ctakes-temporal/scripts/keras/dima-predict.py
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'
}