-
Notifications
You must be signed in to change notification settings - Fork 159
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
Train your own medical Q&A retrieval model #11
Comments
It's hard to tell what the issue is without knowing your local machine, but common errors are trying to run it in tensorflow 1.0, or if the machine is windows. |
I have ubuntu 18.04 machine. packages are installed in python absl-py==0.7.1 thanks! |
wait, are you trying to execute the .ipnb file? It's a notebook file, you need to convert it |
Yes, I have converted .ipnb file into .py file. |
When I am trying to execute Train_Your_Own_Q_A_ModelsV0.2.0.ipynb file locally on my machine, I get the below error-
File "Train_Your_Own_Q_A_ModelsV0.2.0.ipynb", line 47, in
medical_qa_model = MedicalQAModelwithBert(config_file=os.path.join(pretrained_path, 'bert_config.json'),checkpoint_file=os.path.join(pretrained_path, 'biobert_model.ckpt'))
File "/docproduct/models.py", line 79, in init
build=build)
File "/docproduct/bert.py", line 214, in build_model_from_config
model.build(input_shape=[(None, None), (None, None), (None, None)])
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/network.py", line 720, in build
raise ValueError('You cannot build your model by calling
build
'ValueError: You cannot build your model by calling
build
if your layers do not support float type inputs. Instead, in order to instantiate and build your model,call
your model on real tensor data (of the correct dtype).Please help me out!!
Thanks !
The text was updated successfully, but these errors were encountered: