marilynmontu / chinesener-pytorch Goto Github PK
View Code? Open in Web Editor NEW基于Pytorch的BERT-IDCNN-BILSTM-CRF中文实体识别实现
基于Pytorch的BERT-IDCNN-BILSTM-CRF中文实体识别实现
菜狗表示感谢大佬
model里面三种不同的py,比如单独选择CNN训练
百度云下载下来的lstm的模型文件与constants,py中要求的lstm文件不匹配,不知道哪里能找到合格的lstm文件
sorry,found
您好这个模型可以用来跑别的类别的数据吗,如何修改呢,小白不太会……
Traceback (most recent call last):
File "train.py", line 89, in
loss = model.neg_log_likelihood_loss(sentence, masks, tags)
File "/usr/local/ChineseNER-pytorch-main/model/bert_lstm_crf.py", line 62, in neg_log_likelihood_loss
lstm_feats = self.get_output_score(sentence)
File "/usr/local/ChineseNER-pytorch-main/model/bert_lstm_crf.py", line 42, in get_output_score
embeds, _ = self.word_embeds(sentence, attention_mask=attention_mask, output_all_encoded_layers=False)
TypeError: 'NoneType' object is not callable
这代码有问题,本地训练好了,但是在wrapper模块调用时报错:
Unexpected key(s) in state_dict: "lstm.weight_ih_l1", "lstm.weight_hh_l1", "lstm.bias_ih_l1", "lstm.bias_hh_l1", "lstm.weight_ih_l1_reverse", "lstm.weight_hh_l1_reverse", "lstm.bias_ih_l1_reverse", "lst
m.bias_hh_l1_reverse".
另外百度网盘中的idcnn_1e5.pkl不起作用
最后调用chineseNER.sh 时缺失文件比如predict.py等
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.