-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Note: for this method, your python version must be at least 3.8
pip install -U sm-grams
If you encounter errors related to compilation. It's likely that you need to have gcc
in order for pip to compile a dependency package cityhash
.
We use poetry to manage dependencies (pip install poetry
)
poetry install
poetry build
pip install dist/*.whl
Checkout Dockerfile.
In order to annotate tables with concepts and relationships in Wikidata, GRAMS needs to query Wikidata to retrieve related Qnodes and Pnodes in the tables. As querying Wikidata service remotely can be slow, you can build local databases of Wikidata. The pre-built databases can be downloaded here. To build the local databases, we create a package named kgdata which will process a Wikidata dump and create necessary files. Please follow the instruction in kgdata repository.