180 likes | 299 Views
CMPE 545 Artificial Neural Networks. Estimating review score from words. Işık Barış Fidaner. S. = 1/N . score i. Metascore. The rating given to this product. r t =. The source of this review. Score. Reviewer. Quote. + affectionate. A few sentences that summarize this review.
E N D
CMPE 545 ArtificialNeural Networks Estimating reviewscore from words Işık Barış Fidaner
S = 1/N . scorei Metascore
The rating giventothisproduct rt = The source of this review Score Reviewer Quote +affectionate A few sentences that summarize this review Bag of words representation +exuberant +embrace xt = ? Existence of some words in the quote
Purposes • A new database that relates text to score (...) An affectionate, exuberant picture that seeks to bring even those who don't know Klingon from Portuguese into the embrace of a pop-culture phenomenon. (...) ? 90
Purposes • Quantify meaning with machine learning Review quote: An affectionate, exuberant picture that seeks to bring even those who don't know Klingon from Portuguese into the embrace of a pop-culture phenomenon. 0 0 1 0 1 0 0 1 riveting exhilerating affectionate crafted exuberant dull lacking embrace wT xt 73 ´ 70 ´ 65 ´
Purposes • Meta-metacritic deductions, such as riveting exhilerating crafted superb extraordinary brilliant unfunny tedious fails mess dull lacking Positive words Negative words
Obtaining the database • Developed a PHP web crawler • It ran for a few days • TV show reviews • 8,335 records • Music album reviews • 62,293 records • Movie reviews • 113,456 records PHP MySQL
Bag of words assumption • Features affect the result independently phenomenon from an exuberant picture those into a portugese don’t pop-culture affectionate to embrace bring klingon of who know seeks An affectionate, exuberant picture that seeks to bring even those who don't know Klingon from Portuguese into the embrace of a pop-culture phenomenon. = • Semantic organization does not matter
Bag of words assumption • The problem with modifiers: ¹ This is not good. Is this not good? • We rely on the information encoded in the vocabulary, not grammar • Opinions expressed clearly and simply: Excellent, wonderful! This is dreadful.
Word selection • Quote count (QC) • Product count (PC) ~20 thousand words ~300 words Score mean (SM) Score stdev (SS) • Meaningful words (SS < SSmax = 20) • Frequently used words (PC > PCmin = 20) • Non-grammatical words (PC < PCmax = 100)
Significant words for TV and movies casual words! fancy words! unfunny disappointment supposed, fails waste TV takes too much time! Movies are overrated!
Significant words for music albums masterpiece artists Music is art date modern Music ages quickly personality Albums are attached to the musician’s personality
The input vector and estimation • Example input vector (divided by quote size) • xt = [1 0 0 1 0 0 0 1 0 0 0 0 ... 0] / 3 • Estimation function • There is a weight for every selected word • xt chooses the subset of contained words • Estimation is the sum of w0 and the arithmetic mean of the weights of contained words
Linear and SVM regression • Linear regression uses square difference err. • Which imply these update equations: • SVM regression uses e-sensitive error func. • With these simpler update equations
Linear regression learning Unstable learning in validation set Error of 17 points Error of 14 points
SVM regression learning Robustness increased, because SVM error function is linear and tolerant to error. Better results with SVM! Error of 13 points Error of 11 points
Possible improvements • Non-linear model that actually weighs the importance of words • Normalization by estimating reviewer parameters • Adding two-word combinations to the input vector
CMPE 545 ArtificialNeural Networks Estimating reviewscore from words Işık Barış Fidaner