Skip to content

Explainable Scientific Research Assistant - Information Extraction Part

Notifications You must be signed in to change notification settings

StonehengeNLP/ESRA-Extractor

Repository files navigation

Explainable Scientific Research Assistant (ESRA)

  1. (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
  1. 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
  1. 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
  1. Evaluating the model
python ./evaluator.py
  1. Extract abstracts
# edit the abstracts and run
python ./esra.py

# validate/clean the extracted entities and relation
python ./esra_validation.py