Get a character containing each word seen during training.
get_dictionary(model)
model | trained |
---|
character containing each word
library(fastrtext) model_test_path <- system.file("extdata", "model_classification_test.bin", package = "fastrtext") model <- load_model(model_test_path) print(head(get_dictionary(model), 5))#> [1] "the" "</s>" "of" "to" "and"