Skip to content

使用TensorFlow2.0中的Keras实现基于BiLSTM-CRF的NER

Notifications You must be signed in to change notification settings

xsun15/BiLSTM-CRF-NER

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BiLSTM-CRF命名实体识别模型

概述

使用TensorFlow2.1.0实现BiLSTM-CRF命名实体识别模型。

其中,CRF通过继承tf.keras.layers.Layer来实现,使用方法与其他Keras网络层类似。

另外,还实现了对应的度量指标F1-Score,即metrics.py文件下的IOBESF1类,使用方法与Keras中其他度量指标类似。

其他

数据集:msra_ner,完整数据集下载

CRF的基本原理参考:

About

使用TensorFlow2.0中的Keras实现基于BiLSTM-CRF的NER

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%