• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

D604 Task 2: Sentiment Analysis — Complete Natural Language Processing Analysis and Report | WGU

Document preview thumbnail
Preview 2 out of 8 pages

D604 Task 2: Sentiment Analysis — Complete Natural Language Processing Analysis and Report | WGU

Content preview

WGU D604 Task 2: Sentiment Analysis with Neural
Networks
Part I: Research Question
A1. Research Question
Research Question: How can a neural network model using natural language processing
techniques accurately classify customer sentiment in online reviews to help businesses
improve their customer experience and product offerings?
This question is relevant to real-world organizational needs as businesses across
industries (retail, entertainment, hospitality) rely on customer feedback to make strategic
decisions about product development, marketing strategies, and customer service
improvements.

A2. Objectives and Goals
Primary Objective: Develop a neural network model that can automatically classify text
reviews as positive or negative sentiment with high accuracy.
Specific Goals: 1. Achieve a classification accuracy of at least 75% on unseen test data 2.
Create a model that can process variable-length text sequences effectively 3. Implement
proper text preprocessing techniques to handle noisy real-world data 4. Develop a model
that can generalize across different domains (movies, products, restaurants)

A3. Neural Network Type
Selected Network: Bidirectional Long Short-Term Memory (Bi-LSTM) network
Justification: Bi-LSTM networks are industry-standard for text classification tasks because
they: - Can capture long-term dependencies in text sequences - Process text
bidirectionally to understand context from both directions - Are specifically designed for
sequential data like natural language - Have proven effectiveness in sentiment analysis
applications

Part II: Data Preparation
B1. Exploratory Data Analysis
Dataset Overview: The UCI Sentiment Labeled Sentences Dataset contains 3,000
sentences (1,000 each from IMDb, Amazon, and Yelp) with binary sentiment labels.

, Unusual Characters Analysis: - Found 13 unusual characters including ‘–’, ‘é’, ‘Â…’,
‘Ã¥’, ‘—’ - These appear to be encoding artifacts from text extraction - All unusual
characters were removed during preprocessing
Vocabulary Size: 3,052 unique words after preprocessing
Word Embedding Length: 100 dimensions chosen for the embedding layer
Statistical Justification for Maximum Sequence Length: - Analysis of sentence lengths
revealed: Mean = 7.5 words, Max = 41 words, Min = 1 word - 95th percentile of sentence
lengths is approximately 18 words - Chose 50 words as maximum sequence length to
accommodate 99% of sentences while maintaining efficiency - This provides sufficient
padding for longer reviews without excessive computational overhead

B2. Tokenization Process
Goals of Tokenization: 1. Convert text into numerical format that neural networks can
process 2. Create a consistent vocabulary mapping 3. Handle out-of-vocabulary words
appropriately 4. Maintain semantic meaning while reducing dimensionality
Code and Packages Used: - Used TensorFlow’s Keras Tokenizer class - Applied text
cleaning including lowercase conversion, punctuation removal, and stopword removal -
Created sequences of integer tokens representing words

B3. Padding Process
Padding Strategy: Post-padding (padding after the sequence) - Sequences shorter than
max_length are padded with zeros at the end - This preserves the natural order of words in
sentences - Allows the model to focus on actual content rather than padding tokens
Padded Sequence Example:

Document information

Uploaded on
October 27, 2026
Number of pages
8
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$18.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ScholarsAscend
3.7
(84)
Sold
527
Followers
40
Items
30963
Last sold
5 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions