(module_handle)
| 21 | |
| 22 | |
| 23 | def get_tokenization_info(module_handle): |
| 24 | with tf.Graph().as_default(): |
| 25 | bert_module = hub.Module(module_handle) |
| 26 | with tf.Session() as sess: |
| 27 | return sess.run(bert_module(signature="tokenization_info", as_dict=True)) |
| 28 | |
| 29 | |
| 30 | def get_tokenizer(module_handle): |
no test coverage detected
searching dependent graphs…