get_labels: Get list of labels (supervised model)

Description Usage Arguments Value Examples

View source: R/API.R

Description

Get a character containing each label seen during training.

Usage

1
get_labels(model)

Arguments

model

trained fastText model

Value

character containing each label

Examples

1
2
3
4
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))

fastrtext documentation built on Oct. 30, 2019, 11:32 a.m.