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

导入中文text无法运行 #37

Open
Sweetjy opened this issue Mar 16, 2020 · 2 comments
Open

导入中文text无法运行 #37

Sweetjy opened this issue Mar 16, 2020 · 2 comments

Comments

@Sweetjy
Copy link

Sweetjy commented Mar 16, 2020

event: A
Command:a
Exception in Tkinter callback
Traceback (most recent call last):
File "D:\python\Anaconda\envs\tenvf\lib\tkinter_init_.py", line 1705, in call
return self.func(*args)
File "D:/python/workspace/YEDDA-master/YEDDA.py", line 313, in textReturnEnter
self.executeCursorCommand(press_key.lower())
File "D:/python/workspace/YEDDA-master/YEDDA.py", line 381, in executeCursorCommand
self.writeFile(self.fileName, content, cursor_index)
File "D:/python/workspace/YEDDA-master/YEDDA.py", line 523, in writeFile
self.autoLoadNewFile(new_name, newcursor_index)
File "D:/python/workspace/YEDDA-master/YEDDA.py", line 542, in autoLoadNewFile
text = self.readFile(fileName)
File "D:/python/workspace/YEDDA-master/YEDDA.py", line 262, in readFile
text = f.read()
File "D:\python\Anaconda\envs\tenvf\lib\codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbe in position 0: invalid start byte
delete insert: 1.1
A

@Sweetjy
Copy link
Author

Sweetjy commented Mar 16, 2020

导入中文文件时不会出错,但是标注就会出错,报错日志如下

@houruihui
Copy link

你好,我想问一下你是标注普通的实体还是特殊领域的实体?

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