Index / Arts and humanities / Literature and linguistics
Swedish Rewriting
RenaissanceLabsEU/practice · swedish-rewriting
Edit Swedish calques and bureaucratic wording into clear reader-focused prose without changing meaning.
Good for
- Preserving roles, quantities, deadlines and negation
- Recognising valid alternative phrasings
- Following a concrete editorial brief
Reward
- How it is scored
- Mixed
- Signal
- Graded, 0 to 1
Each document is checked against an explicit editorial contract. Accepted alternatives earn equal credit; changed facts, extra claims and edits outside the contract score zero for that document. The task reward is the mean document score.
How to run it
1. Get the tasksthis environment is one subset of the Practice dataset
hf download RenaissanceLabsEU/practice --repo-type dataset --include "tasks/swedish-rewriting/*" --local-dir Practice cd Practice
Leave out --include to fetch every environment and the generators.
2. Check one task by handbuild it, run the reference solution, run the verifier
docker build -t practice-task tasks/swedish-rewriting/swedish-rewriting-calques-d1-t0000/environment docker run --rm --network none -v $PWD/tasks/swedish-rewriting/swedish-rewriting-calques-d1-t0000/tests:/tests:ro -v $PWD/tasks/swedish-rewriting/swedish-rewriting-calques-d1-t0000/solution:/solution:ro practice-task \ bash -c 'bash /solution/solve.sh; bash /tests/test.sh; cat /logs/verifier/reward.txt'
Prints 1.0. Leave out bash /solution/solve.sh; to see the reward for doing nothing, which is 0.
3. Run it with an agenteach task folder is a Harbor task
harbor run --path tasks/swedish-rewriting --agent oracle # then your own agent and model, for example: # harbor run --path tasks/swedish-rewriting --agent terminus-2 --model <your-model>
The agent works in /app and writes /app/answer.json. The verifier writes the reward to /logs/verifier/reward.txt. Tasks tagged eval use seeds the train tasks never see.
4. Make more tasksthe generators are seeded and unlimited; needs the full download
python3 tools/export.py swedish_rewriting
Needs Docker. The Harbor commands follow the framework's usual pattern and were not run by us; the Docker check above was.
Evidence
All 324 Swedish task exports: standalone oracle 1.0, no-op 0. Adversarial and alternative-answer checks cover every published task; one hard task per family also passes in offline Docker.
Checked by our own test suite. No model has been trained on these tasks yet, so there is no evidence of training lift.