Read species labels from a file
read_labels.Rd
This is a convenience function to read species labels from a file.
Value
A vector with class labels e.g. c("Cyanocitta cristata_Blue Jay", "Zenaida macroura_Mourning Dove")
Examples
if (FALSE) { # interactive()
# Read a custom species file
read_labels(system.file("extdata", "species_list.txt", package = "birdnetR"))
# To access all class labels that are supported in your language,
# you can read in the respective label file
model <- birdnet_model_tflite(version = "v2.4", language = "en_us")
labels_path <- labels_path(model, "fr")
species_list <- read_labels(labels_path)
head(species_list)
}