File size: 1,277 Bytes
20faea3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0dc4287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
dataset_info:
  features:
  - name: text
    dtype: string
  splits:
  - name: train
    num_bytes: 7312277132
    num_examples: 2029517
  download_size: 4291600198
  dataset_size: 7312277132
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
---
```
from datasets import load_dataset
faq = load_dataset(
    "styal/filtered-finephrase-faq",
    split="train[:50%]",
)
tutorial = load_dataset(
    "styal/filtered-finephrase-tutorial", 
    split="train[:50%]",
)
table = load_dataset(
    "styal/filtered-finephrase-table",
    split="train[:50%]",
)
math = load_dataset(
    "styal/filtered-finephrase-math",
    split="train[:40%]",
)
py = load_dataset(
    "styal/filtered-python-edu.eng", 
    split="train[:20%]",
)
faq = faq.remove_columns([col for col in faq.column_names if col != "text"])
math = math.remove_columns([col for col in math.column_names if col != "text"])
table = table.remove_columns([col for col in table.column_names if col != "text"])
tutorial = tutorial.remove_columns([col for col in tutorial.column_names if col != "text"])
py = py.remove_columns([col for col in py.column_names if col != "text"])
from datasets import concatenate_datasets
merged = concatenate_datasets([faq, math, table, py, tutorial])
```