Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- VLM
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# How to use this data?
|
| 10 |
+
After download this repo, use `cat` to get zip file:
|
| 11 |
+
```bash
|
| 12 |
+
cat baidu_wiki_part_* > merge.zip
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
Then simply, unzip this zip file
|
| 16 |
+
```bash
|
| 17 |
+
unzip merge.zip
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
# What is in this data?
|
| 21 |
+
|
| 22 |
+
## Image(Screenshot)
|
| 23 |
+
|
| 24 |
+
Raw images are in `images` folder.
|
| 25 |
+
```bash
|
| 26 |
+
/wikihow$ ls data/images | head -5
|
| 27 |
+
1111-4.jpg
|
| 28 |
+
111-15.jpg
|
| 29 |
+
1-draw-7.png
|
| 30 |
+
20200613_130717.jpg
|
| 31 |
+
22-19.jpg
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Index page
|
| 35 |
+
Index page is a collection of web urls. This is how we start to crawl these websites.
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
wikihow$ cat data/index/index.txt | head -5
|
| 39 |
+
https://www.wikihow.com/Category:Amusement-and-Theme-Parks
|
| 40 |
+
https://www.wikihow.com/Category:Artwork
|
| 41 |
+
https://www.wikihow.com/Category:Books
|
| 42 |
+
https://www.wikihow.com/Category:Celebrities
|
| 43 |
+
https://www.wikihow.com/Category:Concerts
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
For examples, above shows we start to crawl tutorials from these 5 links.
|
| 47 |
+
|
| 48 |
+
## Summary file
|
| 49 |
+
|
| 50 |
+
Summary file is title and actual webpage
|
| 51 |
+
```bash
|
| 52 |
+
|
| 53 |
+
cat data/summary/Computer-Networking.json | head -10
|
| 54 |
+
[
|
| 55 |
+
{
|
| 56 |
+
"title": "How to\nOvercome Your Fear of Roller Coasters",
|
| 57 |
+
"url": "https://www.wikihow.com/Overcome-Your-Fear-of-Roller-Coasters"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"title": "Six Flags Flash Pass: Everything You Need to Know",
|
| 61 |
+
"url": "https://www.wikihow.com/Use-a-Flash-Pass-at-Six-Flags"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
```
|
| 65 |
+
In this step, we get titles and links for each tutorials.
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
## Trajectory file
|
| 69 |
+
|
| 70 |
+
Trajectory file is trajectory we follow certain heuristic to process the HTML
|
| 71 |
+
|
| 72 |
+
```bash
|
| 73 |
+
cat data/steps/Add-a-Bookmark-in-Microsoft-Word/steps_processed.json | head -10
|
| 74 |
+
{
|
| 75 |
+
"introduction": "CategoriesComputers and ElectronicsSoftwareOfficeMicrosoft OfficeMicrosoft WordHow to Add a Bookmark in Microsoft Word",
|
| 76 |
+
"sections": [
|
| 77 |
+
{
|
| 78 |
+
"headline": "Adding a Bookmark",
|
| 79 |
+
"steps": [
|
| 80 |
+
{
|
| 81 |
+
"text": "Select the place in the text you wish to bookmark. You can either highlight a block of text or click to place your cursor at the start of a paragraph.",
|
| 82 |
+
"image_src": "v4-460px-Add-a-Bookmark-in-Microsoft-Word-Step-1-Version-4.jpg"
|
| 83 |
+
},
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
For examples, above shows a part of trajectory. They are organized as stepwise text-image. The image are downloaded as dicussed in previous documentation.
|
| 87 |
+
|
| 88 |
+
## Other notes
|
| 89 |
+
Baidu Experience is slightly different compared to wikihow. But they do follow the similar structure.
|