Skip to content

This is the official codebase accompanying our EMNLP 2022 paper "SLING: Sino-Linguistic Evaluation of Large Language Models".

License

Notifications You must be signed in to change notification settings

Yixiao-Song/SLING_Data_Code

Repository files navigation

SLING: Sino-Linguistic Evaluation of Large Language Models

arxiv

This is the official codebase accompanying our EMNLP 2022 paper "SLING: Sino-Linguistic Evaluation of Large Language Models". You can find our paper on arxiv.

SLING Dataset

See SLING_Data and the readme file in it.

A complete list of all phenomea and paradigms can be found in PhenomenonParadigmList.txt

SLING Code

See SLING_Code and the readme file in it.

Setup

python -m virtualenv sling-venv
source sling-venv/bin/activate
pip install torch torchvision # currently, this is the version compatible with CUDA 10.1
pip install transformers
pip install nltk

To run the language models

python SLING_Code/lm_sling.py
python SLING_Code/PanGu_sling.py
python SLING_Code/gpt3_sling.py
python SLING_Code/byt5_sling.py

lstm_sling.py is included in SLING_Code for reference. Details of how to run the CLUECorpusSmall LSTM language model can be found here.

Citation Information

If you use SLING, please cite it as follows:

@inproceedings{sling22,
author={Yixiao Song and Kalpesh Krishna and Rajesh Bhatt and Mohit Iyyer},
booktitle = {Empirical Methods in Natural Language Processing},
Year = "2022",
Title={SLING: Sino Linguistic Evaluation of Large Language Models},
}

If you use the reflexive_auto and reflexive_natural data in the Anaphor folder, please also cite:

@inproceedings{yangcoling2025,
author={Xiulin Yang},
booktitle = {International Conference on Computational Linguistics (COLING2025)},
Year = "2025",
Title={Language Models at the Syntax-Semantics Interface: A Case Study of the Long-Distance Binding of Chinese Reflexive ziji},
}

About

This is the official codebase accompanying our EMNLP 2022 paper "SLING: Sino-Linguistic Evaluation of Large Language Models".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages