create_windows {conversim} | R Documentation |
Create windows from a conversation
Description
This function creates a list of windows from a conversation dataframe.
Usage
create_windows(conversation, window_size)
Arguments
conversation |
A dataframe containing the conversation, with a column named 'processed_text'. |
window_size |
An integer specifying the size of each window. |
Value
A list of character vectors, where each vector represents a window of text.
Examples
conversation <- data.frame(processed_text = c("hello", "world", "how", "are", "you"))
windows <- create_windows(conversation, 3)
[Package conversim version 0.1.0 Index]