Introduction to Natural Language Processing -Part 2
Step1. Load all necessary libraries and remove previously stored data from R-Studio rm(list = ls()) #Remove data from previous session in R-Studio #Load all libraries and dependencies load_libry<- function(x){ for(i in x){ if(! require(i,character.only = TRUE)){ install.packages(i,dependencies = TRUE) } } } pkgs <- c(“dplyr”,”tidyverse”,”tidytext”,”tm”,”SnowballC”,”reshape2″,”e1071″,”tm”,”caret”,”textstem”, “doSNOW”,”parallel”,”randomForest”,”janeaustenr”,”readxl”,”rlist”,”tokenizers”,”stopwords”, “wordcloud2″,”wordcloud”,”doParallel”,”parallel”) load_libry(pkgs) #set working directory setwd(“D:/Praveen/MachineLearning”) Step2. Load data […]
Introduction to Natural Language Processing -Part 2 Read More »