Peng Ding
commited on
Commit
·
0b5a297
1
Parent(s):
d62182a
update README for release
Browse files- README.md +68 -11
- direct_download_data-intermediate.png +3 -0
README.md
CHANGED
|
@@ -1,22 +1,79 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
```bash
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
```
|
| 10 |
|
| 11 |
-
2.
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
silently
|
| 16 |
```bash
|
| 17 |
-
tar -I 'zstd -d' -xf data-intermediate.tar.zst
|
| 18 |
```
|
| 19 |
-
|
|
|
|
|
|
|
| 20 |
```bash
|
| 21 |
-
zstd -d -c data-intermediate.tar.zst | tar -xvf -
|
| 22 |
-
```
|
|
|
|
| 1 |
+
# data-intermediate
|
| 2 |
|
| 3 |
+
If you are looking for our test ready version, please refer to [mango-ttic/data](https://huggingface.co/datasets/mango-ttic/data)
|
| 4 |
|
| 5 |
+
## Folder Structure
|
| 6 |
+
|
| 7 |
+
Each folder inside `data-intermediate` contains
|
| 8 |
+
all intermediate files we used during data annotation and generation. Here is the tree structure from game `data-intermediate/night` .
|
| 9 |
+
|
| 10 |
+
```bash
|
| 11 |
+
data-intermediate/night/
|
| 12 |
+
├── night.all2all.json # all simple paths between any 2 nodes
|
| 13 |
+
├── night.all_pairs.json # all connectivity between any 2 nodes
|
| 14 |
+
├── night.anno2code.json # annotation to codename mapping
|
| 15 |
+
├── night.code2anno.json # codename to annotation mapping
|
| 16 |
+
├── night.edges.json # list of all edges
|
| 17 |
+
├── night.map.human # human map derived from human annotation
|
| 18 |
+
├── night.map.machine # machine map derived from exported action sequences
|
| 19 |
+
├── night.map.reversed # reverse map derived from human annotation map
|
| 20 |
+
├── night.moves # list of mentioned actions
|
| 21 |
+
├── night.nodes.json # list of all nodes
|
| 22 |
+
├── night.valid_moves.csv # human annotation
|
| 23 |
+
├── night.walkthrough # enriched walkthrough exported from Jericho simulator
|
| 24 |
+
└── night.walkthrough_acts # action sequences exported from Jericho simulator
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
## Variations
|
| 28 |
+
|
| 29 |
+
<!-- ### 70-step vs all-step version
|
| 30 |
+
|
| 31 |
+
In our paper, we benchmark using the first 70 steps of the walkthrough from each game. We also provide all-step versions of both `data` and `data-intermediate` collection. -->
|
| 32 |
+
|
| 33 |
+
### Word-only & Word+ID
|
| 34 |
+
|
| 35 |
+
* **Word-only** `data[-intermediate].tar.zst`: Nodes are annotated by additional descriptive text to distinguish different locations with similar names.
|
| 36 |
+
|
| 37 |
+
* **Word + Object ID** `data[-intermediate]-objid.tar.zst`: variation of the word-only version, where nodes are labeled using minimaly fixed names with object id from Jericho simulator.
|
| 38 |
+
|
| 39 |
+
* **Word + Random ID** `data[-intermediate]-randid.tar.zst`: variation of the Jericho ID version, where the Jericho object id replaced with randomly generated integer.
|
| 40 |
+
|
| 41 |
+
We primarily rely on the **word-only** version as benchmark, yet providing word+ID version for diverse benchmark settings.
|
| 42 |
+
|
| 43 |
+
## How to use
|
| 44 |
+
|
| 45 |
+
We use `data-intermediate.tar.zst` as an example here.
|
| 46 |
+
|
| 47 |
+
### 1. download from Huggingface
|
| 48 |
+
|
| 49 |
+
#### by directly download
|
| 50 |
+
|
| 51 |
+

|
| 52 |
+
|
| 53 |
+
#### by git
|
| 54 |
+
|
| 55 |
+
Make sure you have [git-lfs](https://git-lfs.com) installed
|
| 56 |
|
| 57 |
```bash
|
| 58 |
+
git lfs install
|
| 59 |
+
git clone https://huggingface.co/datasets/mango-ttic/data-intermediate
|
| 60 |
+
|
| 61 |
+
# or, use hf-mirror if your connection to huggingface.co is slow
|
| 62 |
+
# git clone https://hf-mirror.com/datasets/mango-ttic/data-intermediate
|
| 63 |
```
|
| 64 |
|
| 65 |
+
### 2. decompress
|
| 66 |
+
|
| 67 |
+
Because some json files are huge, we use tar.zst to package the data efficiently.
|
| 68 |
|
| 69 |
+
silently decompress
|
| 70 |
|
|
|
|
| 71 |
```bash
|
| 72 |
+
tar -I 'zstd -d' -xf data-intermediate.tar.zst
|
| 73 |
```
|
| 74 |
+
|
| 75 |
+
or, verbosely decompress
|
| 76 |
+
|
| 77 |
```bash
|
| 78 |
+
zstd -d -c data-intermediate.tar.zst | tar -xvf -
|
| 79 |
+
```
|
direct_download_data-intermediate.png
ADDED
|
Git LFS Details
|