Skip to content

Install

Requirements

  • Python 3.9

Install from Pypi

We are currently working on this

Install from GitHub

To run SOMEF, please follow the next steps:

Clone this GitHub repository

git clone https://github.com/SciCodes/somef-core.git

Install somef-core (you should be in the folder that you just cloned). Note that for Python 3.7 and 3.8 the module Cython should be installed in advanced (through the command: pip install Cython).

cd somef-core
pip install -e .

Run SOMEF

somef_core --help

If everything goes fine, you should see:

Usage: somef_core [OPTIONS] COMMAND [ARGS]...

Options:
  -h, --help  Show this message and exit.

Commands:
  configure  Configure credentials
  describe   Running the Command Line Interface
  version    Show somef version.

Installing Through Docker

We provide a Docker image with SOMEF already installed. To run through Docker, you may build the Dockerfile provided in the repository by running:

docker build -t somef .

Or just use the Docker image already built in DockerHub:

docker pull kcapd/somef

Then, to run your image just type:

docker run -it kcapd/somef /bin/bash

And you will be ready to use SOMEF (see section below). If you want to have access to the results we recommend mounting a volume. For example, the following command will mount the current directory as the out folder in the Docker image:

docker run -it --rm -v $PWD/:/out kcapd/somef /bin/bash

If you move any files produced by somef into /out, then you will be able to see them in your current directory.

Configure

Before running SOMEF-core, you must configure it appropriately. Run:

python -m nltk.downloader wordnet
python -m nltk.downloader omw-1.4

To download two wordnet modules needed. Then run:

somef_core configure

And you will be asked to provide the following:

If you want to configure SOMEF with the default parameters, just type:

somef_core configure -a

For showing help about the available options, run:

somef_core configure --help

Which displays:

Usage: somef_core configure [OPTIONS]

  Configure GitHub credentials and classifiers file path

Options:
  -a, --auto  Automatically configure SOMEF
  -h, --help  Show this message and exit.