NLP15:使用BiLSTM、BiLSTM-CRF、BiLSTM-Attention、Bert-BiLSTM-CRF进行命名实体识别
公众号:数据挖掘与机器学习笔记1.基于BiLSTM的命名实体识别Embedding+BiLSTM+BiLSTM+Densefromtensorflow.keras.layersimportEmbedding,LSTM,Bidirectional,Dense,Dropout,Maskingfromtensorflow.keras.modelsimportSequentialdefbuild_mode