Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -74,6 +74,19 @@ test = load_dataset("McGill-NLP/weblinx", split="test")
|
|
| 74 |
|
| 75 |
# Load one of the 4 out-of-domain splits (test_web, test_vis, test_geo, test_cat)
|
| 76 |
test_web = load_dataset("McGill-NLP/weblinx", split="test_web")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
```
|
| 78 |
|
| 79 |
## Raw Data
|
|
|
|
| 74 |
|
| 75 |
# Load one of the 4 out-of-domain splits (test_web, test_vis, test_geo, test_cat)
|
| 76 |
test_web = load_dataset("McGill-NLP/weblinx", split="test_web")
|
| 77 |
+
|
| 78 |
+
# Download and read template
|
| 79 |
+
snapshot_download(
|
| 80 |
+
repo_id="McGill-NLP/WebLINX", repo_type="dataset", allow_patterns="template.txt", local_dir="./"
|
| 81 |
+
)
|
| 82 |
+
with open('template.txt') as f:
|
| 83 |
+
template = f.read()
|
| 84 |
+
|
| 85 |
+
# Get the input text for a model by formatting the template with the correct
|
| 86 |
+
turn_data = valid[0]
|
| 87 |
+
input_text = template.format(**turn_data)
|
| 88 |
+
|
| 89 |
+
# input_text can be given to a model
|
| 90 |
```
|
| 91 |
|
| 92 |
## Raw Data
|