- (Optional) Initialize a container
docker run --runtime=nvidia -it -d --name esra_extractor nvidia/cuda
docker exec -it esra_extractor bash
# These all are needed
apt-get install git python3 python3-pip wget
- Python3.7 environments
apt-get update \
&& apt-get install -y software-properties-common curl \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get update \
&& apt-get install -y python3.7 python3.7-venv virtualenv
- Setting up
git clone --recursive https://github.com/StonehengeNLP/ESRA-Extractor.git
cd ./ESRA-Extractor
# Activate virtual environment
virtualenv --python=3.7 env
source env/bin/activate
# Install dependencies
scripts/setup.sh
pip install -r requirements.txt
- Evaluating the model
python ./evaluator.py
- Extract abstracts
# edit the abstracts and run
python ./esra.py
# validate/clean the extracted entities and relation
python ./esra_validation.py