Chapter 2 Read the Data
We read the data from the train
and the test
datasets.
library(tidyverse)
library(tidytext)
library(stringr)
library(knitr)
library(kableExtra)
library('wordcloud')
library(igraph)
library(ggraph)
library(tm)
library(topicmodels)
library(caret)
library(syuzhet)
library(text2vec)
library(data.table)
library("readr")
library(glmnet)
library(topicmodels) # for LDA topic modelling
library(tm) # general text mining functions, making document term matrixes
library(SnowballC) # for stemming
rm(list=ls())
fillColor = "#FFA07A"
fillColor2 = "#F1C40F"
train = read_csv("input/train.csv")
test = read_csv("input/test.csv")