Skip to content

Installation

Binh Vu edited this page Oct 28, 2021 · 7 revisions

From pip

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.

From Source (for development)

We use poetry to manage dependencies (pip install poetry)

poetry install
poetry build
pip install dist/*.whl

Docker container

Checkout Dockerfile.

Data for GRAMS

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.

Clone this wiki locally