Skip to content

IKMLab/Text-classification-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text-Classification-tutorial

Environment

  • Ubuntu 20.04
  • Python 3.9.5
  • CUDA 10.1

Get started

git clone https://github.com/IKMLab/Text-classification-tutorial
cd Text-classification-tutorial
pip install -r requirements.txt

Download Dataset

mkdir data
mv archive.zip data/
cd data
unzip archive.zip
rm archive.zip

Run EDA (Exploratory Data Analysis)

python simple_eda.py

Run training / evaluations

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published