View source: R/conversation_sequence.R
create_windows | R Documentation |
This function creates a list of windows from a conversation dataframe.
create_windows(conversation, window_size)
conversation |
A dataframe containing the conversation, with a column named 'processed_text'. |
window_size |
An integer specifying the size of each window. |
A list of character vectors, where each vector represents a window of text.
conversation <- data.frame(processed_text = c("hello", "world", "how", "are", "you"))
windows <- create_windows(conversation, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.