Sentence Similarity
sentence-transformers
PyTorch
Safetensors
Transformers
Dutch
roberta
feature-extraction
text-embeddings-inference
Instructions to use NetherlandsForensicInstitute/robbert-2022-dutch-sentence-transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use NetherlandsForensicInstitute/robbert-2022-dutch-sentence-transformers with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("NetherlandsForensicInstitute/robbert-2022-dutch-sentence-transformers") sentences = [ "Deze week ga ik naar de kapper", "Ik ga binnenkort mijn haren laten knippen", "Morgen wil ik uitslapen", "Gisteren ging ik naar de bioscoop" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use NetherlandsForensicInstitute/robbert-2022-dutch-sentence-transformers with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("NetherlandsForensicInstitute/robbert-2022-dutch-sentence-transformers") model = AutoModel.from_pretrained("NetherlandsForensicInstitute/robbert-2022-dutch-sentence-transformers", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!