simarora commited on
Commit
6983bf3
1 Parent(s): b1623c8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -8,3 +8,20 @@ The best way to use this data is by cloning:
8
  git lfs install
9
  git clone https://huggingface.co/datasets/hazyresearch/evaporate
10
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  git lfs install
9
  git clone https://huggingface.co/datasets/hazyresearch/evaporate
10
  ```
11
+
12
+ We can then unzip everything using this code snippet:
13
+ ```
14
+
15
+ import os
16
+
17
+ data_path = "evaporate/data"
18
+
19
+ # list paths in data_path
20
+ data_path_files = os.listdir(data_path)
21
+ for path in data_path_files:
22
+ sub_path = f"{data_path}/{path}"
23
+ # tar unzip 'docs.tar.gz' in the sub_paths
24
+ if os.path.exists(f"{sub_path}/docs.tar.gz"):
25
+ os.system(f"tar -xvf {sub_path}/docs.tar.gz -C {sub_path}")
26
+ ```
27
+