File size: 1,949 Bytes
cfb109b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
task_categories:
- text-classification
- text-generation
- token-classification
- feature-extraction
- sentence-similarity
language:
- en
tags:
- nlp
- parsing
- grammar
size_categories:
- 1M<n<10M
---
# Sentence Parse Trees

This dataset contains high-quality English sentences and their corresponding parse trees. It is derived from the [agentlans/high-quality-english-sentences](https://huggingface.co/datasets/agentlans/high-quality-english-sentences) dataset, 
with parse trees generated using [spaCy](https://spacy.io/) `en_core_web_sm` package. Abnormally long or short parses have been removed.

## Dataset Description

- **Size:** 1&thinsp;502&thinsp;479 entries
- **Source:** [agentlans/high-quality-english-sentences](https://huggingface.co/datasets/agentlans/high-quality-english-sentences)
- **Parsing Tool:** spaCy

## Data Format

Each entry in the dataset is a JSON object with two fields:

1. `text`: The original sentence
2. `parse`: The parse tree in Lisp-style S-expression format
   - Each list contains: syntactic dependency relation, the word, and the parse tree of its descendants
   - Words are enclosed in double quotes and escaped where necessary

### Example Entry

```json
{
  "text": "At present, this mechanism has become one of the three major pillars underpinning the development of China-UK relations.",
  "parse": "(ROOT \"become\" (prep \"At\" (pobj \"present\")) (punct \",\") (nsubj \"mechanism\" (det \"this\")) (aux \"has\") (attr \"one\" (prep \"of\" (pobj \"pillars\" (det \"the\") (nummod \"three\") (amod \"major\") [...]"
}
```

## Usage

This dataset can be used for various natural language processing tasks, including:

- Syntactic parsing research
- Grammar analysis
- Language model training
- Linguistic studies

## Licence

Please refer to the license of the original [agentlans/high-quality-english-sentences](https://huggingface.co/datasets/agentlans/high-quality-english-sentences) dataset.