|
|
||
|---|---|---|
| Readme.org | ||
| add_final_score.py | ||
| annotating.py | ||
| annotating_by_label.py | ||
| annotating_with_checks.py | ||
| batch_status.py | ||
| correction.py | ||
| cutleft.py | ||
| enonce_info.py | ||
| fetch_batched_results.py | ||
| from_tablette.py | ||
| gemini_for_labels.py | ||
| giving_names.py | ||
| grouping.py | ||
| liste_francais.txt | ||
| page_splitter.py | ||
| plotting.py | ||
| post-correction.py | ||
| reading_annotations.py | ||
| reading_grouped_annotations.py | ||
| rename_to_copie.sh | ||
| rotate_all.sh | ||
| splitting_int.py | ||
| submit_batches.py | ||
| to_tablette.py | ||
| update_ods.py | ||
| utils.py | ||
Readme.org
Script
- Prétraitement
- Labelisation et regroupement
- Correction et annotation
- Lecture de la correction manuelle
- Recorrection d'une seule copie
- Install
NEEDS :
- `export GEMINI_API_KEY=…`
- fichier `names` in the directory.
Prétraitement
- Rotate every single page 180 `./rotate_all.sh Interro14`
- `./rename_to_copie.sh Interro14`
- `python page_splitter.py Interro`. Fix issues with `python page_splitter.py Interro14/Copie01.pdf`
- `python cutleft.py Interro` Rerun on a single file with `python cutleft.py Interro/Copie01.pdf`
- `python enonce_info.py Interro`
Labelisation et regroupement
Set proxy with `export HTTPS_PROXY="http://192.168.241.1:3128"`
- `python gemini_for_labels.py Interro`, avec éventuellement `–overwrite`
-
Vérification visuelle : `python plotting.py Interro` `python plotting.py InterroTest/Copie01.pdf`
It also generates les `Copie01.json`, à partir des `Copie01_01.json`
In case of issue, you may need to
- Reorder the pdf
- Run `python cutleft.py Interro/Copie`
- Run `python gemini_dir_batching.py Interro/Copie`
- `python splitting_int.py Interro`
- `python grouping.py Interro`
Correction et annotation
Success! Batch Job Name: batches/0hc83m3anayrs5iljygg2v6ozsvxz58k6a5r
Processing batch_requests_pro.jsonl for model gemini-3.1-pro-preview… Uploading file… Uploaded successfully! File ID: files/oasj4aty5kco Starting batch job… Success! Batch Job Name: batches/8pk4m2snr17n31pun3vwzn646qvtkj8ao192
Set proxy with `export HTTPS_PROXY="http://10.0.0.1:3128"`
- Il faut créer des persp, pour indication de comment corriger, et relancer `enonce_info.py`
-
`python correction.py Interro –limit 240` OU `python correction.py Interro/Ex\ 2/Group_1.jpg` OU `python correction.py Interro –overwrite`
Will it resume ? It seems so. Best to wait a bit. To batch it :
- `python correction.py Interro –batch`
- `python submit_batches.py Interro`
- `python batch_status.py`
- `python fetch_batched_results.py DS08VB`
- `python correction.py DS08VB –deal-with-batched`
- Try `python post-correction.py Interro` ; It makes a `fixed_correction.json`, to check.
- Facultatif : `python annotating.py Interro` dans `Anot`, pass `–overwrite`
-
- `python annotating_with_checks.py Interro` dans `Bnot`, pass `–overwrite`
OU
- `python annotating_by_label.py Interro` dans `BGnot` Needs : label_groups file. (made automatically by this function)
-
`python to_tablette.py Interro` Cela déplace les groupes dans `SyncCopies/À Annoter`.
- Les mettre dans le dossier racine de la tablette, et renommer en `aaa`.
- Vider `Syncthing/Annotées` sur la tablette et localement. À automatiser, aussi c'est lent…
Lecture de la correction manuelle
- Manually : delete `~/SyncCopies/Annotées`, copy from the tablette to here. Then `python from_tablette.py Interro`
-
- `python reading_annotations.py Interro`
OU
- `python reading_grouped_annotations.py Interro`
-
`python giving_names.py InterroTest BGnot`
It will make `A Rendre` with symlink to the Concat.jpg file either in Anot or Bnot, and score.json.
- In case of Unknown : rename both directory and file inside.
- Here, you can change `score.json` manually.
-
- `gestion_classe ne` pour créer l'interro puis
- `gestion_classe we` (set barème here)
- `python update_ods.py Interro`
- `gestion_classe re`
- `gestion_classe wsent`
- `python add_final_score.py Interro21` (this makes files in `Server/copies`)
-
- Deploy `miqmacs-copies-assets`, and
- update the copies from `miqmacs.fr/admin`.
Recorrection d'une seule copie
!! Attention, refaire ne marchera pas si tu fais une annotation non groupée into refaire !!
-
Redécoupage
- `python plotting.py InterroTest/Copie01.pdf`
- `python splitting_int.py InterroTest/Copie20.pdf`
- Créer `refaire.json`, avec un contenu comme /sebastien/Copies/src/commit/47ab69132b32494897009929f8f957f25b990f33/"Copie01&%2334;,%20%5B, ["Copie01", ["Ex 1 : 1)"]]]
- Appeler `correction` avec –refaire. Il doit créer des groupes individuels, faire des requêtes, et remplacer les corrections précédentes (à sauver ailleurs). Ou non, si tu veux le faire à la main.
- ?? Si je fais refaire, avant d'avoir créer les annotating with checks, que se passe-t-il ???
- Appeler `annotating_with_checks.py –refaire –overwrite` avec –refaire.
- `python to_tablette.py –refaire Interro24`
- `python from_tablette.py –refaire Interro24`
- `python reading_grouped_annotations.py –refaire Interro24`
Install
pip install highlight-text --break-system-packages