Git Product home page Git Product logo

Comments (7)

13145314593 avatar 13145314593 commented on July 20, 2024 5

你好,请问训练好的模型应该是bert.ckpt文件吧,这个文件请问要怎么进行进行预测呢,这个是pytorch保存的模型文件吗

请问你知道怎么预测了吗?

预测的代码已经写好了啊,就是train_eval.py文件里面test()函数里面的内容.

from bert-chinese-text-classification-pytorch.

DrDavidS avatar DrDavidS commented on July 20, 2024

No such file or directory: 'THUCNews/saved_dict/bert.ckpt'...直接跑还给报这个错误

from bert-chinese-text-classification-pytorch.

HelenZZZZZZ avatar HelenZZZZZZ commented on July 20, 2024

No such file or directory: 'THUCNews/saved_dict/bert.ckpt'...直接跑还给报这个错误

请问您解决这个问题了嘛,我也遇到了这个问题诶

from bert-chinese-text-classification-pytorch.

nlp-wyf avatar nlp-wyf commented on July 20, 2024

from bert-chinese-text-classification-pytorch.

HelenZZZZZZ avatar HelenZZZZZZ commented on July 20, 2024

你直接在THUCNews文件夹下面新建一个空文件夹saved_dict就好了

嗯嗯 解决了 非常感谢!

from bert-chinese-text-classification-pytorch.

nlp-wyf avatar nlp-wyf commented on July 20, 2024

from bert-chinese-text-classification-pytorch.

377088921 avatar 377088921 commented on July 20, 2024

你好,请问训练好的模型应该是bert.ckpt文件吧,这个文件请问要怎么进行进行预测呢,这个是pytorch保存的模型文件吗

请问你知道怎么预测了吗?

from bert-chinese-text-classification-pytorch.

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.