Ankush Chander commited on
Commit
c94a739
1 Parent(s): 65caab1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -1
README.md CHANGED
@@ -8,4 +8,21 @@ tags:
8
  - cricket
9
  size_categories:
10
  - 10K<n<100K
11
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  - cricket
9
  size_categories:
10
  - 10K<n<100K
11
+ ---
12
+
13
+ # cricket-wiki
14
+ ```bash
15
+ # data preparation steps
16
+
17
+ pip install wikiextractor
18
+
19
+ wget -c https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-pages-articles-multistream.xml.bz2
20
+
21
+ # extract files using wikiextractor (take a few hours)
22
+ python3 -m wikiextractor.WikiExtractor enwiki-latest-pages-articles-multistream.xml.bz2 --json
23
+
24
+ # get cricket records in a separate file
25
+ # take a few minutes
26
+ grep -i cricket text/*/* > cricket.jsonl
27
+
28
+ ```