GithubHelp home page GithubHelp logo

renxingkai / bert_chinese_classification Goto Github PK

View Code? Open in Web Editor NEW
371.0 371.0 92.0 2.25 MB

本实验,是用BERT进行中文情感分类,记录了详细操作及完整程序

Python 99.66% Shell 0.34%

bert_chinese_classification's Introduction

bert_chinese_classification's People

Contributors

renxingkai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bert_chinese_classification's Issues

请问作者的训练结果怎么样?

毕业论文不出大意外就用BERT做分类模型了, 昨天刚跑通别人的模型参数加上用的别人的数据,只有一千条,作者说他有80的争取率,我自己训练出来结果只有66%正确率,训练了1400次。3000次撑死天68%。
我现在有大约六万条数据跑这个模型,我心理一点谱没有,如果只有66的正确率,盲审肯定是不能过的。

无准确率文件

你好,我在cpu环境下跑的一直没有最后的准确率,损失的.txt文件是什么问题呢,初学者

训练的过程慢是正常的吗

训练的过程中没有打印进度条,或者时间估计。但是加载了GPU上看显存使用量也不是很大,但是训练很慢。

  1. 请问作者的参数训练的时长。
  2. 最后预测的准确度。
    看了下数据库,train集没有太多的数据,前面也有帖子反映预测的很慢, 也就是说这个模型除了用来刷竞赛,在实际的使用中效率不是很高, 特别是商用的场景。

兄弟,这么模型怎么在windows上跑啊

我在CMD上跑了报错如下:
Current thread 0x00003eb0 (most recent call first): File "D:\4-ProgrammingLanguage\1-anaconda\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 84 in _preread_check File "D:\4-ProgrammingLanguage\1-anaconda\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 122 in read File "F:\PythonProject\BERT_Chinese_Classification-master\modeling.py", line 93 in from_json_file File "run_classifier.py", line 880 in main File "D:\4-ProgrammingLanguage\1-anaconda\lib\site-packages\absl\app.py", line 251 in _run_main File "D:\4-ProgrammingLanguage\1-anaconda\lib\site-packages\absl\app.py", line 300 in run File "D:\4-ProgrammingLanguage\1-anaconda\lib\site-packages\tensorflow\python\platform\app.py", line 40 in run File "run_classifier.py", line 1061 in <module>

预测特别慢

你好,我使用你的代码intent.py对一个一个txt长文本进行预测,发现预测速度超级慢,一个文件估计要半分钟,很不合理,但是我没有检查出哪里有问题,你知道大概哪里有问题吗?(我利用pytorch版本的bert进行预测时一个txt长文本大约0.2秒)

BERT

请问在模型学习阶段,怎么查看在测试集上输出的测试结果?

新手问题:怎样看到预测的结果

小白在此因为没有完整学习先道歉!
因为初次接触bert模型,跟着跑了以后也有了输出结果,但是输出的文件夹里面只有checkpoint和一个只含有准确率的txt,翻回去想尝试print出prediction但是找不到输出接口,求问怎样才能看到prediction呢?

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.