$ cd ParlAI/
$ python3 setup.py develop
$ python3 examples/display_data.py -t clinical_trials
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
$ cd parlai/medtrial_connect/
#modify parlai/medtrial_connect/config.py
$ export FLASK_APP=server.py
$ flask run --host=0.0.0.0
#visit https://facebook.github.io/react-native/docs/getting-started
$ cd ../../../App
$ npm install
$ cd ios/
$ pod install
$ cd ..
$ npx react-native run-ios