Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RE example doesn't work #3

Open
zhaoli2017 opened this issue Aug 6, 2021 · 2 comments
Open

RE example doesn't work #3

zhaoli2017 opened this issue Aug 6, 2021 · 2 comments

Comments

@zhaoli2017
Copy link

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

@justinphan3110
Copy link
Owner

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

@zhaoli2017
Copy link
Author

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>)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants