File size: 3,236 Bytes
a6c2d2b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3f52821
a6c2d2b
 
 
3f52821
a6c2d2b
 
 
3f52821
a6c2d2b
 
 
3f52821
a6c2d2b
 
 
3f52821
a6c2d2b
0f15f38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
---
annotations_creators:
- expert-generated
language:
- en
- fr
- de
- he
- ru
language_creators:
- expert-generated
license:
- apache-2.0
multilinguality:
- multilingual
paperswithcode_id: null
pretty_name: CLAMS - Cross-Linguistic Assessment of Models on Syntax
size_categories:
- 1K<n<10K
source_datasets:
- original
tags:
- syntax
- grammaticality
- minimal-pairs
task_categories:
- other
task_ids: []
configs:
- config_name: en
  data_files:
    - split: test
      path: data/en*.parquet
- config_name: fr
  data_files:
    - split: test
      path: data/fr*.parquet
- config_name: de
  data_files:
    - split: test
      path: data/de*.parquet
- config_name: he
  data_files:
    - split: test
      path: data/he*.parquet
- config_name: ru
  data_files:
    - split: test
      path: data/ru*.parquet
---
# CLAMS - Cross-Linguistic Assessment of Models on Syntax

## Dataset Description

CLAMS (Cross-Linguistic Assessment of Models on Syntax) is a dataset of syntactic minimal pairs for English, French, German, Hebrew, and Russian. The dataset contains grammaticality judgment pairs (good/bad sentence pairs) for various syntactic phenomena, designed to evaluate language models' syntactic knowledge across different languages.

## Dataset Structure

The dataset contains minimal pairs for 5 languages, each organized as separate subsets:

- **en** (English): Syntactic minimal pairs for English
- **fr** (French): Syntactic minimal pairs for French  
- **de** (German): Syntactic minimal pairs for German
- **he** (Hebrew): Syntactic minimal pairs for Hebrew
- **ru** (Russian): Syntactic minimal pairs for Russian

### Fields

- `sentence_good`: The grammatical sentence
- `sentence_bad`: The ungrammatical sentence
- `test_case`: The specific syntactic test case name (filename without extension)
- `pair_id`: Unique identifier for the minimal pair within the test case
- `good_line`: Original line number of the good sentence
- `bad_line`: Original line number of the bad sentence

## Usage

```python
from datasets import load_dataset

# Load specific language
dataset = load_dataset("juletxara/clams", "en")

# Or load all languages
dataset = load_dataset("juletxara/clams")

# Access specific language data
english_data = dataset['en']

# Example usage
for example in english_data:
    print(f"Good: {example['sentence_good']}")
    print(f"Bad: {example['sentence_bad']}")
    print(f"Test case: {example['test_case']}")
    print()
```

## Data Source

This dataset is derived from the CLAMS project:
https://github.com/aaronmueller/clams

## Citation

Please cite the original CLAMS paper when using this dataset:

```bibtex
@inproceedings{mueller-etal-2020-cross,
    title = "Cross-Linguistic Syntactic Evaluation of Word Prediction Models",
    author = "Mueller, Aaron and Linzen, Tal and Dunagan, Dustin and Bau, David and Belinkov, Yonatan",
    booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
    year = "2020",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2020.acl-main.490",
    pages = "5523--5539"
}
```

## License

This dataset follows the original CLAMS project's Apache License, Version 2.0.