Traceback (most recent call last):


 "chatbot/bottrainer.py", line 142, in <module>

bt = BotTrainer(corpus_dir=corp_dir)


 "chatbot/bottrainer.py", line 30, in __init__

tokenized_data = TokenizedData(corpus_dir=corpus_dir)


 "/Volumes/xs/CodeSpace/ng/ai/experiment/ChatLearner/chatbot/tokenizeddata.py", line 72, in __init__

self._convert_to_tokens(buffer_size)


 "/Volumes/xs/CodeSpace/ng/ai/experiment/ChatLearner/chatbot/tokenizeddata.py", line 249, in _convert_to_tokens

output_buffer_size=buffer_size)


 "/usr/local/lib/python3.6/site-packages/tensorflow/contrib/data/python/ops/dataset_ops.py", line 813, in map

return MapDataset(self, map_func, num_threads, output_buffer_size)


 "/usr/local/lib/python3.6/site-packages/tensorflow/contrib/data/python/ops/dataset_ops.py", line 1436, in __init__

self._map_func.add_to_graph(ops.get_default_graph())


 "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/function.py", line 619, in add_to_graph

self._create_definition_if_needed()


 "/usr/local/lib/python3.6/site-packages/tensorflow/contrib/data/python/framework/function.py", line 167, in _create_definition_if_needed

outputs = self._func(*inputs)


 "/usr/local/lib/python3.6/site-packages/tensorflow/contrib/data/python/ops/dataset_ops.py", line 1422, in tf_map_func

ret = map_func(*nested_args)


 "/Volumes/xs/CodeSpace/ng/ai/experiment/ChatLearner/chatbot/tokenizeddata.py", line 248, in <lambda>

(self.case_table.lookup(src), self.case_table.lookup(tgt)),


 "/usr/local/lib/python3.6/site-packages/tensorflow/contrib/lookup/lookup_ops.py", line 186, in lookup

self._table_ref, key_tensor, self._default_value, name=scope)


 "/usr/local/lib/python3.6/site-packages/tensorflow/python/ops/gen_lookup_ops.py", line 288, in _lookup_table_find

name=name)


 "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op

op_def=op_def)


 "/usr/local/lib/python3.6/site-packages/tensorflow/contrib/data/python/framework/function.py", line 81, in create_op

data_types, **kwargs)


 "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/function.py", line 361, in create_op

**kwargs)


 "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2506, in create_op

original_op=self._default_original_op, op_def=op_def)


 "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1250, in __init__

input_types))
TypeError: In op 'hash_table_Lookup', input types ([tf.string, tf.string, tf.string]) are not compatible with expected types ([tf.string_ref, tf.string, tf.string])

Traceback (most recent call last):


 "/home/galahad/miniconda3/envs/ns0208/lib/python3.8/site-packages/distributed/protocol/core.py", line 39, in dumps

small_header, small_payload = dumps_msgpack(msg, **compress_opts)


 "/home/galahad/miniconda3/envs/ns0208/lib/python3.8/site-packages/distributed/protocol/core.py", line 184, in dumps_msgpack

payload = msgpack.dumps(msg, default=msgpack_encode_default, use_bin_type=True)


 "/home/galahad/miniconda3/envs/ns0208/lib/python3.8/site-packages/msgpack/__init__.py", line 35, in packb

return Packer(**kwargs).pack(o)


 "msgpack/_packer.pyx", line 292, in msgpack._cmsgpack.Packer.pack


 "msgpack/_packer.pyx", line 298, in msgpack._cmsgpack.Packer.pack


 "msgpack/_packer.pyx", line 295, in msgpack._cmsgpack.Packer.pack


 "msgpack/_packer.pyx", line 264, in msgpack._cmsgpack.Packer._pack


 "msgpack/_packer.pyx", line 231, in msgpack._cmsgpack.Packer._pack


 "msgpack/_packer.pyx", line 231, in msgpack._cmsgpack.Packer._pack


 "msgpack/_packer.pyx", line 264, in msgpack._cmsgpack.Packer._pack


 "msgpack/_packer.pyx", line 231, in msgpack._cmsgpack.Packer._pack


 "msgpack/_packer.pyx", line 289, in msgpack._cmsgpack.Packer._pack
TypeError: can not serialize 'dict_keys' object
