
238 Text Mining and Visualization: Case Studies Using Open-Source Tools
elements. These are the hashtags that are checked in this example. The lapply function
applies prs hstg function to each l hstg element and passes the vector of hashtags to
check as an argument. The matrix function transforms the lapply result into a matrix
having all tweets in rows and all hashtags in columns. This matrix is attached to the Docu-
ment Term matrix using the function cbind. The resulting matrix feeds a SVM classifier.
Table 10.4 presents SA results for the SVM classifier with emotions and hashtags features
(SVM
EmtHsht
) and without these features (SVM
Original
). As ...