提交 48f26463 编写于 作者: D daming-lu

better output

上级 7fbabdd6
......@@ -160,6 +160,9 @@ def infer(use_cuda, inference_program, params_dirname=None):
return_numpy=False)
print(numpy.array(result[0]))
most_possible_word_index = numpy.argmax(result[0])
print(most_possible_word_index)
print([key for key, value in word_dict.iteritems() if value == most_possible_word_index][0])
def main(use_cuda, is_sparse):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册