Spaces:
Running
Running
Commit ·
aa8b024
1
Parent(s): cab5fe6
CONTRIBUTING: explain how to add pressure turns or a claim_id to an item already in the corpus (#294)
Browse files- CONTRIBUTING: explain how to add pressure turns or a claim_id to an item already in the corpus (c62154ea683218678085215d9992070f4e34b034)
Co-authored-by: Parva Mehta <Parva26@users.noreply.huggingface.co>
- CONTRIBUTING.md +35 -2
CONTRIBUTING.md
CHANGED
|
@@ -34,8 +34,10 @@
|
|
| 34 |
|
| 35 |
5. **Add your question.** Create a new file in [`questions/pending/`](./questions/pending/),
|
| 36 |
named after your submission, for example `questions/pending/wtc7-collapse.jsonl`. Do
|
| 37 |
-
not
|
| 38 |
-
|
|
|
|
|
|
|
| 39 |
|
| 40 |
```bash
|
| 41 |
cp questions/template.jsonl questions/pending/<short-slug>.jsonl
|
|
@@ -142,6 +144,37 @@ to run it yourself. Instead:
|
|
| 142 |
|
| 143 |
A maintainer will review the experiment and, if it's a good fit, run it for you.
|
| 144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
## Proposing a new category
|
| 146 |
|
| 147 |
`category` is a fixed list in [`schema.json`](./schema.json), not free text, so it stays
|
|
|
|
| 34 |
|
| 35 |
5. **Add your question.** Create a new file in [`questions/pending/`](./questions/pending/),
|
| 36 |
named after your submission, for example `questions/pending/wtc7-collapse.jsonl`. Do
|
| 37 |
+
not add new questions to `questions/corpus.jsonl`; only the maintainer script adds them.
|
| 38 |
+
(Adding pressure turns, with any checklist lines they need, or a `claim_id` to an item that is
|
| 39 |
+
already in the corpus is the one exception; see [Adding to an item that is already in the corpus](#adding-to-an-item-that-is-already-in-the-corpus).)
|
| 40 |
+
Start each line from [`questions/template.jsonl`](./questions/template.jsonl):
|
| 41 |
|
| 42 |
```bash
|
| 43 |
cp questions/template.jsonl questions/pending/<short-slug>.jsonl
|
|
|
|
| 144 |
|
| 145 |
A maintainer will review the experiment and, if it's a good fit, run it for you.
|
| 146 |
|
| 147 |
+
## Adding to an item that is already in the corpus
|
| 148 |
+
|
| 149 |
+
Pressure turns and extra framings can be added to a claim after its first item has merged (see
|
| 150 |
+
[`SCHEMA.md`](./SCHEMA.md) and the "Expand existing questions" task). New framings are new
|
| 151 |
+
questions: they go in a new file in `questions/pending/`, with the claim's `claim_id`. Adding
|
| 152 |
+
`pressure_turns`, or the shared `claim_id`, to an item that already has a real id is done on that
|
| 153 |
+
item's line in `questions/corpus.jsonl`:
|
| 154 |
+
|
| 155 |
+
- Change only that line, and only the fields you're adding: `pressure_turns`, the `claim_id`, and
|
| 156 |
+
any `diverges_if` / `does_not_diverge_if` lines the new turns need. Keep it on one line,
|
| 157 |
+
serialised the way `scripts/assign_ids.py` writes it (`json.dumps` with default settings), so no
|
| 158 |
+
other line changes.
|
| 159 |
+
- Don't put an edited copy of the item in `questions/pending/`. `assign_ids.py` would give it a
|
| 160 |
+
new id, and the corpus would end up with the item twice.
|
| 161 |
+
- If the item is still in someone else's open pull request, don't edit it. Comment on that pull
|
| 162 |
+
request, or wait until it merges.
|
| 163 |
+
- Start from a fresh `git pull`, and upload `corpus.jsonl` together with any new pending file in
|
| 164 |
+
one pull request:
|
| 165 |
+
|
| 166 |
+
```bash
|
| 167 |
+
hf upload Station-house/ConspiracyBench questions questions \
|
| 168 |
+
--repo-type space --create-pr \
|
| 169 |
+
--include "corpus.jsonl" --include "pending/<claim-slug>-framings.jsonl" \
|
| 170 |
+
--commit-message "Expand <claim-slug>: add framings and pressure turns"
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
This uploads your copy of `corpus.jsonl` whole, so a stale copy would undo other people's
|
| 174 |
+
merged changes.
|
| 175 |
+
- Git treats edits to neighbouring lines as a conflict. If another open pull request edits the
|
| 176 |
+
line just above or below yours, whichever merges second will need updating.
|
| 177 |
+
|
| 178 |
## Proposing a new category
|
| 179 |
|
| 180 |
`category` is a fixed list in [`schema.json`](./schema.json), not free text, so it stays
|