foudil commited on
Commit
efe5607
·
verified ·
1 Parent(s): 0db59cf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +216 -1
README.md CHANGED
@@ -1,3 +1,218 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ license: cc-by-sa-4.0
5
+ task_categories:
6
+ - feature-extraction
7
+ - text-classification
8
+ size_categories:
9
+ - 10K<n<100K
10
+ tags:
11
+ - naturalness
12
+ - fluency
13
+ - ordinal-regression
14
+ - contrastive-learning
15
+ - machine-translation-evaluation
16
+ pretty_name: Naturalness Spectrum
17
+ source_datasets:
18
+ - extended|wmt06
19
+ - extended|wi-locness
20
+ - extended|onestop-english
21
+ configs:
22
+ - config_name: default
23
+ data_files:
24
+ - split: train
25
+ path: data/train.parquet
26
+ - split: test
27
+ path: data/test.parquet
28
  ---
29
+
30
+ # Naturalness Spectrum
31
+
32
+ An 8-level ordinal dataset for English-text **naturalness**: the degree to which a text conforms to the distributional and stylistic regularities of fluent, idiomatic native English, independent of its semantic content. Spans the spectrum from severely disfluent statistical-MT output, through learner English at three CEFR proficiency bands, to professionally edited native prose at three reading levels.
33
+
34
+ To our knowledge, this is the first dataset explicitly labelled for naturalness as a continuous ordinal property. It is constructed by composing three existing corpora whose texts can be ordered by provenance, rather than by collecting fresh human ratings — no new human annotation was solicited.
35
+
36
+ ## Dataset summary
37
+
38
+ | | |
39
+ |---|---|
40
+ | **Size** | 65,868 sentences (52,694 train / 13,174 test, stratified 80/20) |
41
+ | **Label space** | Integer 0–7, ordinal (higher = more natural) |
42
+ | **Sentence length** | 5–60 words (filtered) |
43
+ | **Language** | English |
44
+ | **Label provenance** | By source corpus (no per-sentence annotation) |
45
+ | **Constituent corpora** | WMT06, W&I+LOCNESS, OneStopEnglish |
46
+
47
+ ### The 8-level spectrum
48
+
49
+ | Label | Source | Description | Train |
50
+ |:---:|---|---|---:|
51
+ | 0 | WMT06 (human fluency scores 1–2) | Very disfluent MT output | 1,947 |
52
+ | 1 | WMT06 (human fluency score 3) | Mediocre MT output | 2,560 |
53
+ | 2 | W&I CEFR A | Beginner learner English | 6,990 |
54
+ | 3 | W&I CEFR B | Intermediate learner English | 9,099 |
55
+ | 4 | W&I CEFR C | Advanced learner English | 7,786 |
56
+ | 5 | OneStopEnglish Elementary | Simplified native English | 8,102 |
57
+ | 6 | OneStopEnglish Intermediate | Standard native English | 8,195 |
58
+ | 7 | OneStopEnglish Advanced | Sophisticated native English | 8,015 |
59
+
60
+ The spectrum groups naturally into three macro-bands — MT (0–1), Learner (2–4), Native (5–7) — and the ordering within each band is established by construction from the source labels.
61
+
62
+ ## Usage
63
+
64
+ ```python
65
+ from datasets import load_dataset
66
+
67
+ ds = load_dataset("foudilir/naturalness-spectrum")
68
+ print(ds)
69
+ # DatasetDict({
70
+ # train: Dataset({features: ['text', 'label', 'source'], num_rows: 52694}),
71
+ # test: Dataset({features: ['text', 'label', 'source'], num_rows: 13174}),
72
+ # })
73
+
74
+ print(ds["train"][0])
75
+ # {'text': '...', 'label': 6, 'source': 'OSE_Intermediate'}
76
+ ```
77
+
78
+ ### Data fields
79
+
80
+ | Field | Type | Description |
81
+ |---|---|---|
82
+ | `text` | `string` | English sentences |
83
+ | `label` | `int8` | Ordinal naturalness label, 0–7 |
84
+ | `source` | `string` | Source corpus tag (e.g. `WMT06_1-2`, `WI_CEFR_B`, `OSE_Advanced`) |
85
+
86
+ ### Splits
87
+
88
+ | Split | Sentences |
89
+ |---|---:|
90
+ | `train` | 52,694 |
91
+ | `test` | 13,174 |
92
+
93
+ The split is stratified across the 8 labels (80/20). The test split was held out from all model training and hyperparameter selection.
94
+
95
+ ## Dataset creation
96
+
97
+ ### Curation rationale
98
+
99
+ Existing approaches to text naturalness fall into two camps, each with limitations:
100
+
101
+ - **MT-evaluation metrics** (COMET, BLEURT) conflate naturalness with adequacy and require a reference translation, so they cannot score isolated text.
102
+ - **Language-model perplexity** is a one-dimensional proxy that rewards low-entropy text independent of distributional match, and inherits the bias of its training corpus.
103
+
104
+ No corpus provides continuous naturalness ratings, and no off-the-shelf encoder produces naturalness-aware representations. The key construction insight is that while no single corpus provides graded naturalness ratings, several corpora exist whose texts can be ordered by provenance: machine-translated output is, by definition, less natural than text written by native speakers; CEFR-graded learner essays sit between these extremes; reading-level rewrites of the same native articles preserve content while varying surface form.
105
+
106
+ ### Source data
107
+
108
+ **WMT06 (labels 0–1).** Human fluency judgements from the WMT 2006 shared task on machine-translation evaluation. We restrict to English-target language pairs (DE→EN, ES→EN, FR→EN). MT output was rated on a 1–5 scale; we retain only outputs with scores ≤ 3 (the disfluent end). Sentences with score ≤ 2 are assigned label 0; sentences with score 3 are assigned label 1.
109
+
110
+ **W&I+LOCNESS (labels 2–4).** The Writing & Improvements corpus from the BEA-2019 shared task: learner essays written by non-native English speakers at CEFR proficiency levels A (beginner), B (intermediate), and C (advanced). Original (pre-correction) text is used, since the learner errors — inconsistent tense, missing articles, non-idiomatic phrasing — constitute the naturalness signal of interest.
111
+
112
+ **OneStopEnglish (labels 5–7).** The OneStopEnglish corpus: parallel rewrites of the same news articles at three reading levels (Elementary, Intermediate, Advanced). The Advanced level approximates the original adult-directed native article; Elementary and Intermediate are simplifications produced by skilled editors for language learners. All three are produced by native speakers and remain grammatical; the ordering reflects their derivational relationship from the Advanced source, not a quality judgement.
113
+
114
+ ### Annotations
115
+
116
+ **No per-sentence annotation was solicited.** Labels are assigned by source provenance, following the rationale above. Within-corpus labels (WMT06 fluency scores, CEFR proficiency tags, OSE reading levels) are inherited from the source datasets.
117
+
118
+ WMT06 fluency scores are inherently noisy: on the 999 multiply-annotated sentences (5.6 % of WMT06 data; avg. 2.07 annotations/sentence), exact inter-annotator agreement ranges from 62.1 % (score 1) to 66.9 % (score 3). The ordinal framework partially absorbs this noise via distance-weighted training objectives.
119
+
120
+ ### Preprocessing
121
+
122
+ - Sentence tokenisation (NLTK) applied uniformly to all sources, so that OneStopEnglish (whose raw entries are paragraphs or articles) is brought to the same granularity as WMT06 and W&I (already sentence-level).
123
+ - Length filter: sentences of 5–60 words retained. This removes 1,781 sentences (2.6 %) and substantially reduces length confounds across sources.
124
+ - Stratified 80/20 train/test split on the 8-level label.
125
+
126
+ ## Considerations for using the data
127
+
128
+ ### Confound audit
129
+
130
+ Because the spectrum is assembled from heterogeneous corpora, a model could in principle achieve high ordinal correlation by classifying *source* rather than naturalness. Three of the strongest candidate shortcuts have been audited (see article for details):
131
+
132
+ | Confound | Probe | Finding |
133
+ |---|---|---|
134
+ | Sentence length | Distribution overlap after filtering | Substantial overlap across all 8 levels |
135
+ | Semantic content | Pairwise cosine in `all-mpnet-base-v2` space, within- vs. cross-source | Within−cross gap ≤ +0.06, distributions overlap heavily |
136
+ | Affective content | Pairwise cosine in a GoEmotions-trained SupCon encoder (`foudil/lens-emotion-encoder`) | Within−cross gap ≤ +0.06, distributions overlap heavily |
137
+
138
+ This bounds — but does not eliminate — the space of plausible shortcuts. Surface features not measured here (punctuation, capitalisation, MT-pipeline orthographic artefacts) could carry residual signal. Some of these arguably *are* part of the naturalness signal under the working definition; others may be confounds.
139
+
140
+ ### Known limitations and biases
141
+
142
+ - **English only.** Cross-lingual transfer is not supported by this dataset.
143
+ - **Register coverage.** Spans MT output, classroom learner writing, and graded news prose. Literary, poetic, and rhetorically ornate registers are not represented.
144
+
145
+ - **Native-band side-signal.** The OneStopEnglish ordering co-varies with lexical and syntactic sophistication. Models trained on this dataset may learn sophistication as a side-signal aligned with high-naturalness scores. This conflates simple-but-natural prose with simplification artefacts.
146
+ - **MT label noise.** WMT06 fluency judgements have moderate inter-annotator agreement (~62–67 %). The MT/Mediocre-MT boundary is noisier than the Learner and Native boundaries.
147
+ - **Non-uniform spacing.** The integer label scale assigns unit distance between all adjacent steps, but actual naturalness gaps are much larger between macro-bands (MT/Learner/Native) than within. Models recover this empirically; raw label arithmetic on the integer scale should be avoided.
148
+ - **Demographic representation.** Inherits the demographic skew of the source corpora (W&I learners are predominantly European; OneStopEnglish is UK-focused news; WMT06 is European-language news translation).
149
+ - **Reddit, social-media, and dialectal English are absent.** The spectrum does not cover informal native registers.
150
+
151
+ ### Personal and sensitive information
152
+
153
+ The constituent corpora are publicly released for research. No new personal information is introduced. W&I+LOCNESS learner essays were collected under the original BEA-2019 shared-task consent; no demographic identifiers beyond CEFR proficiency are retained here.
154
+
155
+ ## Additional information
156
+
157
+ ### Source data licences and attribution
158
+
159
+ This dataset re-uses material derived from three publicly available corpora. Each
160
+ source remains governed by its original licence or terms of use. Users must comply
161
+ with the source terms in addition to any terms attached to this aggregated release.
162
+
163
+ - **WMT06**: Koehn & Monz, “Manual and Automatic Evaluation of Machine Translation between European Languages,” WMT 2006. The WMT06 shared-task page describes the data as publicly available for machine translation and MT evaluation research.
164
+ - **W&I+LOCNESS**: Bryant, Felice, Andersen & Briscoe, “The BEA-2019 Shared Task on Grammatical Error Correction,” BEA 2019. The BEA-2019 release states that W&I+LOCNESS and related corpora are subject to non-commercial-use licence terms.
165
+ - **OneStopEnglish**: Vajjala & Lučić, “OneStopEnglish corpus: A new corpus for automatic readability assessment and text simplification,” BEA 2018. The corpus is released under CC BY-SA 4.0.
166
+
167
+ Because the constituent corpora have different terms, this aggregated dataset is
168
+ not intended to relicense the source corpora. Downstream users must preserve
169
+ attribution to all three sources and comply with each source’s licence or terms of use.
170
+
171
+
172
+ ### Citation information
173
+
174
+ If you use this dataset, please cite both the aggregating article and the three constituent corpora:
175
+
176
+ ```bibtex
177
+ @inproceedings{koehn-monz-2006-manual,
178
+ title = {Manual and Automatic Evaluation of Machine Translation between {E}uropean Languages},
179
+ author = {Koehn, Philipp and Monz, Christof},
180
+ booktitle = {Proceedings on the Workshop on Statistical Machine Translation},
181
+ year = {2006},
182
+ month = jun,
183
+ address = {New York City},
184
+ publisher = {Association for Computational Linguistics},
185
+ pages = {102--121},
186
+ url = {https://aclanthology.org/W06-3114/}
187
+ }
188
+
189
+ @inproceedings{bryant-etal-2019-bea,
190
+ title = {The {BEA}-2019 Shared Task on Grammatical Error Correction},
191
+ author = {Bryant, Christopher and Felice, Mariano and Andersen, {\O}istein E. and Briscoe, Ted},
192
+ booktitle = {Proceedings of the Fourteenth Workshop on Innovative Use of NLP for Building Educational Applications},
193
+ year = {2019},
194
+ month = aug,
195
+ address = {Florence, Italy},
196
+ publisher = {Association for Computational Linguistics},
197
+ pages = {52--75},
198
+ doi = {10.18653/v1/W19-4406},
199
+ url = {https://aclanthology.org/W19-4406/}
200
+ }
201
+
202
+ @inproceedings{vajjala-lucic-2018-onestopenglish,
203
+ title = {{OneStopEnglish} corpus: A new corpus for automatic readability assessment and text simplification},
204
+ author = {Vajjala, Sowmya and Lu{\v{c}}i{\'c}, Ivana},
205
+ booktitle = {Proceedings of the Thirteenth Workshop on Innovative Use of NLP for Building Educational Applications},
206
+ year = {2018},
207
+ month = jun,
208
+ address = {New Orleans, Louisiana},
209
+ publisher = {Association for Computational Linguistics},
210
+ pages = {297--304},
211
+ doi = {10.18653/v1/W18-0535},
212
+ url = {https://aclanthology.org/W18-0535/}
213
+ }
214
+ ```
215
+
216
+ ### Models trained on this dataset
217
+
218
+ - [`foudil/lens-naturalness-encoder`](https://huggingface.co/foudil/lens-naturalness-encoder) — DeBERTa-v3-base + LoRA, ordinal SupCon fine-tuned, 128-d embedding space where cosine similarity = naturalness proximity.