A hoax/fact classifier for Indonesian political news built on IndoBERT. The project includes a Colab training notebook that fine-tunes indobenchmark/indobert-base-p1 on a public Indonesian fact-vs-hoax political news dataset, and a Streamlit web app that lets you classify any Indonesian text as Hoax or Non Hoax.
| Item | Value |
|---|---|
| Base model | indobenchmark/indobert-base-p1 |
| Fine-tuned model | rachmadiapri/IndoBERT-PoliticsHoaxDetection-base-p1 |
| Task | Binary sequence classification (0 = Non Hoax, 1 = Hoax) |
The model is trained on the Indonesian Fact and Hoax Political News dataset (Kaggle), a collection of Indonesian political news articles from CNN Indonesia, Kompas, Tempo, and TurnBackHoax.
@inproceedings{wilie2020indonlu,
title={IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},
author={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},
booktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},
year={2020}
}
Indonesian-Political-News-Hoax/
├── app.py # Streamlit web app for text classification
├── notebook/
│ └── politics_hoax_classifier (1).ipynb # Training pipeline (data prep, fine-tuning, eval)
├── requirements.txt # Python dependencies
└── README.md
pip install -r requirements.txt
streamlit run app.py
The app loads the fine-tuned model from Hugging Face, applies the same text preprocessing used during training (whitespace normalization, parenthesis removal, lowercasing, punctuation spacing), and classifies the entered text as Hoax or Non Hoax.
max_length=512).indobert-base-p1 with the Hugging Face Trainer (AdamW, lr=2e-5, 5 epochs, batch size 16).9 commits
Jupyter Notebook
98.7%
Python
1.3%
A hoax/fact classifier for Indonesian political news built on IndoBERT. The project includes a Colab training notebook that fine-tunes indobenchmark/indobert-base-p1 on a public Indonesian fact-vs-hoax political news dataset, and a Streamlit web app that lets you classify any Indonesian text as Hoax or Non Hoax.
| Item | Value |
|---|---|
| Base model | indobenchmark/indobert-base-p1 |
| Fine-tuned model | rachmadiapri/IndoBERT-PoliticsHoaxDetection-base-p1 |
| Task | Binary sequence classification (0 = Non Hoax, 1 = Hoax) |
The model is trained on the Indonesian Fact and Hoax Political News dataset (Kaggle), a collection of Indonesian political news articles from CNN Indonesia, Kompas, Tempo, and TurnBackHoax.
@inproceedings{wilie2020indonlu,
title={IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},
author={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},
booktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},
year={2020}
}
Indonesian-Political-News-Hoax/
├── app.py # Streamlit web app for text classification
├── notebook/
│ └── politics_hoax_classifier (1).ipynb # Training pipeline (data prep, fine-tuning, eval)
├── requirements.txt # Python dependencies
└── README.md
pip install -r requirements.txt
streamlit run app.py
The app loads the fine-tuned model from Hugging Face, applies the same text preprocessing used during training (whitespace normalization, parenthesis removal, lowercasing, punctuation spacing), and classifies the entered text as Hoax or Non Hoax.
max_length=512).indobert-base-p1 with the Hugging Face Trainer (AdamW, lr=2e-5, 5 epochs, batch size 16).9 commits
Jupyter Notebook
98.7%
Python
1.3%