UKPLab / emnlp2017-bilstm-cnn-crf

BiLSTM-CNN-CRF architecture for sequence tagging
Apache License 2.0
825 stars 263 forks source link

Transfer Learning #39

Open ghost opened 5 years ago

ghost commented 5 years ago

Hi,

Can I use this model for transfer learning? Training on one corpus and then using that pretrained model for a new corpus? How can I do that? or it's not possible with this ?

nreimers commented 5 years ago

See: https://github.com/UKPLab/emnlp2017-bilstm-cnn-crf/blob/master/Save_and_Load.py

Load the model, change the last layer (CRF layer) you want to train for and continue training.