This commit is contained in:
andis
2017-08-11 20:34:17 +02:00
parent 51acbfbd38
commit 81fa9cc575
10 changed files with 202 additions and 79 deletions

View File

@@ -60,7 +60,7 @@ def train_single_thread(tid,p,le,key="answered"):
l=le.inverse_transform([ca])[0]
if type(l) is numpy.bool_:
l=bool(l)
if type(l) is numpy.string_:
if type(l) is numpy.string_ or type(l) is numpy.unicode_:
l=str(l)
store_training_data(tid,l, key)
elif not ca.strip() == "":