follow paper TRANSFER LEARNING FOR SEQUENCE TAGGING WITH HIERARCHICAL RECURRENT NETWORKS
本文将transfer learning分为了三个层次
- cross-domain transfer where label mapping is possible
- cross-domain transfer with disparate label sets
- cross-lingual transfer
这里仅先实现第二点,作中文NER,原文GitHub是theano实现的,这里用tensorflow
tensorflow > 1.10
python == 3.65