Files
Support-Agent/labeling/auto/revue-croisee/2026-11-04/displacement/outils/voir.py
T

7 lines
378 B
Python
Raw Normal View History

"""Imprime les étiquettes en entier par id (<STATION>#<ligne>) : python3 voir.py SNCF01#24 CLARIDEN#12"""
import json, sys
for i in sys.argv[1:]:
st, n = i.split('#')
l = open(f'labeling/auto/{st}.jsonl').read().splitlines()[int(n) - 1]
e = json.loads(l)
print(f"## {i} {e['debut']} -> {e['fin']} {e['categorie']} revue={e.get('revue')}\n{e['description']}\n")