#### Better NER [BERT Named-Entity-Recognition](https://github.com/kamalkraj/BERT-NER)
# Named-Entity-Recognition-with-Bidirectional-LSTM-CNNs
A keras implementation of Bidirectional-LSTM_CNNs for Named-Entity-Recoganition. The original paper can be found at https://arxiv.org/abs/1511.08308
The implementation differs from the original paper in the following ways :
1) lexicons are not considered
2) Bucketing is used to speed up the training
3) nadam optimizer used instead of SGD
# Result
The model produces a test F1_score of 90.9 % with ~70 epochs. The results produced in the paper for the given architecture is 91.14
Architecture(BILSTM-CNN with emb + caps)
# Dataset
### conll-2003
# Network Model in paper
<img src="https://raw.githubusercontent.com/kamalkraj/Named-Entity-Recognition-with-Bidirectional-LSTM-CNNs/master/model_on_paper.png"/> <img src="https://raw.githubusercontent.com/kamalkraj/Named-Entity-Recognition-with-Bidirectional-LSTM-CNNs/master/char_embeddings.png"/>
# Network Model Constructed Using Keras
![alt text](https://raw.githubusercontent.com/kamalkraj/Named-Entity-Recognition-with-Bidirectional-LSTM-CNNs/master/model.png)
## To run the script
```bash
python3 nn.py
```
## Requirements
0) nltk
1) numpy
2) Keras==2.1.2
3) Tensorflow==1.4.1
## Inference on trained model
```python
from ner import Parser
p = Parser()
p.load_models("models/")
p.predict("Steve Went to Paris")
##Output [('Steve', 'B-PER'), ('went', 'O'), ('to', 'O'), ('Paris', 'B-LOC')]
```
没有合适的资源?快使用搜索试试~ 我知道了~
双向LSTM-CNN的命名实体识别:双向LSTM-CNN的命名实体识别
共16个文件
py:4个
png:3个
txt:3个
需积分: 49 15 下载量 177 浏览量
2021-02-06
07:36:53
上传
评论
收藏 1.05MB ZIP 举报
温馨提示
更好的NER 具有双向LSTM-CNN的命名实体识别 命名实体识别的双向LSTM_CNN的keras实现。 原始论文可以在找到 该实现与原始论文的不同之处在于: 不考虑词典 使用存储桶可加快培训速度 使用nadam优化程序代替SGD 结果 该模型在约70个时期内产生90.9%的测试F1得分。 对于给定的体系结构,本文产生的结果是91.14体系结构(带有emb + caps的BILSTM-CNN) 数据集 conll-2003 论文网络模型 使用Keras构建网络模型 运行脚本 python3 nn.py 要求 0) nltk 1) numpy 2) Keras==2.1.2 3) T
资源推荐
资源详情
资源评论
收起资源包目录
Named-Entity-Recognition-with-Bidirectional-LSTM-CNNs-master.zip (16个子文件)
Named-Entity-Recognition-with-Bidirectional-LSTM-CNNs-master
ner.py 4KB
validation.py 2KB
.gitignore 701B
model_on_paper.png 48KB
data
test.txt 731KB
train.txt 3.13MB
valid.txt 808KB
embeddings
readme.md 103B
char_embeddings.png 29KB
prepro.py 4KB
models
.gitkeep 0B
LICENSE 34KB
README.md 2KB
model.png 49KB
nn.py 6KB
.gitattributes 378B
共 16 条
- 1
资源评论
xianzhang
- 粉丝: 20
- 资源: 4594
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功