powered by
This function creates a list of windows from a conversation dataframe.
create_windows(conversation, window_size)
A list of character vectors, where each vector represents a window of text.
A dataframe containing the conversation, with a column named 'processed_text'.
An integer specifying the size of each window.
conversation <- data.frame(processed_text = c("hello", "world", "how", "are", "you")) windows <- create_windows(conversation, 3)
Run the code above in your browser using DataLab