Downloads · 30 days
4
4% of all-time downloads
ellisdoro/bfo-all-MiniLM-L6-v2_additive_gcn_h512_o64_cosine_e1024_early-on2vec-koji-early
bfo-all-MiniLM-L6-v2_additive_gcn_h512_o64_cosine_e1024_early-on2vec-koji-early is a sentence similarity model from ellisdoro. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as apache-2.0.
This is a sentence-transformers model created with on2vec, which augments text embeddings with ontological knowledge using Graph Neural Networks.
Downloads · 30 days
4
4% of all-time downloads
All-time downloads
89
Public
Parameters
22.7M
90.9 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors90.9 MB · 99%
From the Hugging Face model README
This is a sentence-transformers model created with on2vec, which augments text embeddings with ontological knowledge using Graph Neural Networks.
This model uses a multi-stage architecture:
Embedding Flow:
This model combines:
The ontological knowledge helps the model better understand domain-specific relationships and concepts.
from sentence_transformers import SentenceTransformer
# Load the model
model = SentenceTransformer('bfo_all-MiniLM-L6-v2_additive_gcn_h512_o64_cosine_e1024_early')
# Generate embeddings
sentences = ['Example sentence 1', 'Example sentence 2']
embeddings = model.encode(sentences)
# Compute similarity
from sentence_transformers.util import cos_sim
similarity = cos_sim(embeddings[0], embeddings[1])
This model was created using the on2vec pipeline:
This model is particularly effective for:
If you use this model, please cite the on2vec framework:
@software{on2vec,
title={on2vec: Ontology Embeddings with Graph Neural Networks},
author={David Steinberg},
url={https://github.com/david4096/on2vec},
year={2024}
}
Created with on2vec 🧬→🤖