Get a character containing each label seen during training.

get_labels(model)

Arguments

model

trained fastText model

Value

character containing each label

Examples

library(fastrtext) model_test_path <- system.file("extdata", "model_classification_test.bin", package = "fastrtext") model <- load_model(model_test_path) print(head(get_labels(model), 5))
#> [1] "__label__MISC" "__label__OWNX" "__label__AIMX" "__label__CONT" #> [5] "__label__BASE"