You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Construct Sparse Matrix(validation takes a very long time, can be skipped by entering Ctrl+C when terminal shows [ running eval: valid ])
$ python3 examples/train_model.py -m tfidf_retriever -t clinical_trials -mf MODEL_PATH -dt train:ordered -eps 1
#example MODEL_PATH: /tmp/clinical_trials_tfidf#in the example above, a file named clinical_trials_tfidf will be created under /tmp
Setup Flask Server
$ cd parlai/medtrial_connect/
Config URL, PORT, MODEL_PATH
#modify parlai/medtrial_connect/config.py
Run Flask Server
$ export FLASK_APP=server.py
$ flask run --host=0.0.0.0