Description Usage Arguments Value Examples
Separate words in a text using space characters
1 | get_tokenized_text(model, texts)
|
model |
|
texts |
a character containing the documents |
a list of character containing words
1 2 3 4 5 6 7 | library(fastrtext)
model_test_path <- system.file("extdata", "model_unsupervised_test.bin", package = "fastrtext")
model <- load_model(model_test_path)
tokens <- get_tokenized_text(model, "this is a test")
print(tokens)
tokens <- get_tokenized_text(model, c("this is a test 1", "this is a second test!"))
print(tokens)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.