This project focuses on text analysis for the NusaX dataset, which is a multilingual parallel corpus encompassing various Indonesian languages. Our goal is to tackle two major tasks:
The specific languages used for these tasks include Indonesian (Bahasa) and Javanese, with the main objective being to evaluate and improve upon existing methods for text translation and sentiment classification within these languages.
Machine Translation Task:
Sentiment Analysis Task:
The dataset used in this project is the NusaX corpus, which contains parallel data across 12 languages, including Indonesian and Javanese. The data consists of:
Requirements:
conda env create -f nlp_7008.yml
conda activate nlp_7008
Running the Project:
Example Commands:
# Training a transformer to translation
python train_MT.py --model transformer --source_language indonesian --target_language english
# Training a LSTM to translation
python train_MT.py --model LSTM --source_language indonesian --target_language english
# Training a CNN to translation
python train_MT.py --model CNN --source_language indonesian --target_language english
# Training a RNN to translation
python train_MT.py --model RNN --source_language indonesian --target_language english
# Running sentiment analysis models
python train_sentiment.py --model MLP
python train_sentiment.py --model CNN
python train_sentiment.py --model SVM
cd word_2_vec
# Three different model
python word_2_vec_mlp.py
python word_2_vec_cnn.py
python word_2_vec_svm.py
# Running transformer for Sentiment Tasks
python transformer_senti.py
# Running pre-trained IndoBERT or DistilBert
python senti_pretrained_distilbert.py --model indobert
python senti_pretrained_distilbert.py --model distilbert
Python
93.8%
Jupyter Notebook
6.2%
This project focuses on text analysis for the NusaX dataset, which is a multilingual parallel corpus encompassing various Indonesian languages. Our goal is to tackle two major tasks:
The specific languages used for these tasks include Indonesian (Bahasa) and Javanese, with the main objective being to evaluate and improve upon existing methods for text translation and sentiment classification within these languages.
Machine Translation Task:
Sentiment Analysis Task:
The dataset used in this project is the NusaX corpus, which contains parallel data across 12 languages, including Indonesian and Javanese. The data consists of:
Requirements:
conda env create -f nlp_7008.yml
conda activate nlp_7008
Running the Project:
Example Commands:
# Training a transformer to translation
python train_MT.py --model transformer --source_language indonesian --target_language english
# Training a LSTM to translation
python train_MT.py --model LSTM --source_language indonesian --target_language english
# Training a CNN to translation
python train_MT.py --model CNN --source_language indonesian --target_language english
# Training a RNN to translation
python train_MT.py --model RNN --source_language indonesian --target_language english
# Running sentiment analysis models
python train_sentiment.py --model MLP
python train_sentiment.py --model CNN
python train_sentiment.py --model SVM
cd word_2_vec
# Three different model
python word_2_vec_mlp.py
python word_2_vec_cnn.py
python word_2_vec_svm.py
# Running transformer for Sentiment Tasks
python transformer_senti.py
# Running pre-trained IndoBERT or DistilBert
python senti_pretrained_distilbert.py --model indobert
python senti_pretrained_distilbert.py --model distilbert
Python
93.8%
Jupyter Notebook
6.2%