7 lines
378 B
Python
7 lines
378 B
Python
"""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")
|