We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a15292 commit 87b2f9aCopy full SHA for 87b2f9a
1 file changed
code/rnnslu.py
@@ -126,11 +126,14 @@ def get_perf(filename, folder):
126
stdout=subprocess.PIPE)
127
128
stdout, _ = proc.communicate(''.join(open(filename).readlines()))
129
+ out = None
130
for line in stdout.split('\n'):
131
if 'accuracy' in line:
132
out = line.split()
133
break
-
134
+ # To help debug
135
+ if out is None:
136
+ print stdout.split('\n')
137
precision = float(out[6][:-2])
138
recall = float(out[8][:-2])
139
f1score = float(out[10])
0 commit comments