Files

6 lines
316 B
Python
Raw Permalink Normal View History

"""Affiche en entier les étiquettes automatiques données par id (STATION#ligne)."""
import json, sys
for i in sys.argv[1:]:
st, n = i.split('#')
e = json.loads(open(f'labeling/auto/{st}.jsonl').readlines()[int(n) - 1])
print(f"== {i} {e['debut']} -> {e['fin']} {e['categorie']}\n{e['description']}\n")