/erkg-tutorials

Tutorials for Entity Resolved Knowledge Graphs

Primary LanguageJupyter Notebook

erkg-tutorials

Tutorials for Entity Resolved Knowledge Graphs, doing Entity Linking on ICIJ articles.

Installation and Usage

pyenv local 3.12.5
poetry install
poetry shell
jupyter notebook
# open tutorial.ipynb

[Ignore] Old setup notes

brew doctor
# do missing methods from brew doctor
brew upgrade
# ref https://sebhastian.com/error-metadata-generation-failed/
pip install --upgrade pip setuptools wheel
pip install spacy-ann-linker

"SessionExpired: Failed to read from defunct connection" errors

graphdatascience==1.10 (the Py library) Neo4j Desktop 1.6.0 Neo4j DB engine  5.18.1 GDS plugin 2.6.8

debug Neo4j running locally

lsof -i tcp:5000-5005,6000-6005,7000-7005
pyenv install --list | grep " 3\.[(7)]"
brew install openssl readline sqlite3 xz zlib
pyenv install 3.7.17
pyenv local 3.7.17
python -m venv venv
source venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install flit
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=14.5 flit install --deps=all --symlink
spacy download en_core_web_md

brew install openblas
pip install --upgrade pip setuptools wheel
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=14.5 pip install spacy-ann-linker

export OPENBLAS=$(brew --prefix openblas)

export CFLAGS="-falign-functions=8 ${CFLAGS}"