Sign inSign up

stackateam/bert_elastic_service

By stackateam

Updated over 6 years ago

Image
0

263

stackateam/bert_elastic_service repository overview

alt text

Accessible depuis http://35.180.98.88:8009/docs/

ELASTIC - BERT and FASTTEXT interface

#  MAN
#  docker run -p 8009:8009 -p 5555:5555 -p 5556:5556 bert_elastic_service:latest
#  avec la commande suivante:  pipenv run bert-serving-start -num_worker=1 -model_dir ./uncased_L-12_H-768_A-12

Script d'installation sur EC2 ubuntu.

installation de python, pipenv, téléchargement du modèle fasttext, installation des modules Pipfile.
Excécution du serveur bert
Run de l'image docker fastapi.

apt update

apt install -y software-properties-common python-software-properties
add-apt-repository ppa:deadsnakes/ppa

apt update

 apt install -y \
    python3.7-dev \
    python3-pip

git clone https://[email protected]/stackadoc/bert-elastic-service.git

MDP


# PYTHON installation
python3.7 -m pip install pipenv
pipenv install --skip-lock

pipenv run bert-serving-start -num_worker=1 -model_dir ./uncased_L-12_H-768_A-12 &

nohup sudo docker run -p 8009:8009 --env-file utils/env.list --network host stackateam/bert_elastic_service:latest > api.logs &

Tag summary

Content type

Image

Digest

Size

935.3 MB

Last updated

over 6 years ago

docker pull stackateam/bert_elastic_service