tokens <- data.frame(doc_id = c("doc1", "doc1", "doc1", "doc1",
"doc2", "doc2", "doc2", "doc2",
"doc2", "doc2", "doc3", "doc3",
"doc3", "doc3", "doc3", "doc3"),
token = c("aujourd'hui", "maman", "est",
"morte", "it", "was", "a", "pleasure",
"to", "burn", "all", "this", "happened",
"more", "or", "less"),
stringsAsFactors = FALSE)
tif_is_tokens_df(tokens)
tokens$pos <- "NOUN"
tokens$NER <- ""
tokens$sentiment <- runif(16L)
tif_is_tokens_df(tokens)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.