Giter VIP home page Giter VIP logo

yedda's People

Contributors

etern avatar freeshman avatar jiesutd avatar palin2018 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yedda's Issues

Pairwise Annotators Comparison

According to the demotext/UserA.ann and demotext/UserB.ann provided, using the Pairwise Annotators Comparison function, there will be errors or PDF documents can not be opened.
image

Windows 10 System、python2.7.15

The shortcut key "q" and "ctrl+z" is invalid

Hi, Thanks for your nice work!
Following the annotation on the README. First, I tagged an entity "机器", pressed shortcut key 'q'. The entity was deleted. Then, I pressed "ctrl + z", the full text of the imported file disappear and I got an error as follows, and have no idea to deal with it.
image
image

Could you please tell me what part of the process went wrong? and how to fix it?
I am very pleased to hear from you on the question's comments.

RMon开关

在标注时一击多中可能会出现问题,RMon开关可以实现只对当前最新标注的字段有效吗?

修改标注标签名之后启动报错,default.config不支持中文字符?

File "C:/Users/NUC/Downloads/YEDDA-master/YEDDA-master/YEDDA.py", line 834, in main
app = Application(root)
File "C:/Users/NUC/Downloads/YEDDA-master/YEDDA-master/YEDDA.py", line 254, in init
self.readConfig()
File "C:/Users/NUC/Downloads/YEDDA-master/YEDDA-master/YEDDA.py", line 273, in readConfig
config_dict = json.load(fp)
File "C:\Users\NUC\AppData\Local\Programs\Python\Python39\lib\json_init_.py", line 293, in load
return loads(fp.read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa1 in position 15: illegal multibyte sequence

Malayalam Unicode rendering issue

Hello....
When i trie to open malayalam unicode file in text widget it shows rendering problem. Could you please help me to reslove this issue in YEDDA?

original file and output are attached here...

Screenshot from 2019-08-30 10:46:33
Screenshot from 2019-08-30 10:46:19

GUI render weird on windows

Hi,

I'd like to try this project, but gui is wired, looks like some resolution error:
image

OS: win7 x64
Resolution settings:
image

A little suggestion

Since Chinese tokenizer would not be 100% correct, there may be some wrong word in text.
It would be nice if able to switch between text edit mode and annotator mode. Then one can simply fix the tokenizer error and continue.

导入中文text无法运行

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

点赞

不行了,抑制不足点赞之心,拉下来就能跑,满足各种需求,配置方便易改,完美

[Suggestion] Add export settings as buttons on GUI

Hi jiesutd, thank you for building this wonderful tool! A little suggestion here: could you add export settings as some buttons on the GUI so that users don't need to go inside the code, modify it then rerun the program? I think that way it would be more user-friendly.

Cannot recognize and recommend entities right before a newline character

I think in utils/recommend.py, the "## forward maximum matching (FMM)" part, the third condition should change to

elif entity_recognized_list[FMM_end] != 0:

i.e. remove the second part

decode_origin[FMM_end] == '\n'

otherwise, when FMM_end equals the end of a line, decode_origin[FMM_end] is a newline character, then FMM_end will be moved one character backward, which will then make decode_origin[FMM_start:FMM_end] a non-word.

报错

在YEDDA.PY运用快捷键进行标注时会报错:global name "maximum_matching" is not define

Shortcut doesn't work

Hi, Thanks for your nice work!
(PS, when I imported a Chinese document, I got an error UnicodeDecodeError: 'gbk' codec can't decode byte.., I changed f = open(filename, "r",encoding="UTF-8") instead of f = open(filename, "r". Then it works )
Following the annotation on the README. First, I put the cursor within an entity "机器" span, press shortcut key 'I'
However, the contents(Chinese) of the imported file disappear and I got an error as follows, and have no idea to deal with it.

image


F:\githubZoon\YEDDA-master>python YEDDA.py
SUTDAnnotator launched!
OS:Windows
event: i
Command:i
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\tkinter_init_.py", line 1699, in call
return self.func(*args)
File "YEDDA.py", line 313, in textReturnEnter
self.executeCursorCommand(press_key.lower())
File "YEDDA.py", line 381, in executeCursorCommand
self.writeFile(self.fileName, content, cursor_index)
File "YEDDA.py", line 523, in writeFile
self.autoLoadNewFile(new_name, newcursor_index)
File "YEDDA.py", line 542, in autoLoadNewFile
text = self.readFile(fileName)
File "YEDDA.py", line 262, in readFile
text = f.read()
File "C:\ProgramData\Anaconda3\lib\codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in position 2: invalid start byte
delete insert: 1.1
i

Could you please tell me what part of the process went wrong? and how to fix it?
I am very pleased to hear from you on the question's comments.

Unable to select config on m1 Mac

~/src/YEDDA$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

~/src/YEDDA$ python --version
Python 3.8.10

~/src/YEDDA$ python YEDDA.py
YEDDA launched!
OS: Darwin
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.

I see a window with just 3 options: Recommend, Show Tags, and Colorful, of which the last one is unselected. I see no way to select a config or open a text file. Has the interface changed since Python 2.7? Is there a shortcut key to move past this screen?

Shortcuts don't work

Following the steps to use it but the shortcuts don't work. Using python 2.7 on Ubuntu 16.04.

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc1 in position 14: invalid start byte

when I add a new txt, it was wrong like this:

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\86152\AppData\Local\Programs\Python\Python39\lib\tkinter_init_.py", line 1885, in call
return self.func(*args)
File "C:\Users\86152\Desktop\YEDDA-py3\YEDDA.py", line 251, in onOpen
text = self.readFile(fl)
File "C:\Users\86152\Desktop\YEDDA-py3\YEDDA.py", line 262, in readFile
text = f.read()
File "C:\Users\86152\AppData\Local\Programs\Python\Python39\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc1 in position 14: invalid start byte

how can I solve the problem?

python3

why not consider compatible with python3?

limits?

Is there a limit to the number of sentences in the input file? I have a file with 18948 sentences delimited by newlines but in the UI the file seems to end at 3524 sentences.

python YEDDA.py失败

第一次python YEDDA.py成功,X掉关闭后,再次python YEDDA.py 就报错,是线程或端口占用吗?
YEDDA launched!
OS: Windows
Traceback (most recent call last):
File "YEDDA.py", line 840, in
main()
File "YEDDA.py", line 834, in main
app = Application(root)
File "YEDDA.py", line 254, in init
self.readConfig()
File "YEDDA.py", line 273, in readConfig
config_dict = json.load(fp)
File "F:\anaconda\lib\json_init_.py", line 293, in load
return loads(fp.read(),
File "F:\anaconda\lib\json_init_.py", line 357, in loads
return _default_decoder.decode(s)
File "F:\anaconda\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "F:\anaconda\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

期待添加实体关系标注功能

这个工具还是比较轻量级,用起来也挺方便的。可惜就是还不支持实体关系标注(只找到了实体标注和事件抽取),请问后续考虑开发实体关系标注功能吗?~

缺少按钮

image
你好,请问为什么我打开的界面少了RMOn和RMOff还有Exit这些按钮呀。是要修改什么东西吗。

program get no response for large txt

I open a 6MB Chinese txt file .I got no response when a use shortcuts key like 'a' in the 'EMOn' mode.
if i am in 'RMOff' mode, it is ok.
so do you have any solutions if i do not want to split the big file ?
thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.