Natural Language Processing
- Subfield of
- Artificial Intelligence, Linguistics
- Core tasks
- Classification, NER, translation, QA
- Architecture
- Transformer (modern)
- Key models
- BERT, GPT, T5, mBERT
- Languages
- Python, with NLTK, spaCy, HuggingFace
Natural Language Processing
- Subfield of
- Artificial Intelligence, Linguistics
- Core tasks
- Classification, NER, translation, QA
- Architecture
- Transformer (modern)
- Key models
- BERT, GPT, T5, mBERT
- Languages
- Python, with NLTK, spaCy, HuggingFace
Core NLP Tasks
- Tokenisation — splitting text into words or subwords
- Part-of-speech tagging — labelling grammatical roles (noun, verb, adjective…)
- Named entity recognition (NER) — identifying people, organisations, locations, dates
- Sentiment analysis — classifying the emotional polarity of text
- Text classification — assigning documents to predefined categories
- Machine translation — converting text between languages
- Summarisation — producing shorter versions of longer documents
- Question answering (QA) — extracting or generating answers from context
- Coreference resolution — determining when pronouns refer to the same entity
The Transformer Revolution
Before transformers, NLP relied on RNNs/LSTMs and hand-crafted features. The BERT model (Bidirectional Encoder Representations from Transformers, 2018) demonstrated that pre-training on large text corpora and fine-tuning on downstream tasks vastly outperformed prior approaches. This paradigm — pre-train then fine-tune — became standard. Today, encoder-only models (BERT family) excel at classification and NER; decoder-only models (GPT family) excel at generation; encoder-decoder models (T5, mT5) excel at translation and summarisation.Multilingual NLP
mBERT and XLM-RoBERTa are pre-trained on 100+ languages, enabling cross-lingual transfer: a model fine-tuned on English data can perform reasonably on a related task in another language. However, low-resource languages — those with limited training data — often remain underserved.- BERTi — a BM BERT model trained on Malay Wikipedia and crawled news corpora (MIMOS Berhad)
- MalayNLP — community-curated BM NLP resources on Hugging Face
- Malay NLP Library — open-source BM tokeniser and POS tagger
- IIUM Confession Dataset — BM/English code-switching social media corpus
- MIMOS Berhad — government-linked technology body with an active NLP research division
- Universiti Teknologi Malaysia (UTM) — NLP research in BM, Arabic NLP
- Universiti Malaya — multilingual NLP, sentiment analysis in BM
- Bahasa Malaysia sentiment analysis — social listening tools for Malaysian brands (Meltwater MY, BrandWatch with BM support)
- BM ASR (Automatic Speech Recognition) — Telekom Malaysia's voice services, national contact centres
- Court interpretation — JAWI (Jawi script) OCR and digitisation projects in the judiciary
- Devlin, J. et al. (2019). "BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding." NAACL 2019.
- MIMOS Berhad (2022). BERTi: Bahasa Malaysia BERT Technical Report.