- Ubuntu 20.04
- Python 3.9.5
- CUDA 10.1
git clone https://github.com/IKMLab/Text-classification-tutorial
cd Text-classification-tutorial
pip install -r requirements.txt
- Currently support AG News dataset
mkdir data
mv archive.zip data/
cd data
unzip archive.zip
rm archive.zip
python simple_eda.py
python main.py \
--data_name agnews \
--use_agnews_title \
--model_name bert-base-uncased \
--max_length 128 \
--batch_size 32 \
--test_batch_size 128 \
--num_epoch 1 \
--learning_rate 3e-5
- This will also be provided in the
scripts/run_agnews.sh
file.