SciFive icon indicating copy to clipboard operation
SciFive copied to clipboard

RE example doesn't work

Open zhaoli2017 opened this issue 3 years ago • 2 comments

Hello, your examples for relation extraction don't work. Could you please check that?

zhaoli2017 avatar Aug 06 '21 07:08 zhaoli2017

What issue are you having ? have you changed the BASE_PRETRAINED_DIR to the public url described on README?

justinphan3110 avatar Aug 06 '21 08:08 justinphan3110

Yes, I changed the BASE_PRETRAINED_DIR. I can fine-tune and evaluate the model, however, there is an error when running 'model.predict'.

`/usr/local/lib/python3.7/dist-packages/mesh_tensorflow/transformer/utils.py in infer_model(estimator, vocabulary, sequence_length, batch_size, model_type, model_dir, eval_checkpoint_step, checkpoint_paths, decode_fn) 1853 batch_size=batch_size, 1854 sequence_length=sequence_length, -> 1855 checkpoint_path=checkpoint_path) 1856 1857

TypeError: 'str' object is not callable In call to configurable 'infer_model' (<function infer_model at 0x7f2afff89a70>)`

zhaoli2017 avatar Aug 12 '21 19:08 zhaoli2017