gucorpling / midas-loop

2 stars 1 forks source link

Option to Output Only Gold Annotations #7

Open mr-martian opened 2 years ago

mr-martian commented 2 years ago

Currently the export command outputs both gold and silver data. It would be useful to me if there were an option to specify that I only want to export the annotations that I have marked gold, with the rest being left blank.

A JSON dump equivalent to the Copy JSON button in the browser interface would also be fine for my purposes, if that's easier.

lgessler commented 2 years ago

My reaction is to think this is somewhat niche functionality so I guess I'm unsure on whether it's worth it to implement in the core system. A possible workaround for your situation would be to check whether the quality attribute (e.g. :xpos/quality) is equal to "gold"(this is implemented on all annotations) and null out all annotations which do not satisfy this criterion. Does that make sense?

mr-martian commented 2 years ago

Well, if the goal is to not just improve a silver corpus but actually produce a gold one, then exporting partial progress might be desirable.

But in any event, I can definitely extract what I need from the json representation, I just couldn't figure out how to straightforwardly do that exporting other than copy-pasting from the browser interface.