CoolFace
Datasetpublic

Mustafa2735/stsb-tr-hukuk

Turkish STS — sentence pairs scored with magibu/embeddingmagibu-200m A Turkish Semantic Textual Similarity (STS) dataset: each row is a pair of sentences plus a similarity score. Scores come from the magibu/embeddingmagibu-200m sentence-embedding model, computed as cosine similarity over L2-normalized embeddings — the exact method used by the reference Space. The set deliberately spans the full similarity range, with many near-zero (unrelated) pairs, so it can be used to… See the full description on the dataset page: https://huggingface.co/datasets/Mustafa2735/stsb-tr-hukuk.

sourceHugging Facegpl-3.0updated 2mo agoView on Hugging Face
1likes94downloads
Dataset Card

Turkish STS — sentence pairs scored with magibu/embeddingmagibu-200m

A Turkish Semantic Textual Similarity (STS) dataset: each row is a pair of sentences plus a similarity score. Scores come from the `magibu/embeddingmagibu-200m` sentence-embedding model, computed as cosine similarity over L2-normalized embeddings — the exact method used by the reference Space.

The set deliberately spans the full similarity range, with many near-zero (unrelated) pairs, so it can be used to evaluate or calibrate similarity thresholds — not just high-similarity paraphrase detection.


At a glance

Total pairs1037
Manually collected (manual)38
Synthetic (synthetic)999
Splitstrain 933 / test 104 (90 / 10)
LanguageTurkish (tr)
Scorecosine similarity, ≈ -0.040.97

Score distribution

Score bandPairs
0.0 – 0.2 (unrelated)413
0.2 – 0.4197
0.4 – 0.651
0.6 – 0.8138
0.8 – 1.0 (near-identical)238

By pair type (synthetic):

`pair_type`nmeanminmax
unrelated4500.148−0.0390.456
related2500.4060.0680.938
paraphrase2990.8440.4460.969

Columns

ColumnDescription
sentence1, sentence2The two compared Turkish sentences
scoreCosine similarity from magibu/embeddingmagibu-200m
sourcemanual (hand-collected) or synthetic
pair_typemanual / unrelated / related / paraphrase
topicTopic of the synthetic pair (for unrelated, both topics as `a\b`)
splittrain or test

Usage

python
from datasets import load_dataset

ds = load_dataset("gorkemergune/stsb-tr")
print(ds)
print(ds["train"][0])

# e.g. keep only strongly-similar pairs
paraphrases = ds["train"].filter(lambda r: r["score"] >= 0.8)

How it was built

Manual pairs (38). Real Turkish sentence pairs (news headlines and their reworded versions) collected by hand and scored with the model.

Synthetic pairs (999). Template-generated sentences in the style of Turkish news pages, across nine topics: magazine/celebrity, sports, economy, politics, weather, crime & accidents, health, technology, world. Pairs are built at three relatedness levels so scores span the whole range:

  • unrelated — two sentences from different topics → near-zero score
  • relatedsame topic, different event → low/medium score
  • paraphrase — the same event phrased two ways → high score

Every pair — manual and synthetic alike — is scored by the same model, so the column is internally consistent. Exact duplicates and identical-sentence pairs were removed.

Limitations

  • The synthetic sentences are not real news content; they imitate the style of the referenced outlets and were produced from templates. No real article text is reproduced.
  • score is a model output, not a human judgment. It reflects magibu/embeddingmagibu-200m's notion of similarity and inherits its biases. Treat it as a silver label, not gold.
  • Synthetic paraphrases are cleaner and more regular than real-world text, so the paraphrase band may be easier than natural data.

License

Released under the GNU General Public License v3.0 (GPLv3). If you use it, please also credit the underlying model magibu/embeddingmagibu-200m.