Assignment Helper.
NLP Data Science 2 Semesters

πŸ’¬ Malay + Manglish Sentiment Analysis for E-Commerce Reviews

Shopee/Lazada reviews in Malaysia are written in Malay, English, and everything in between ("barang ok tapi delivery lambat gila"). Off-the-shelf sentiment tools are trained on formal English and fail on this. That gap is your research.

1The Pitch β€” Product + Research in One

πŸ› οΈ What you build (the demo)

A web dashboard where a seller pastes or uploads product reviews and gets: sentiment breakdown (positive/negative/neutral), trending complaint keywords, and per-aspect scores (delivery, quality, price, service).

πŸ”¬ What you research (the grade)

Which approach handles Malay–English code-switched text best? You benchmark three families of sentiment classifiers on the same datasets and report which wins, where, and why.

2Problem Statement & Objectives

Pernyataan masalah: Malaysian SME sellers receive hundreds of mixed-language reviews they never analyze; existing sentiment tools misclassify code-switched Malay/Manglish text, so sellers can't act on customer feedback.

3Benchmark Design β€” the 3 Experiments

Same shape as a graded FYP: three controlled experiments, one comparison story.

ExperimentSetupWhat it proves
Eksperimen 1
Lexicon baseline
VADER + a Malay sentiment lexicon (Malaya) on the review dataset, no training. Baseline: how far rule-based methods get on code-switched text.
Eksperimen 2
Classical ML
TF-IDF features β†’ Naive Bayes vs SVM vs Logistic Regression, 80/20 train-test split. Whether lightweight trainable models beat rules when trained on local data.
Eksperimen 3
Transformer
Fine-tuned multilingual BERT (mBERT / MalayBERT) on the same 80/20 split. Whether pretrained language models justify their cost on Malaysian text.

πŸ“¦ Dataset plan

Scrape/collect ~2,000–5,000 Shopee/Lazada reviews across 3 product categories; label a subset manually (with a labeling guideline β€” that's a methodology section by itself). Augment with the public Malaya sentiment corpus for pre-training comparisons β€” mirroring the "local dataset vs public dataset" comparison pattern examiners love.

4Evaluation Metrics

MetricWhy it matters here
AccuracyOverall headline number for each of the 3 experiments.
Precision / RecallNegative-review recall matters most to sellers β€” missing complaints is costly.
F1-score (macro)Classes are imbalanced (most reviews are positive) β€” macro-F1 keeps you honest.
Confusion matrix per language mixThe novel part: slice results by pure-Malay vs pure-English vs code-switched rows.

5Report Mapping (Bab 1–5)

ChapterWhat goes in it (from this package)
Bab 1 β€” PengenalanProblem statement above, 3 objectives, scope (3 product categories, 3 model families), Gantt chart.
Bab 2 β€” Sorotan KesusasteraanComparison tables: sentiment approaches (2019–2026 papers), code-switching NLP studies, Malay NLP resources (Malaya, MalayBERT).
Bab 3 β€” MetodologiData collection + labeling guideline, preprocessing pipeline (emoji, slang normalization), architecture diagram of dashboard + model API.
Bab 4 β€” Pembangunan & PengujianThe 3 experiments, metric tables per experiment, per-language-mix analysis, dashboard screenshots.
Bab 5 β€” Dapatan KajianWhich approach wins on code-switched text, limitations (labeling subjectivity, dataset size), future work (aspect-based SA).

6Tech Stack

Pythonscikit-learnHugging Face MalayaStreamlit / FlaskPandas

πŸ”Ž Related works β€” Perplexity API placeholder

Live literature search (latest code-switching sentiment papers, 2020–2026) will be generated here via the Perplexity API once the subscription is active.

⏳ Generate Literature Review (coming soon)

← Back to all FYP ideas Β· Assignment Helper