yangheng95 / PyABSA

Sentiment Analysis, Text Classification, Text Augmentation, Text Adversarial defense, etc.;
https://pyabsa.readthedocs.io
MIT License
955 stars 161 forks source link

Train from checkpoint #199

Closed pepi99 closed 2 years ago

pepi99 commented 2 years ago

Hello, I have a checkpoint saved in the checkpoints directory called "pyabsa_model". I want to train on top of this checkpoint, how can I do it? How can I obtain the apc_config of my checkpoint so I can pass it to new trainer to do training from checkpoint?

yangheng95 commented 2 years ago

See demos/aspect_polarity_classification/train_based_on_checkpoint.py

pepi99 commented 2 years ago

It worked. It was my bad, I had messed up my code (i had added different bert model). Thanks