if (FALSE) {
dataset_ag_news()
# Custom directory
dataset_ag_news(dir = "data/")
# Deleting dataset
dataset_ag_news(delete = TRUE)
# Returning filepath of data
dataset_ag_news(return_path = TRUE)
# Access both training and testing dataset
train <- dataset_ag_news(split = "train")
test <- dataset_ag_news(split = "test")
}
Run the code above in your browser using DataLab