DOI Documentation Status Python GitHub # AI-and-open-science Repository created for uploading the assigment of Artificial Intelligence And Open Science In Research Software Engineering subject

The assigment consists in analysing papers with grobid and python: - Draw a keyword cloud based on the abstract information. - Create a visualization showing the number of figures per article. - Create a list of links found in each paper.

License

GNU GENERAL PUBLIC LICENSE

Using the software with docker

If you want to use docker to use the software, you should do the following steps Before start, make sure that you have docker and docker compose installed - First of all clone the repository in your local

git clone https://github.com/dreynes/AI-and-open-science.git
  • We move to inside the repository

cd AI--amd-open-science/
  • Now we can create the containers executing:

docker compose up -d
  • Then for execute the program use:

docker logs client

The results will be inside a folder called “out_docker”

  • If a connection problem apperar try cchanging the first line of the config.json and change grobid for your ip

"grobid_server": "http://grobid:8070",

Using the software without docker

Alternatively here are instructions on how to run the software without docker in case you prefer this option First install conda and docker - Next clone the repository in your local

git clone https://github.com/dreynes/AI-and-open-science.git
  • Change the first line of the config.json and change grobid for your ip or localhost

"grobid_server": "http://grobid:8070", -> "grobid_server": "http://localhost:8070",
  • Open a terminal execute this command to deploy grobid

docker pull lfoppiano/grobid:0.7.2
docker run -t --rm -p 8070:8070 lfoppiano/grobid:0.7.2
  • Next, install the grobid client

git clone https://github.com/kermitt2/grobid_client_python
cd grobid_client_python
python3 setup.py install
cd ..
  • Now, create an anaconda environment activate it and install the dependences

conda create -n newenv
conda activate newenv
python3 -m pip install --upgrade pip
pip install -r requirements.txt
  • To finish execute the python file

python3 script.py

Workflow

workflow

workflow