Skip to content

This is the repository for SemEval 2021 Task 4: Reading Comprehension of Abstract Meaning. It includes code for baseline models and data.

Notifications You must be signed in to change notification settings

hbasafa/SemEval2021-Reading-Comprehension-of-Abstract-Meaning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SemEval2021-Reading-Comprehension-of-Abstract-Meaning

This is the repository for SemEval 2021 Task 4: Reading Comprehension of Abstract Meaning. It includes code for baseline models and data.

Data

Data Format

Data is stored one-question-per-line in json format. Each instance of the data can be trated as a python dictinoary object. See examples below for further help in reading the data.

Sample

{
"article": "... observers have even named it after him, ``Abenomics". It is based on three key pillars -- the "three arrows" of monetary policy, fiscal stimulus and structural reforms in order to ensure long-term sustainable growth in the world's third-largest economy. In this weekend's upper house elections, ....",
"question": "Abenomics: The @placeholder and the risks",
"option_0": "chances",
"option_1": "prospective",
"option_2": "security",
"option_3": "objectives",
"option_4": "threats",
"label": 3
}
  • article : the article that provide the context for the question.
  • question : the question models are required to answer.
  • options : five answer options for the question. Model are required to select the true answer from 5 options.
  • label : index of the answer in options

Code

Data can be treated as python dictionary objects. A simple script to read ReCAM data is as follows:

def read_recam(path):
    with open(path, mode='r') as f:
        reader = jsonlines.Reader(f)
        for instance in reader:
            print(instance)

Updates

Evalution codes will be commited soon.

Citation

If you found this repo helpful, please cite our paper:

@article{basafa2021nlp, title={NLP-IIS@ UT at SemEval-2021 Task 4: Machine Reading Comprehension using the Long Document Transformer}, author={Basafa, Hossein and Movahedi, Sajad and Ebrahimi, Ali and Shakery, Azadeh and Faili, Heshaam}, journal={arXiv preprint arXiv:2105.03775}, year={2021} }

About

This is the repository for SemEval 2021 Task 4: Reading Comprehension of Abstract Meaning. It includes code for baseline models and data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%