-
Notifications
You must be signed in to change notification settings - Fork 568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问出错,提示找不到config_file',如何解决为什么?谢谢! #62
Comments
同问,我也是一样的 |
您好,请问解决了吗 |
可以试一下在main.py上面的train和clean,吧false修改成true |
同问,缺少config_file |
我这边试了下
这个问题有碰到过么,感觉是没有数据产生,但是理论上不应该哇 |
谢谢你的回复,问题已经解决啦,再次感谢!
…---原始邮件---
发件人: "smartcatdog"<[email protected]>
发送时间: 2019年9月22日(星期日) 凌晨5:37
收件人: "zjy-ucas/ChineseNER"<[email protected]>;
抄送: "hh2master"<[email protected]>;"Comment"<[email protected]>;
主题: Re: [zjy-ucas/ChineseNER] 请问出错,提示找不到config_file',如何解决为什么?谢谢! (#62)
可以试一下在main.py上面的train和clean,吧false修改成true
我这边试了下python main.py --train=True --clean=True,可是报错:
File "main.py", line 219, in main train() File "main.py", line 150, in train train_manager = BatchManager(train_data, FLAGS.batch_size) File "ChineseNER/data_utils.py", line 285, in __init__ self.batch_data = self.sort_and_pad(data, batch_size) File "ChineseNER/data_utils.py", line 293, in sort_and_pad batch_data.append(self.pad_data(sorted_data[i*batch_size : (i+1)*batch_size])) TypeError: slice indices must be integers or None or have an __index__ method
这个问题有碰到过么,感觉是没有数据产生,但是理论上不应该哇
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
You should fix the type of batch_size. ,please insert int before batch_size. |
ok,thank u!
…------------------ 原始邮件 ------------------
发件人: "fzc1027"<[email protected]>;
发送时间: 2019年10月8日(星期二) 中午11:15
收件人: "zjy-ucas/ChineseNER"<[email protected]>;
抄送: "冉大成"<[email protected]>; "Comment"<[email protected]>;
主题: Re: [zjy-ucas/ChineseNER] 请问出错,提示找不到config_file',如何解决为什么?谢谢! (#62)
You should fix the type of batch_size. ,please insert int before batch_size.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
batch_data.append(self.pad_data(sorted_data[int(i*batch_size) :int((i+1)*batch_size)])) |
@BestyWang 改了之后还是报错 |
@hh2master 大哥怎么解决的。 |
解决了谢谢 |
No description provided.
The text was updated successfully, but these errors were encountered: