Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

Natural Language

Processing Project
Sentiment Analysis
AP Computer Science Project
Semester 2/2020
Natural Language Processing?
Sentiment Analysis
Type in Review Link: ….

01
Goal
Process 1:
Get data
Jsoup Library
Process 2: Data cleaning

Lowercase Remove
numbers +
.toLowerCase() punctuations

.replaceAll(“[^a-z], “ “)
Process 2: Data cleaning

Remove
stopwords
Store stopwords in a text file

Put the file into ArrayList

Put text into ArrayList

text.removeAll(stop)
Process 3: Tokenization
.split()
Process 4: Document matrix
Scan+Count Conclude
Count positive and negative Show results for each aspect
words /5.0

01 03
02 04
Adjective for Aspects Calculate
Positive/Pos+Neg for each
Categorize positive/negative
aspect
adjective for each aspects
Product Aspects

Price Design

Performance Overall
Final Product
Limitations
Not for every product

01 Because aspects created is specify to


products

Not efficient

02 Different part of speech may have a different on


meaning
Adjective not enough + not accurate to each aspect

You might also like