-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
run_classifier.py missing online prediction function #94
Comments
You'll have to write whatever "frontend" wrapper is appropriate to your use case. You should be able to use the existing code in |
run_classifier_predict_online.py.txt able to deploy it for online prediction by using session and feed style settings. shall i make it works it all tasks, then send a merging request? |
@brightmart nice one. is that the reason that you choose the way of session and feed style to solve this issue, right
|
the reason why I used session and feed style settings is that training and evaluation is designed based on files, so they load data from files then do training or evaluation. but input of online prediction is based on sequence/strings/tokens. |
is there any other good solutions to avoid reload the graph every time once estimator.predict is called ? |
@brightmart |
Thanks a lot @brightmart for sharing your script! I cleaned it up a little bit and added notebook to demonstrate the usage. You can find it here. |
great |
Can you guys share your Flask app.py code? I'm having a hard time finding any samples for BERT serving through Flask. Thank you in advance. |
Hi,
how can we use fine-tuning model for online prediction.
the input is a sentence, the output is a possibility distribution.
currently, as we can see, prediction is possible by using a file(like test.tsv), but it may not feasible to use file based style.
The text was updated successfully, but these errors were encountered: