How to use RomainDarous/large_directTwoEpoch_maxPooling_mistranslationModel with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("RomainDarous/large_directTwoEpoch_maxPooling_mistranslationModel") sentences = [ "Malformed target specific variable definition", "Hedefe özgü değişken tanımı bozuk", "Kan alle data in die gids lees", "слава Украине! героям слава!" ] 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!