- Clone the repo and
cd
to project root:git clone https://github.com/deepmipt/stand_ranking_en.git cd stand_ranking_en
- Create a virtual environment with
Python 3.6
:virtualenv env -p python3.6
- Activate the environment:
source ./env/bin/activate
- Install DeepPavlov:
- Clone the repo and
cd
to project rootgit clone https://github.com/deepmipt/DeepPavlov.git cd DeepPavlov
- Install the requirements:
python setup.py develop
- Install
spacy
dependencies:pip install http://lnsigo.mipt.ru/export/en_core_web_sm-2.0.0.tar.gz python3.6 -m spacy link en_core_web_sm en --force
- Download model components:
python3.6 -m deeppavlov.deep download deeppavlov/configs/ranking/insurance_config.json
- Download NLTK data:
$ python3 >>> import nltk >>> nltk.download('punkt') >>> exit()
- Clone the repo and
- Specify model endpoint host (
host
) and port (port
) incommon_defaults
or corresponding model section ofutils/server_utils/server_config.json
- Return to the
stand_ranking_en
dir - Specify virtual environment path (if necessary) in
run_en_ranking.sh
- Run model:
./run_en_ranking.sh
-
If necessary, build base docker_cuda and docker_deeppavlov images from:
-
Clone the repo and
cd
to project root:git clone https://github.com/deepmipt/stand_ranking_en.git cd stand_ranking_en
-
Build Docker image:
sudo docker build -t stand/ranking_en .
-
Run Docker image:
sudo docker run -p <host_port>:6009 -v /path/to/host/vol/map/dir:/logs stand/ranking_en