Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## QA4PC Dataset (paper: Cross-Policy Compliance Detection via Question Answering)
|
2 |
+
|
3 |
+
|
4 |
+
### Train Sets
|
5 |
+
To create training set or entailment and QA tasks, download and convert the ShARC data using the following commands:
|
6 |
+
```
|
7 |
+
wget https://sharc-data.github.io/data/sharc1-official.zip
|
8 |
+
unzip sharc1-official.zip
|
9 |
+
python create_train_from_sharc.py -sharc_dev_path sharc1-official/json/sharc_dev.json -sharc_train_path sharc1-official/json/sharc_train.json
|
10 |
+
```
|
11 |
+
|
12 |
+
### Evaluation Sets
|
13 |
+
|
14 |
+
#### Entailment Data
|
15 |
+
The following files contain the data for the entailment task. This includes the policy + questions, a scenario and an answer (_Yes, No, Maybe_). Each datapoint also contain the information from the ShARC dataset such as tree_id and source_url.
|
16 |
+
- __dev_entailment_qa4pc.json__
|
17 |
+
- __test_entailment_qa4pc.json__
|
18 |
+
|
19 |
+
#### QA Data
|
20 |
+
The following files contain the data for the QA task.
|
21 |
+
- __dev_sc_qa4pc.json__
|
22 |
+
- __test_sc_qa4pc.json__
|
23 |
+
|
24 |
+
The following file contains the expression tree data for the dev and test sets. Each tree includes a policy, a set of questions and a logical expression.
|
25 |
+
- __trees_dev_test_qa4pc.json__
|