Downloads · 30 days
7.5K
2% of all-time downloads
deutsche-telekom/gbert-large-paraphrase-euclidean
gbert-large-paraphrase-euclidean is a sentence similarity model from deutsche-telekom. 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 mit.
This is a sentence-transformers model. It maps sentences & paragraphs (text) into a 1024 dimensional dense vector space. The model is intended to be used together with SetFit to improve German few-shot text classifica…
Downloads · 30 days
7.5K
2% of all-time downloads
All-time downloads
373K
Public
Repo size
2.7 GB
Likes
12
Public
Click a slice to open those files.
.bin1.3 GB · 100%
From the Hugging Face model README
This is a sentence-transformers model. It maps sentences & paragraphs (text) into a 1024 dimensional dense vector space. The model is intended to be used together with SetFit to improve German few-shot text classification. It has a sibling model called deutsche-telekom/gbert-large-paraphrase-cosine.
This model is based on deepset/gbert-large. Many thanks to deepset!
Loss Function
We have used BatchHardSoftMarginTripletLoss with eucledian distance as the loss function:
train_loss = losses.BatchHardSoftMarginTripletLoss(
model=model,
distance_metric=BatchHardTripletLossDistanceFunction.eucledian_distance,
)
Training Data
The model is trained on a carefully filtered dataset of
deutsche-telekom/ger-backtrans-paraphrase.
We deleted the following pairs of sentences:
min_char_len less than 15jaccard_similarity greater than 0.3de_token_count greater than 30en_de_token_count greater than 30cos_sim less than 0.85Hyperparameters
We use the NLU Few-shot Benchmark - English and German dataset to evaluate this model in a German few-shot scenario.
Qualitative results
Copyright (c) 2023 Philip May, Deutsche Telekom AG
Copyright (c) 2022 deepset GmbH
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License by reviewing the file LICENSE in the repository.