-
Notifications
You must be signed in to change notification settings - Fork 38
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
How to test the Saved model. #4
Comments
Has anyone wrote a code for for testing the model and reusing the checkpoints? |
Here some junk code for setting a chat, if it is what you mean on 'testing'. There cab be some misnames in functions with this repo, but in general this code works.
P. S. |
Hi @caballeto |
That was 2 years ago, but I would guess that this function uses |
@caballeto I have tried cornell_tokenizer() but it gives me KeyError . Can you please try to remember this? |
Try something like this import re
def clean_data(s):
return re.sub(r'[^\w\s]','',s.lower()) |
Thanks, @caballeto, for helping me. I have figured out the error and solved it. Your code works perfectly. |
i am getting error 'clean' is not defined can someone share the updated testing model code pleaseee |
import tensorflow as tf def str_to_int(question, word_to_id): if name == "main":
|
Thanks for the quick reply. Now i am getting this error |
It's indentation error. Check the code of cabaletto and correct the indentation. |
Thanks a lot the indentation errors have been solve. Now i am getting the error based on the checkpoint location i tried a lot to change the path. Can you please share the folder directly. Thanks a lot. NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for .ipynb_checkpoints/.ipynb_checkpoints/chatbot-checkpoint-checkpoint |
i just need the file checkpoint/chatbot_1 |
please tell me how much hours it took to complete train the model |
I have completed the training part and saved the model (checkpoints). It would be nice if you can update the code for testing the model.
Thanks
The text was updated successfully, but these errors were encountered: