Comments (5)
运行后还有这个问题:
Traceback (most recent call last):
File "/Volumes/Macintosh HHD/work/Bert_test/BERT-Classification-Tutorial/run_classifier.py", line 50, in
"bert_config_file", None + "bert_config.json",
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
from bert-classification-tutorial.
你好,
请问data数据集里为什么没有test.tsv?
最后的参数设置只需设置
flags.DEFINE_string(
"data_dir", None,
"The input data dir. Should contain the .tsv files (or other data files) "
"for the task.")
就可以了吗?
比如在你的项目下,把None改成'/data'吗?
最后运行run_classifier.py这个文件,是这样吗?
谢谢回复〜
你好,data里面是样本数据,dev就可以看出效果,可以在自己的数据集上面按dev 的格式制作test。DATA_DIR 是你的数据路径,具体可以看tutorial,里面每一步都有提到
from bert-classification-tutorial.
我也遇到了这个问题,报TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'的错误
from bert-classification-tutorial.
我也遇到了这个问题,报TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'的错误
我理解的作者的做法是希望能够不用再命令行里面输入很长的调用指令,但是我不清楚他为什么要None+"string"这种写法,在我的python2.7和python3.6均不支持这种语法。你可以直接用flags.DEFINE_string( "data_dir", "你的数据目录", "The input data dir. Should contain the .tsv files (or other data files) " "for the task.")
from bert-classification-tutorial.
我也遇到了这个问题,报TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'的错误
我理解的作者的做法是希望能够不用再命令行里面输入很长的调用指令,但是我不清楚他为什么要None+"string"这种写法,在我的python2.7和python3.6均不支持这种语法。你可以直接用
flags.DEFINE_string( "data_dir", "你的数据目录", "The input data dir. Should contain the .tsv files (or other data files) " "for the task.")
运行后还有这个问题:
Traceback (most recent call last):
File "/Volumes/Macintosh HHD/work/Bert_test/BERT-Classification-Tutorial/run_classifier.py", line 50, in
"bert_config_file", None + "bert_config.json",
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
typo, 已经修复
from bert-classification-tutorial.
Related Issues (20)
- 关于预处理的问题 HOT 3
- 关于预测准确率 HOT 29
- issues about new data which 7 classification HOT 8
- 怎么使用GPU模式的 HOT 7
- 保存训练过程dev set准确率
- do_eval的问题 HOT 1
- 中文乱码 HOT 1
- 请问, 哪里可以看到损失函数?
- max_seq_length的最大值不超过512
- 验证的精度,只有0.1,为什么? HOT 4
- 用模型预测最终生成的文件问题 HOT 4
- mrpc的训练数据在哪里下载
- emmm 这里的classification 好像不止改了一点点
- 能导出环境配置文件?跑了你的项目报错了
- eval_drop_remainder = True if FLAGS.use_tpu else Falsed HOT 2
- 关于多文本分类任务 HOT 1
- Tokens difference between bert project and yours. Is run_classifier.py the only changed file? HOT 2
- 关于中文二分类问题 HOT 5
- 关于显卡显存 HOT 1
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 bert-classification-tutorial.