Demo stand. Model: NER ontonotes (English)
Installation and start
- Clone the repo and
cd
to project root:git clone https://github.com/deepmipt/stand_ner_en_ontonotes.git cd stand_ner_en_ontonotes
- Run script to download and unpack model components:
./download_components.sh
- Create a virtual environment with
Python 3.6
:virtualenv env -p python3.6
- Activate the environment:
source ./env/bin/activate
- Install requirements:
pip install -r requirements.txt
- Specify model endpoint host (
api_host
) and port (api_port
) inner_agent_config.json
- Specify virtual environment path (if necessary) in
run_ner_en_ontonotes.sh
- Run model:
./run_ner_en_ontonotes.sh
Building and running with Docker:
-
If necessary, build Base Docker image from:
-
Clone the repo and
cd
to project root:git clone https://github.com/deepmipt/stand_ner_en_ontonotes.git cd stand_ner_en_ontonotes
-
Build Docker image:
sudo docker build -t stand/ner_en_ontonotes .
-
Run Docker image:
sudo docker run -p <host_port>:6010 -v </path/to/host/vol/map/dir>:/logs stand/ner_en_ontonotes