Git Product home page Git Product logo

Comments (8)

Rilzob avatar Rilzob commented on July 22, 2024 2

这个问题应该是145行多出来一句:
model = load_model('src/data/model/ner_model.h5', custom_objects=get_custom_objects())
注释掉应该就行了。

from ccks2019-ckbqa-4th-codes.

duterscmy avatar duterscmy commented on July 22, 2024

from ccks2019-ckbqa-4th-codes.

ZainZhou avatar ZainZhou commented on July 22, 2024

好像是我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.

ZainZhou avatar ZainZhou commented on July 22, 2024

请问一下大佬,/news_classifer_task/wwm/文件夹中的文件就是直接从chinese_L-12_H-768_A-12里解压出来的对吧?vocab.txt和bert模型和配置那些

from ccks2019-ckbqa-4th-codes.

miaozjs avatar miaozjs commented on July 22, 2024

我也碰见这个问题ner_model.h5无法打开,也无法生成,请问你解决了吗

from ccks2019-ckbqa-4th-codes.

duterscmy avatar duterscmy commented on July 22, 2024

from ccks2019-ckbqa-4th-codes.

duterscmy avatar duterscmy commented on July 22, 2024

我也碰见这个问题ner_model.h5无法打开,也无法生成,请问你解决了吗

好像是因为得自己建data/model这个路径..

from ccks2019-ckbqa-4th-codes.

duterscmy avatar duterscmy commented on July 22, 2024

好像是我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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.