list-labels
list unique labels that are ever annotated in the JSON files you provide:
As the argument, you can pass either a JSON file or directory of JSON files.
labelmetk list-labels [OPTIONS] FILE_OR_DIR
If you’d like to show the list of labels for your dataset, pass the directory:
labelmetk list-labels small_dataset
If you’d like to export the list of labels into another file (e.g., labels.txt
), you can do so by:
labelmetk list-labels small_dataset > labels.txt