You are on page 1of 6

Q1)

Hotel price= US $ 130/per night

Customer rating= 4.2/5 and free breakfast

Place= new york

Customer opinion

Interpretation: The above word cloud clearly shows us that hotel, room, stay, breakfast, clean, nice,
location, time, service is some of the most common words used in the customer reviews

We further explored some of the word associations to understand the customer reviews better

1) Price

findAssocs(tdm,"price", 0.3)

$price

based claimed fight habitat initial project traffic rather


0.43 0.43 0.43 0.43 0.43 0.43 0.43 0.35

older quinta something luxury

0.35 0.33 0.32 0.30

2) Rating

> findAssocs(tdm,"rating", 0.5)

$rating

acceptable closer donesnt example increadibly maid

0.71 0.71 0.71 0.71 0.71 0.71

minimal reply shift spotty upside appeal

0.71 0.71 0.71 0.71 0.71 0.71

confidence radio restuarants specials timesquare tour

0.71 0.71 0.71 0.71 0.71 0.71

sunday district cup disappointed cost theater

0.64 0.63 0.63 0.63 0.57 0.57

afternoon square

0.54 0.51

3) Service

> findAssocs(tdm,"service", 0.3)

$service

adequate heading holiday continued

0.34 0.30 0.30 0.30

<<TermDocumentMatrix (terms: 3480, documents: 200)>>

Non-/sparse entries: 11403/684597

Sparsity : 98%

Maximal term length: 25

Weighting : term frequency (tf)

Sample :

Docs
Terms 118 124 172 175 187 19 27 35 49 99

breakfast 2 0 3 0 0 2 2 0 1 0

clean 1 2 1 0 0 1 1 0 0 0

good 0 0 2 0 3 1 3 0 1 0

great 2 0 2 0 2 0 1 0 1 0

hotel 5 12 3 3 6 7 6 2 11 3

nice 0 0 1 0 1 1 2 0 0 2

room 1 8 1 0 4 1 0 1 3 8

rooms 0 1 0 0 0 2 2 0 0 0

staff 0 4 5 0 1 1 1 2 2 1

stay 4 2 2 0 2 3 0 2 0 2

From the above tdm that the sparsity is very high

Sentiment Analysis

Here we have analyzed the various sentiment scores and plotted the graph to understand the
sentiment of customers towards the hotel.

1) Sentiment LM has 180 positive responses out of 200

2) Sentiment GI has 190 positive responses out of 200

3) Sentiment HE has 193 positive responses out of 200

4) Sentiment QDAP has 193 positive responses out of 200

> table(convertToBinaryResponse(ana$SentimentLM))

negative positive

20 180
> table(convertToBinaryResponse(ana$SentimentGI))

negative positive

10 190

> table(convertToBinaryResponse(ana$SentimentHE))
negative positive

7 193

> table(convertToBinaryResponse(ana$SentimentQDAP))

negative positive

7 193

Result:

You might also like