Get Path to a Labels File
labels_path.Rd
This function retrieves the file path to the BirdNET labels file on your system corresponding to a specified language. This file contains all class labels supported by the BirdNET model.
For a custom model, the path of the custom labels file is returned.
Usage
labels_path(model, ...)
# S3 method for class 'birdnet_model_custom'
labels_path(model, ...)
# S3 method for class 'birdnet_model_tflite'
labels_path(model, language, ...)
# S3 method for class 'birdnet_model_protobuf'
labels_path(model, language, ...)
Note
The language
parameter must be one of the available languages returned by available_languages()
.
Examples
if (FALSE) { # interactive()
model <- birdnet_model_tflite(version = "v2.4")
labels_path(model, "fr")
}