This tutorial introduces how to install AdaSeq and use it train a model.
AdaSeq project is based on Python version >= 3.7
and PyTorch version >= 1.8
.
git clone https://github.com/modelscope/adaseq.git
cd adaseq
pip install -r requirements.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html
pip install adaseq
Let's train a Bert-CRF model for NER on the resume
dataset as an example. All you need to do is to write a
configuration file and use it to run a command.
We've already prepared a configuration file resume.yaml for you. Try it!
python scripts/train.py -c examples/bert_crf/configs/resume.yaml
python scripts/test.py -w ${checkpoint_dir}
adaseq train -c examples/bert_crf/configs/resume.yaml
adaseq test -w ${checkpoint_dir}