Skip to content
littleRound edited this page Nov 19, 2020 · 1 revision

Welcome to the kg4sec wiki!

Useful resources:

Installation

  1. Prepare a python(>=3.7) environment using virtualenv or conda

  2. Clone the repo (also the submodule)

    git clone --recursive [email protected]:camelop/kg4sec.git

    cd kg4sec

  3. Install securitytext2graph(st2g) submodule

    pip install -e submodules/securitytext2graph

    python -m spacy download en_core_web_sm

  4. Install kg4sec

    pip install -e .

  5. Download nltk dependency

    python -c "import nltk;nltk.download('averaged_perceptron_tagger');nltk.download('punkt')"

Run tests

(Check the github-action of this repo for example.)

  1. Install pytest

    pip install pytest

  2. (Switch to the project dir and) run all tests cases

    pytest tests

Clone this wiki locally