v_assign_meta | R Documentation |
This function provide the possibility to assign a vector of metadata (one
each document) to a copus in one command.
To assign a single metadata to a single document or to the whole corpuse
use the standard meta
.
v_assign_meta(corpus, meta_name, meta_content)
corpus |
A VCorpus |
meta_name |
A character vector representing the name of meta to consider |
meta_content |
A vector or a list of data of length of corpus containing the corresponding meta data content to assign each one |
A VCorpus (invisible) with metadata updated
data(liu_4h28) corpus <- create_train(data_df = liu_4h28, name_df = 'Liu') corpus <- v_assign_meta(corpus, 'author', liu_4h28$authors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.