Skip to content
advancedtext

Semantic Relation Extraction and Classification in Scientific Papers

Extraction and classification of semantic relations between entities in scientific abstracts, covering six relation types. Based on SemEval-2018 Task 7.

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/2018/task07-scientific-relations
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
# Semantic Relation Extraction and Classification in Scientific Papers
# Based on Gabor et al., SemEval 2018
# Paper: https://aclanthology.org/S18-1111/
# Dataset: https://github.com/gkata/SemEval2018Task7
#
# This task asks annotators to identify entity pairs in scientific text
# and classify the semantic relation between them.
#
# Entity Span Labels:
# - Entity 1: The first entity in the relation
# - Entity 2: The second entity in the relation
#
# Relation Types:
# - Usage: Entity 1 is used by/for Entity 2
# - Result: Entity 1 produces/yields Entity 2
# - Model-Feature: Entity 1 is a feature/property of model Entity 2
# - Part-Whole: Entity 1 is a component of Entity 2
# - Topic: Entity 1 is about/relates to topic Entity 2
# - Comparison: Entity 1 is compared with Entity 2

annotation_task_name: "Semantic Relation Extraction in Scientific Papers"
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: entity_spans
    description: "Highlight the two entities involved in the semantic relation."
    labels:
      - "Entity 1"
      - "Entity 2"

  - annotation_type: radio
    name: relation_type
    description: "What is the semantic relation between Entity 1 and Entity 2?"
    labels:
      - name: "Usage"
        tooltip: "Entity 1 is used by, for, or in Entity 2"
        key_value: "1"
      - name: "Result"
        tooltip: "Entity 1 produces, yields, or results in Entity 2"
        key_value: "2"
      - name: "Model-Feature"
        tooltip: "Entity 1 is a feature or property of model/system Entity 2"
        key_value: "3"
      - name: "Part-Whole"
        tooltip: "Entity 1 is a component or part of Entity 2"
        key_value: "4"
      - name: "Topic"
        tooltip: "Entity 1 is about or related to the topic Entity 2"
        key_value: "5"
      - name: "Comparison"
        tooltip: "Entity 1 is compared or contrasted with Entity 2"
        key_value: "6"

annotation_instructions: |
  You will be shown a sentence from a scientific abstract. Your task is to:
  1. Highlight the two key entities that have a semantic relation.
  2. Classify the relation between them into one of six categories.
  Consider the domain context when determining the relation type.

user_config:
  allow_all_users: true
max_annotations_per_user: 50
num_annotators_per_item: 2

Sample Data

json
[
  {
    "id": "scirel_001",
    "text": "We use a convolutional neural network for text classification, achieving state-of-the-art results on sentiment analysis benchmarks.",
    "domain": "Natural Language Processing"
  },
  {
    "id": "scirel_002",
    "text": "The attention mechanism is a key component of the transformer architecture, enabling the model to focus on relevant parts of the input.",
    "domain": "Deep Learning"
  }
]

// ... and 8 more items

Dataset & paper

Gabor et al., SemEval 2018

Citation (BibTeX)

bibtex
@inproceedings{gabor-etal-2018-semeval,
    title = "{S}em{E}val-2018 Task 7: Semantic Relation Extraction and Classification in Scientific Papers",
    author = "G{\'a}bor, Kata and Buscaldi, Davide and Schumann, Anne-Kathrin and QasemiZadeh, Behrang and Zargayouna, Ha{\"\i}fa and Charnois, Thierry",
    booktitle = "Proceedings of the 12th International Workshop on Semantic Evaluation",
    month = jun,
    year = "2018",
    address = "New Orleans, Louisiana",
    publisher = "Association for Computational Linguistics",
    pages = "679--688",
    doi = "10.18653/v1/S18-1111",
    url = "https://aclanthology.org/S18-1111"
}

Details

Annotation Types

spanradio

Domain

SemEvalNLPRelation ExtractionScientific Text

Use Cases

Relation ExtractionScientific Text MiningKnowledge Extraction

Tags

semevalsemeval-2018shared-taskrelation-extractionscientific-textknowledge-extraction

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)