A tool for making knowledge graph, based on labeled words. KNOX gang
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Anders Aaen Springborg 1742ae0e12
Term frequency
2 years ago
.github/workflows fixed indentation 2 years ago
GloVe@3e4694a435 added glove as submodule 3 years ago
examples Added grundfos test file 2 years ago
knowledge_graph Removed old unnessecary files 2 years ago
loader removed stringIO from load_json function. Removed redundant files. Updated tests for the new implementation of load_json 2 years ago
preprocess Bigram function now inserts bigrams in the text 2 years ago
resources Term frequency 2 years ago
tests Term frequency 2 years ago
word_embedding model now returns list[list[token]] 2 years ago
.gitattributes Changed text to auto 2 years ago
.gitignore Added my virtual env to gitignore 2 years ago
.gitmodules added glove as submodule 3 years ago
.pylintrc fixed all the pylint for spacy related files in pull request #2 2 years ago
LICENSE Initial commit 3 years ago
README.md Update README.md 2 years ago
mi_graph.py Added print clean up 2 years ago
requirements.txt Conda setup 2 years ago

README.md

knox-d

MI-graph (Machine learning graph)

machine learning experts, do things

Setup: virtualenv environment

Make sure pip is up-to-date:

python -m pip install --upgrade pip

Install virtualenv:

python -m pip install virtualenv

Activate environment

To create an environment run:

python -m venv env

to create an environment with the name "env". Now to activate the environment run the activate script based on your OS in "env/Scripts".

On windows 10 you can run:

env/Scripts/Activate.ps1

in your powershell, to activate the environment.

If running scripts is denied - run the following command to remove the restriction. Stackoverflow

set-executionpolicy remotesigned

Install dependencies

To install dependencies run:

pip install -r .\requirements.txt

If you encounter problems see this.

Setup: conda environment

Install conda from their website. (We recommend the mini version / miniconda)

Initialize the environment with:

  • conda create --name knox-env python=3.8
  • activate knox-env
  • pip install -r requirements.txt
  • python -c "import nltk; nltk.download('punkt')
  • python -m spacy download en_core_web_sm And you are good to go.

Test dependencies

For developers, you also need to install the test requirements:

  • pip install -r tests/requirements.txt

pylint

Before you make a pull request to master, you should run branch though pylint.

you can use pylint_runner to run all folders in the solution, or with pylint like so Run:

pip install pylint

And then

pylint folder/