create_windows {conversim} | 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)