(module_handle)
| 91 | |
| 92 | |
| 93 | def get_tokenization_info(module_handle): |
| 94 | with tf.Graph().as_default(): |
| 95 | bert_module = hub.Module(module_handle) |
| 96 | with tf.Session() as sess: |
| 97 | return sess.run(bert_module(signature="tokenization_info", as_dict=True)) |
| 98 | |
| 99 | |
| 100 | def get_tokenizer(module_handle): |
no test coverage detected
searching dependent graphs…