Datasets:
Add README.md
Browse files
README.md
CHANGED
|
@@ -1,146 +1,108 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-sa-4.0
|
| 3 |
task_categories:
|
| 4 |
-
- token-classification
|
| 5 |
task_ids:
|
| 6 |
-
- parsing
|
| 7 |
-
- part-of-speech
|
| 8 |
-
- lemmatization
|
| 9 |
language:
|
| 10 |
-
- vi
|
| 11 |
annotations_creators:
|
| 12 |
-
- machine-generated
|
| 13 |
language_creators:
|
| 14 |
-
- found
|
| 15 |
multilinguality:
|
| 16 |
-
- monolingual
|
| 17 |
source_datasets:
|
| 18 |
-
- undertheseanlp/UTS_VLC
|
| 19 |
size_categories:
|
| 20 |
-
- 10K<n<100K
|
| 21 |
tags:
|
| 22 |
-
- universal-dependencies
|
| 23 |
-
- vietnamese
|
| 24 |
-
- nlp
|
| 25 |
-
- dependency-parsing
|
| 26 |
-
- pos-tagging
|
| 27 |
-
configs:
|
| 28 |
-
- config_name: default
|
| 29 |
-
data_files:
|
| 30 |
-
- split: train
|
| 31 |
-
path: data/train-*
|
| 32 |
-
- split: validation
|
| 33 |
-
path: data/validation-*
|
| 34 |
-
- split: test
|
| 35 |
-
path: data/test-*
|
| 36 |
-
dataset_info:
|
| 37 |
-
features:
|
| 38 |
-
- name: sent_id
|
| 39 |
-
dtype: string
|
| 40 |
-
- name: text
|
| 41 |
-
dtype: string
|
| 42 |
-
- name: tokens
|
| 43 |
-
list: string
|
| 44 |
-
- name: lemmas
|
| 45 |
-
list: string
|
| 46 |
-
- name: upos
|
| 47 |
-
list: string
|
| 48 |
-
- name: xpos
|
| 49 |
-
list: string
|
| 50 |
-
- name: feats
|
| 51 |
-
list: string
|
| 52 |
-
- name: head
|
| 53 |
-
list: string
|
| 54 |
-
- name: deprel
|
| 55 |
-
list: string
|
| 56 |
-
- name: deps
|
| 57 |
-
list: string
|
| 58 |
-
- name: misc
|
| 59 |
-
list: string
|
| 60 |
-
splits:
|
| 61 |
-
- name: train
|
| 62 |
-
num_bytes: 15737093
|
| 63 |
-
num_examples: 9165
|
| 64 |
-
- name: validation
|
| 65 |
-
num_bytes: 747301
|
| 66 |
-
num_examples: 432
|
| 67 |
-
- name: test
|
| 68 |
-
num_bytes: 744334
|
| 69 |
-
num_examples: 403
|
| 70 |
-
download_size: 2469001
|
| 71 |
-
dataset_size: 17228728
|
| 72 |
---
|
| 73 |
|
| 74 |
# UDD-1: Universal Dependency Dataset for Vietnamese
|
| 75 |
|
| 76 |
## Dataset Description
|
| 77 |
|
| 78 |
-
Vietnamese Universal Dependency dataset created by Underthesea NLP. This dataset follows the [Universal Dependencies](https://universaldependencies.org/) annotation guidelines.
|
| 79 |
|
| 80 |
### Dataset Summary
|
| 81 |
|
| 82 |
- **Language:** Vietnamese (vi)
|
| 83 |
- **Version:** 1.0
|
| 84 |
- **Domain:** ⚖️ Legal (Laws)
|
| 85 |
-
- **Sentences:** 10,000
|
| 86 |
-
- **Tokens:** 230,709
|
| 87 |
- **Source:** Vietnamese Legal Corpus (UTS_VLC)
|
| 88 |
- **Annotation:** Machine-generated using Underthesea NLP toolkit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
### Statistics
|
| 91 |
|
| 92 |
-
| Metric |
|
| 93 |
-
|--------|-------|
|
| 94 |
-
| Sentences |
|
| 95 |
-
| Tokens |
|
| 96 |
-
| Avg
|
| 97 |
-
| Min sentence length | 3 |
|
| 98 |
-
| Max sentence length | 84 |
|
| 99 |
-
|
| 100 |
-
#### UPOS Distribution
|
| 101 |
-
|
| 102 |
-
| Tag | Count | Percent |
|
| 103 |
-
|-----|------:|--------:|
|
| 104 |
-
| NOUN | 73,953 | 32.05% |
|
| 105 |
-
| VERB | 56,733 | 24.59% |
|
| 106 |
-
| PUNCT | 26,110 | 11.32% |
|
| 107 |
-
| ADP | 22,534 | 9.77% |
|
| 108 |
-
| AUX | 8,444 | 3.66% |
|
| 109 |
-
| ADV | 7,867 | 3.41% |
|
| 110 |
-
| NUM | 7,509 | 3.25% |
|
| 111 |
-
| ADJ | 7,093 | 3.07% |
|
| 112 |
-
| CCONJ | 5,957 | 2.58% |
|
| 113 |
-
| DET | 5,326 | 2.31% |
|
| 114 |
-
| PRON | 3,853 | 1.67% |
|
| 115 |
-
| SCONJ | 3,793 | 1.64% |
|
| 116 |
-
| PROPN | 1,311 | 0.57% |
|
| 117 |
-
| PART | 154 | 0.07% |
|
| 118 |
-
| X | 72 | 0.03% |
|
| 119 |
-
|
| 120 |
-
#### Top Dependency Relations
|
| 121 |
-
|
| 122 |
-
| Relation | Count | Percent |
|
| 123 |
-
|----------|------:|--------:|
|
| 124 |
-
| punct | 26,110 | 11.32% |
|
| 125 |
-
| obj | 21,757 | 9.43% |
|
| 126 |
-
| nmod | 20,998 | 9.10% |
|
| 127 |
-
| case | 20,860 | 9.04% |
|
| 128 |
-
| conj | 19,751 | 8.56% |
|
| 129 |
-
| compound | 12,334 | 5.35% |
|
| 130 |
-
| root | 10,000 | 4.33% |
|
| 131 |
-
| nsubj | 9,527 | 4.13% |
|
| 132 |
-
| acl:subj | 9,362 | 4.06% |
|
| 133 |
-
| cc | 5,927 | 2.57% |
|
| 134 |
|
| 135 |
## Usage
|
| 136 |
|
| 137 |
```python
|
| 138 |
from datasets import load_dataset
|
| 139 |
|
|
|
|
| 140 |
dataset = load_dataset("undertheseanlp/UDD-1")
|
| 141 |
-
print(dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
```
|
| 143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
## Citation
|
| 145 |
|
| 146 |
```bibtex
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-sa-4.0
|
| 3 |
task_categories:
|
| 4 |
+
- token-classification
|
| 5 |
task_ids:
|
| 6 |
+
- parsing
|
| 7 |
+
- part-of-speech
|
| 8 |
+
- lemmatization
|
| 9 |
language:
|
| 10 |
+
- vi
|
| 11 |
annotations_creators:
|
| 12 |
+
- machine-generated
|
| 13 |
language_creators:
|
| 14 |
+
- found
|
| 15 |
multilinguality:
|
| 16 |
+
- monolingual
|
| 17 |
source_datasets:
|
| 18 |
+
- undertheseanlp/UTS_VLC
|
| 19 |
size_categories:
|
| 20 |
+
- 10K<n<100K
|
| 21 |
tags:
|
| 22 |
+
- universal-dependencies
|
| 23 |
+
- vietnamese
|
| 24 |
+
- nlp
|
| 25 |
+
- dependency-parsing
|
| 26 |
+
- pos-tagging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
---
|
| 28 |
|
| 29 |
# UDD-1: Universal Dependency Dataset for Vietnamese
|
| 30 |
|
| 31 |
## Dataset Description
|
| 32 |
|
| 33 |
+
Vietnamese Universal Dependency dataset created by Underthesea NLP. This dataset follows the [Universal Dependencies](https://universaldependencies.org/) annotation guidelines and has passed all UD validation levels.
|
| 34 |
|
| 35 |
### Dataset Summary
|
| 36 |
|
| 37 |
- **Language:** Vietnamese (vi)
|
| 38 |
- **Version:** 1.0
|
| 39 |
- **Domain:** ⚖️ Legal (Laws)
|
| 40 |
+
- **Total Sentences:** 10,000
|
| 41 |
+
- **Total Tokens:** 230,709
|
| 42 |
- **Source:** Vietnamese Legal Corpus (UTS_VLC)
|
| 43 |
- **Annotation:** Machine-generated using Underthesea NLP toolkit
|
| 44 |
+
- **Validation:** ✅ Passed all UD validation levels (1-5)
|
| 45 |
+
|
| 46 |
+
### Data Splits
|
| 47 |
+
|
| 48 |
+
Following [UD guidelines](https://universaldependencies.org/contributing/repository_files.html) for treebanks with >110K tokens:
|
| 49 |
+
|
| 50 |
+
| Split | Sentences | Tokens | Percentage |
|
| 51 |
+
|-------|----------:|-------:|-----------:|
|
| 52 |
+
| Train | 9,165 | 210,668 | 91.3% |
|
| 53 |
+
| Dev | 432 | 10,033 | 4.3% |
|
| 54 |
+
| Test | 403 | 10,008 | 4.3% |
|
| 55 |
+
| **Total** | **10,000** | **230,709** | **100%** |
|
| 56 |
|
| 57 |
### Statistics
|
| 58 |
|
| 59 |
+
| Metric | Train | Dev | Test |
|
| 60 |
+
|--------|------:|----:|-----:|
|
| 61 |
+
| Sentences | 9,165 | 432 | 403 |
|
| 62 |
+
| Tokens | 210,668 | 10,033 | 10,008 |
|
| 63 |
+
| Avg length | 23.0 | 23.2 | 24.8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
## Usage
|
| 66 |
|
| 67 |
```python
|
| 68 |
from datasets import load_dataset
|
| 69 |
|
| 70 |
+
# Load all splits
|
| 71 |
dataset = load_dataset("undertheseanlp/UDD-1")
|
| 72 |
+
print(dataset)
|
| 73 |
+
|
| 74 |
+
# Access specific split
|
| 75 |
+
train_data = dataset["train"]
|
| 76 |
+
dev_data = dataset["validation"]
|
| 77 |
+
test_data = dataset["test"]
|
| 78 |
+
|
| 79 |
+
# Example sentence
|
| 80 |
+
print(train_data[0])
|
| 81 |
```
|
| 82 |
|
| 83 |
+
### CoNLL-U Format
|
| 84 |
+
|
| 85 |
+
The dataset is also available in standard CoNLL-U format:
|
| 86 |
+
- `vi_udd-ud-train.conllu`
|
| 87 |
+
- `vi_udd-ud-dev.conllu`
|
| 88 |
+
- `vi_udd-ud-test.conllu`
|
| 89 |
+
|
| 90 |
+
## Fields
|
| 91 |
+
|
| 92 |
+
| Field | Description |
|
| 93 |
+
|-------|-------------|
|
| 94 |
+
| `sent_id` | Sentence identifier |
|
| 95 |
+
| `text` | Original sentence text |
|
| 96 |
+
| `tokens` | Word tokens |
|
| 97 |
+
| `lemmas` | Lemmatized forms |
|
| 98 |
+
| `upos` | Universal POS tags |
|
| 99 |
+
| `xpos` | Language-specific POS tags |
|
| 100 |
+
| `feats` | Morphological features |
|
| 101 |
+
| `head` | Head token indices (1-indexed, 0=root) |
|
| 102 |
+
| `deprel` | Dependency relation labels |
|
| 103 |
+
| `deps` | Enhanced dependencies |
|
| 104 |
+
| `misc` | Miscellaneous annotations |
|
| 105 |
+
|
| 106 |
## Citation
|
| 107 |
|
| 108 |
```bibtex
|