Skip to content
Back to skills

Semantic Textual Similarity Eval

ASecurity

Evaluates a model's ability to quantify the degree of semantic similarity between pairs of sentences, including multilingual and cross-lingual contexts. It probes fine-grained semantic matching and cross-lingual generalization rather than binary paraphrase detection. Use when the user wants to benchmark on SemEval-2017 STS, or asks about evaluating this task. Reports Pearson correlation.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
researchpythongoperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill semantic-textual-similarity-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Semantic Textual Similarity Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Semantic Textual Similarity Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-semantic-textual-similarity-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-semantic-textual-similarity-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: semantic-textual-similarity-eval
description: Evaluates a model's ability to quantify the degree of semantic similarity between pairs of sentences, including multilingual and cross-lingual contexts. It probes fine-grained semantic matching and cross-lingual generalization rather than binary paraphrase detection. Use when the user wants to benchmark on SemEval-2017 STS, or asks about evaluating this task. Reports Pearson correlation.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 1708.00055
  bibtex_key: cer2017semeval
  confidence: high
---

# semantic-textual-similarity-eval

> SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluation — Cer et al. (2017) (arXiv:1708.00055, 2017)

## What this evaluates

Evaluates a model's ability to quantify the degree of semantic similarity between pairs of sentences, including multilingual and cross-lingual contexts. It probes fine-grained semantic matching and cross-lingual generalization rather than binary paraphrase detection.

## Datasets

- **SemEval-2017 STS** — total ?; splits: test (-1)

## Metrics

- `Pearson correlation` **(primary)** — range: [0, 1]
  - Pearson correlation coefficient computed between the model's predicted similarity scores and the human-annotated reference scores for each sentence pair.

## Input / output format

**Input**: A pair of sentences (monolingual or cross-lingual).

**Output**: A real-valued similarity score, typically on a 0 to 5 ordinal scale.

## Scoring recipe

```python
import numpy as np
from scipy.stats import pearsonr

def evaluate(predictions, gold):
    # predictions, gold: list/array of floats (0-5)
    corr, _ = pearsonr(gold, predictions)
    return corr
```

## Common pitfalls

- Using Spearman correlation instead of the specified Pearson correlation, which can yield different results on this scale.
- Treating the task as binary paraphrase detection rather than fine-grained similarity scoring.
- Failing to align cross-lingual sentence pairs correctly before scoring, leading to artificially low correlations.

## Evidence (verbatim from paper)

> STS is the assessment of pairs of sentences according to their degree of semantic similarity. The task involves producing real-valued similarity scores for sentence pairs. Performance is measured by the Pearson correlation of machine scores with human judgments. The ordinal scale in Table 1 guides human annotation, ranging from 0 for no meaning overlap to 5 for meaning equivalence.

## Citation

```bibtex
@misc{cer2017semeval,
  title={SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluation},
  author={Cer et al. (2017)},
  year={2017},
  note={arXiv:1708.00055}
}
```

- arXiv: 1708.00055

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.