Log tokenization options in a section separated from results.

This commit is contained in:
kenkeiras 2018-04-15 20:45:59 +02:00
parent d63781a0d2
commit ee5492e69d

View File

@ -162,7 +162,8 @@ def pick_one_tokenization(options, knowledge_base):
Just pick the one with more results.
'''
options = list(options)
with session().log("Picking among: {} options\n{}".format(len(options), '\n'.join(map(str, options)))):
with session().log("Picking among: {} options".format(len(options))):
session().log("Options: \n{}".format('\n'.join(map(str, options))))
return pick_by_score(options,
[
# By number of splits without structuring elements