I trained this model using PyTorch to detect toxic comments for Projectube.
I used VNCoreNLP to preprocess the raw Vietnamese sentence data and PhoBERT to train the model for text classification. I applied these technologies from https://github.com/VinAIResearch/PhoBERT.
git clone https://github.com/hoangcaobao/Vietnamese_Text_Toxic_Classify.git
cd VietnameseTextToxicClassify
pip3 install vncorenlp
mkdir -p vncorenlp/models/wordsegmenter
wget https://raw.githubusercontent.com/vncorenlp/VnCoreNLP/master/VnCoreNLP-1.1.1.jar
wget https://raw.githubusercontent.com/vncorenlp/VnCoreNLP/master/models/wordsegmenter/vi-vocab
wget https://raw.githubusercontent.com/vncorenlp/VnCoreNLP/master/models/wordsegmenter/wordsegmenter.rdr
mv VnCoreNLP-1.1.1.jar vncorenlp/
mv vi-vocab vncorenlp/models/wordsegmenter/
mv wordsegmenter.rdr vncorenlp/models/wordsegmenter/
python3 training.py