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

UnicodeEncodeError: 'charmap' codec can't encode characters in position 25-29: character maps to <undefined> #20

Open
learner-crapy opened this issue Mar 28, 2023 · 3 comments

Comments

@learner-crapy
Copy link

不知有没有人遇到过这个问题,在ubuntu上跑的好好的,在一台windows上也跑得好好的,文件open时加的编码是utf-8,在另一台国外电脑上就报这个错
image

@mtang398
Copy link

mtang398 commented May 3, 2023

你最后怎么解决的?

@learner-crapy
Copy link
Author

learner-crapy commented May 3, 2023 via email

@mtang398
Copy link

mtang398 commented May 3, 2023

非常感谢你的回复,我刚刚只做了第一步,然后我把coreference.py里面的“similarity = sum(scores[matching[:, 0], matching[:, 1]])”改成了“similarity = sum(scores[matching[i, 0], matching[i, 1]] for i in range(matching.shape[0]))
”就跑起来了,你说的那个第二个我没注释掉(不知道后面会不会有什么问题)。

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