Back to projects

02 / NATURAL LANGUAGE PROCESSING

Sentiment analysis for Taglish.

An XLM-R sentiment model trained on synthetic Tagalog-English intake responses.

PROJECT

Taglish Sentiment Analysis

MY ROLE

NLP pipeline development

View the model
TAGLISH SENTIMENT
“Okay naman ako,
pero medyo pagod.
TagalogEnglishContext
Question + answerXLM-RSentiment
EXAMPLE INPUT
01

Problem

Classify sentiment in Tagalog-English intake responses. Limited access to patient notes required synthetic training data.

02

My contribution

  • Led the NLP pipeline and generated synthetic data, with validation involving a licensed psychologist.
  • Implemented training and evaluation with class-weighted cross-entropy loss.
  • Compared transformer models and selected XLM-R.
03

Method

01

Synthetic dataset

Generate Taglish question-answer pairs from psychological-profiler questionnaires.

02

Model comparison

Fine-tune and compare mBERT, TaglishBERT, and XLM-RoBERTa using question-aware inputs.

03

Class imbalance

Use class-weighted loss for positive, negative, and neutral examples.

04

Result

An XLM-R model that supplies positive, negative, or neutral sentiment labels to the project’s RAG pipeline.

LIMITATIONS

Outputs sentiment, not diagnoses. Trained on synthetic data; real intake data needs separate evaluation.

NEXT PROJECT

Life OS