Skip to content
advancedpreference

Interpretable Semantic Textual Similarity

Fine-grained semantic similarity assessment between sentence pairs with span alignment, combining chunk-level annotation with graded similarity scoring. Based on SemEval-2016 Task 2.

Try it live — no install

Boot the real Potato server in your browser (WebAssembly) and annotate with this exact config. Nothing leaves your machine.

Run live in your browser

Get This Design

View on GitHub(opens in a new tab)

Clone or download from the repository

Quick start:

bash
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/semeval/2016/task02-interpretable-sts
potato start config.yaml

Configuration File

This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.

yaml
# Interpretable Semantic Textual Similarity
# Based on Agirre et al., SemEval 2016
# Paper: https://aclanthology.org/S16-1082/
# Dataset: http://ixa2.si.ehu.eus/stswiki/
#
# Interpretable STS (iSTS) explains the commonalities and differences
# between two sentences. Annotators align chunks across the two sentences
# and label each alignment with a relation type and a similarity score.
#
# Alignment relation types:
# - EQUI:  chunks are semantically equivalent
# - OPPO:  chunks are opposite in meaning
# - SPE1:  chunk in Sentence 1 is more specific than its counterpart in Sentence 2
# - SPE2:  chunk in Sentence 2 is more specific than its counterpart in Sentence 1
# - SIMI:  chunks are similar in meaning (not EQUI/OPPO/SPE)
# - REL:   chunks are related in meaning (not EQUI/OPPO/SPE/SIMI)
# - NOALI: chunk is not aligned to any chunk in the other sentence
#
# Similarity score (0-5):
# 5 = maximally similar; 0 = no similarity. NOALI alignments have no score.

annotation_task_name: "Interpretable Semantic Textual Similarity"
task_dir: "."

data_files:
  - sample-data.json

item_properties:
  id_key: "id"
  text_key: "text"

output_annotation_dir: "annotation_output/"
export_annotation_format: "jsonl"

port: 8000

annotation_schemes:
  - annotation_type: span
    name: alignment_relation
    description: "Highlight a chunk, then label the relation of its alignment to the other sentence."
    labels:
      - name: "EQUI"
        tooltip: "Chunks are semantically equivalent."
      - name: "OPPO"
        tooltip: "Chunks are opposite in meaning."
      - name: "SPE1"
        tooltip: "Chunk in Sentence 1 is more specific than its counterpart in Sentence 2."
      - name: "SPE2"
        tooltip: "Chunk in Sentence 2 is more specific than its counterpart in Sentence 1."
      - name: "SIMI"
        tooltip: "Chunks are similar in meaning (not EQUI/OPPO/SPE)."
      - name: "REL"
        tooltip: "Chunks are related in meaning (not EQUI/OPPO/SPE/SIMI)."
      - name: "NOALI"
        tooltip: "Chunk is not aligned to any chunk in the other sentence."

  - annotation_type: radio
    name: similarity_score
    description: "Similarity score for the alignment (0 = no similarity, 5 = maximally similar; NOALI has no score)."
    labels:
      - "0"
      - "1"
      - "2"
      - "3"
      - "4"
      - "5"

annotation_instructions: |
  You will be shown two sentences that have been divided into chunks. Your task is to:
  1. Align each chunk in one sentence with the corresponding chunk(s) in the other sentence.
  2. Label each alignment with a relation type: EQUI, OPPO, SPE1, SPE2, SIMI, REL, or NOALI.
  3. Give each aligned pair a similarity score from 0 (no similarity) to 5 (maximally similar).
  Chunks with no counterpart should be labeled NOALI.

user_config:
  allow_all_users: true
max_annotations_per_user: 50
num_annotators_per_item: 2

Sample Data

json
[
  {
    "id": "ists_001",
    "text": "A man is playing a guitar on stage.",
    "sentence_2": "A musician performs with a guitar in front of an audience."
  },
  {
    "id": "ists_002",
    "text": "The cat sat on the mat near the fireplace.",
    "sentence_2": "A dog was sleeping in the garden outside."
  }
]

// ... and 8 more items

Dataset & paper

Agirre et al., SemEval 2016

Citation (BibTeX)

bibtex
@inproceedings{agirre-etal-2016-semeval,
    title = "{S}em{E}val-2016 Task 2: Interpretable Semantic Textual Similarity",
    author = "Agirre, Eneko and Gonzalez-Agirre, Aitor and Lopez-Gazpio, I{\~n}igo and Maritxalar, Montse and Rigau, German and Uria, Larraitz",
    booktitle = "Proceedings of the 10th International Workshop on Semantic Evaluation ({S}em{E}val-2016)",
    month = jun,
    year = "2016",
    address = "San Diego, California",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/S16-1082/",
    doi = "10.18653/v1/S16-1082",
    pages = "512--524"
}

Details

Annotation Types

spanlikert

Domain

SemEvalNLPSemantic SimilarityText Alignment

Use Cases

Semantic SimilarityText AlignmentParaphrase Detection

Tags

semevalsemeval-2016shared-tasksemantic-similarityinterpretablealignmentsts

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)