Open spyysalo opened 12 years ago
@spyysalo: Won't there be a chance of this biting us for the experiments?
@ninjin: no; we will use configs that are appropriate for the annotations.
@spyysalo: Meh, my bad, didn't read the title properly
Tested this again, and on a recent version the crash is
File "/home/smp/public_html/brat/server/src/annotator.py", line 743, in delete_arc
assert False, 'unknown annotation'
there's nothing very complicated about why this happens: this is the "else" branch on an if...else where the others are
if projectconf.is_equiv_type(type)
and
elif type in projectconf.get_relation_types():
so, there's basically no support for deleting unconfigured relations in the first place.
However, the code is missing an obvious trick here: as this relates to deleting an existing annotation, it's not necessary to know the config to determine whether or not it's an equiv; you can just look at the annotation itself.
Assigning @ninjin.
my config: small-EPI-test/PMID-12713659?focus=R1
trying to delete this annotation results in the following error
(no time to log in detail, sorry)