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.
Loss Function
We have used
BatchHardSoftMarginTripletLoss with eucledian distance as the loss function:
1 train_loss = losses.BatchHardSoftMarginTripletLoss(
2 model=model,
3 distance_metric=BatchHardTripletLossDistanceFunction.eucledian_distance,
4 )
Training Data
The model is trained on a carefully filtered dataset of
deutsche-telekom/ger-backtrans-paraphrase.
We deleted the following pairs of sentences:
We use the
NLU Few-shot Benchmark - English and German
dataset to evaluate this model in a German few-shot scenario.
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.