Professional Documents
Culture Documents
Ong Earn NLP
Ong Earn NLP
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
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
Not efficient