Datasets:

Modalities:
Text
Formats:
parquet
Libraries:
Datasets
pandas
License:
File size: 2,793 Bytes
eea579e
 
 
 
 
 
 
 
 
 
 
 
424dc5e
eea579e
424dc5e
eea579e
 
 
 
 
 
 
 
ef8c7ce
424dc5e
ef8c7ce
eea579e
 
 
 
 
 
 
 
 
 
 
 
ef8c7ce
 
 
 
 
424dc5e
 
 
 
 
ef8c7ce
 
 
 
 
eea579e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ef8c7ce
eea579e
 
 
 
 
 
 
 
ef8c7ce
eea579e
 
 
 
 
 
ef8c7ce
eea579e
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
---
description: Dataset providing aligned data scraped from Welsh Government Websites.
license: other
language:
  - cy
  - en
dataset_info:
  - features:
      - name: text_en
        dtype: string
      - name: text_cy
        dtype: string
      - name: url_en
        dtype: string
      - name: url_cy
        dtype: string
configs:
  - config_name: default
    data_files:
      - split: train
        path:
          - data/gwasanaethaucyhoeddusdigidol/0000.parquet
          - data/sirgar/0000.parquet
          - data/comisynyddygymraeg/0000.parquet
          - data/www-llyw-cymru/0000.parquet
          - data/digitalcommunities/0000.parquet
          - data/cdffc/0000.parquet
          - data/cadw/0000.parquet
  - config_name: gwasanaethaucyhoeddusdigidol
    data_files:
      - split: train
        path:
          - data/gwasanaethaucyhoeddusdigidol/0000.parquet
  - config_name: sirgar
    data_files:
      - split: train
        path:
          - data/sirgar/0000.parquet
  - config_name: comisynyddygymraeg
    data_files:
      - split: train
        path:
          - data/comisynyddygymraeg/0000.parquet
  - config_name: www-llyw-cymru
    data_files:
      - split: train
        path:
          - data/www-llyw-cymru/0000.parquet
  - config_name: digitalcommunities
    data_files:
      - split: train
        path:
          - data/digitalcommunities/0000.parquet
  - config_name: cdffc
    data_files:
      - split: train
        path:
          - data/cdffc/0000.parquet
  - config_name: cadw
    data_files:
      - split: train
        path:
          - data/cadw/0000.parquet

---
---

# Llyw Cymru dataset

This is a dataset comprised of aligned sentences scraped from Welsh Government websites.

The data in this dataset is made available under the [Open Government License](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).

Mae hon yn set ddata sy'n cynnwys brawddegau wedi'u halinio wedi'u crafu o wefannau Llywodraeth Cymru.

Mae'r data yn y set ddata hon ar gael o dan y [Trwydded Llywodraeth Agored](https://www.nationalarchives.gov.uk/doc/open-government-licence-cymraeg/version/3/?lang=cy).

## Example Usage

Use the datasets module from huggingface to load the dataset:

```python
import datasets
ds = datasets.load_dataset("/data/dataset")
```

By default, all the data for each llyw.cymru website is included (the `default` configuration).

To load the dataset for a specific configuration (i.e: llyw.cymru website), use the following syntax:

```python
config_name = "cadw"
datasets.load_datset("/data/dataset", config_name)
```

To see which values you can select for `config_name`,
you can use the following API to get to all the available options:

```python
datasets.get_dataset_config_names("/data/dataset")
```