TheScienceMuseum / heritage-connector-vectors

Generating graph and language embeddings for the Heritage Connector project

Home Page:https://www.sciencemuseumgroup.org.uk/project/heritage-connector/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

heritage-connector-vectors

Generating graph and language embeddings for the Heritage Connector project.

What is this?

A library that:

  1. Takes JSON data of collection item descriptions or TSV/CSV data of triples, exported from heritage-connector.
  2. Calculates sentence (using sentence-transformers) or graph (using pyKEEN) embeddings for this data.
  3. Provides a unified interface for accessing these embeddings.

Commands

  • set up (install requirements and pre-commit hooks): make init
  • run api for nearest neighbour search: python -m src.api -p {port}

About

Generating graph and language embeddings for the Heritage Connector project

https://www.sciencemuseumgroup.org.uk/project/heritage-connector/

License:MIT License


Languages

Language:Jupyter Notebook 99.9%Language:Python 0.1%Language:Makefile 0.0%Language:Dockerfile 0.0%