Skip to content
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

TypeError: slice indices must be integers or None or have an __index__ method #88

Open
urextra opened this issue Jan 11, 2021 · 1 comment

Comments

@urextra
Copy link

urextra commented Jan 11, 2021

image
有人遇到吗

@JiangTaoGZU
Copy link

估计是你的tensorflow版本超前了,也有可能是windows的问题
1.修改data_utils.py 文件293行的内容为:batch_data.append(self.pad_data(sorted_data[int(i*batch_size) : int((i+1)*batch_size)]))
2.若你出现utf8编码错误,修改conlleval.pywen.py文件第281行为 : with codecs.open(input_file, "r", "gbk") as f:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants