Comments (8)
这个问题应该是145行多出来一句:
model = load_model('src/data/model/ner_model.h5', custom_objects=get_custom_objects())
注释掉应该就行了。
from ccks2019-ckbqa-4th-codes.
from ccks2019-ckbqa-4th-codes.
好像是我Mac系统上的h5py包有点问题,我检查一下,因为运行train_ner.py一直报错。
fid = h5f.open(name, flags, fapl=fapl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5f.pyx", line 88, in h5py.h5f.open OSError: Unable to open file (unable to open file: name = '../data/model/ner_model.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
from ccks2019-ckbqa-4th-codes.
请问一下大佬,/news_classifer_task/wwm/文件夹中的文件就是直接从chinese_L-12_H-768_A-12里解压出来的对吧?vocab.txt和bert模型和配置那些
from ccks2019-ckbqa-4th-codes.
我也碰见这个问题ner_model.h5无法打开,也无法生成,请问你解决了吗
from ccks2019-ckbqa-4th-codes.
from ccks2019-ckbqa-4th-codes.
我也碰见这个问题ner_model.h5无法打开,也无法生成,请问你解决了吗
好像是因为得自己建data/model这个路径..
from ccks2019-ckbqa-4th-codes.
好像是我Mac系统上的h5py包有点问题,我检查一下,因为运行train_ner.py一直报错。
fid = h5f.open(name, flags, fapl=fapl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5f.pyx", line 88, in h5py.h5f.open OSError: Unable to open file (unable to open file: name = '../data/model/ner_model.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
好像是我Mac系统上的h5py包有点问题,我检查一下,因为运行train_ner.py一直报错。
fid = h5f.open(name, flags, fapl=fapl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5f.pyx", line 88, in h5py.h5f.open OSError: Unable to open file (unable to open file: name = '../data/model/ner_model.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
我今天也遇到这个问题了,手动建一下路径就好了,上传代码的时候文件夹没完全传上来
from ccks2019-ckbqa-4th-codes.
Related Issues (20)
- 文本匹配模型的准确度?
- 请问 keras和keras-bert用的是什么版本? HOT 1
- neo4j的关系种类数限制是6.5w 请问你是怎么解决的
- 文本匹配模型中dev.csv的构造方式
- 文本匹配模型中dev.csv的构造方式
- 请问train_ner.py里面的corpus_train.pkl和corpus_valid.pkl是怎么得到的呢 HOT 1
- 关于tuple_filter.py中验证集的召回率 HOT 3
- 第一次运行train_ner.py的时候,提示找不到../data/model/ner_model.h5/{saved_model.pbtxt|saved_model.pb} HOT 3
- 有关tuple_filter.py产生的结果指标,一项略低其余正常 HOT 1
- 您好,想问下similarity.py的tf版本和protobuf的版本应该是多少?很多属性值都失效了。 HOT 5
- neo4j查询慢的问题 HOT 3
- 请问pkubase-full.txt可以在哪下载 HOT 8
- tuple_filter.py文件SaveFilterCandiT函数运行error HOT 3
- 该方法是否后续发表论文了? HOT 2
- segment_dic.txt
- 请问双实体的部分没有代码实现吗? HOT 1
- 你好,tuple_filter.py用到的LR模型用到的特征,为什么只有len(mention)?bert_score等其他特征不用吗? HOT 1
- 大佬您好,请问CCKS2019电子病历命名实体识别的数据集有吗 HOT 5
- 请问作者和大家复现时各模块指标都是多少呀? HOT 8
- 内存炸了,大家都可以跑最后的answer_bot吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccks2019-ckbqa-4th-codes.