styal commited on
Commit
0dc4287
·
verified ·
1 Parent(s): 20faea3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -0
README.md CHANGED
@@ -15,3 +15,33 @@ configs:
15
  - split: train
16
  path: data/train-*
17
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  - split: train
16
  path: data/train-*
17
  ---
18
+ ```
19
+ from datasets import load_dataset
20
+ faq = load_dataset(
21
+ "styal/filtered-finephrase-faq",
22
+ split="train[:50%]",
23
+ )
24
+ tutorial = load_dataset(
25
+ "styal/filtered-finephrase-tutorial",
26
+ split="train[:50%]",
27
+ )
28
+ table = load_dataset(
29
+ "styal/filtered-finephrase-table",
30
+ split="train[:50%]",
31
+ )
32
+ math = load_dataset(
33
+ "styal/filtered-finephrase-math",
34
+ split="train[:40%]",
35
+ )
36
+ py = load_dataset(
37
+ "styal/filtered-python-edu.eng",
38
+ split="train[:20%]",
39
+ )
40
+ faq = faq.remove_columns([col for col in faq.column_names if col != "text"])
41
+ math = math.remove_columns([col for col in math.column_names if col != "text"])
42
+ table = table.remove_columns([col for col in table.column_names if col != "text"])
43
+ tutorial = tutorial.remove_columns([col for col in tutorial.column_names if col != "text"])
44
+ py = py.remove_columns([col for col in py.column_names if col != "text"])
45
+ from datasets import concatenate_datasets
46
+ merged = concatenate_datasets([faq, math, table, py, tutorial])
47
+ ```