jiesutd / YEDDA

YEDDA: A Lightweight Collaborative Text Span Annotation Tool. Code for ACL 2018 Best Demo Paper Nomination.
Apache License 2.0
1.03k stars 297 forks source link

如何增加新的实体类别 #16

Closed caizhuo closed 5 years ago

caizhuo commented 5 years ago

请问如何新增实体类别,8个类别有点不够用

jiesutd commented 5 years ago

Update at 2019/7/31.

You can update the map JSON file atconfig/xx.config, e.g. config/default.config. You can also create your own config file and edit the map in JSON format.

--------------Below is the old answer, not recommend---------------- Just add your classes here: https://github.com/jiesutd/YEDDA/blob/ac03bb15beed3206420f4be55d060e7730325d25/YEDDA_Annotator.py#L34

Please avoid some key shortcuts, i.e. q, y.

caizhuo commented 5 years ago

thanks

gui-li commented 5 years ago

Nothing changed in the GUI after I changed self.pressCommand dictionary in YEDDA.py

jiesutd commented 5 years ago

@gui-li after you change the dictionary, you need to close the old one and rerun the code.

gui-li commented 5 years ago

@gui-li after you change the dictionary, you need to close the old one and rerun the code.

I am sure I did save the py file and rerun it, but it didn't take effect. Annotation 2019-07-31 103315 Annotation 2019-07-31 103329

jiesutd commented 5 years ago

@gui-li send me the updated code and I will see what happened. jieynlp@gmail.com