How to use Futyn-Maker/ruscxn-embedder with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Futyn-Maker/ruscxn-embedder") sentences = [ "Instruct: Given a sentence, find the constructions of the Russian Constructicon that it contains\nQuery: Петр так и замер.", "NP-Nom так и VP-Pfv", "VP вокруг да около", "NP-Nom в гробу видать NP-Acc" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
The community tab is the place to discuss and collaborate with the HF community!