omriabnd/UCCA-App

Allow to define a custom color for a category

Opened this issue · 10 comments

Allow to define a custom color for a category

➤ omriabnd commented:

Jakob, why is this necessary? it's a considerable complication, because we'll have to save it in the layer structure.

➤ Jakob Prange commented:

Can't it just be an optional attribute of the category?
It's not necessary, but I think it could make it much easier for annotators to recognize categories (or at least the most frequent ones) by their color. So one goal of this would be to make sure the most frequent categories have distinct colors (and not have them accidentally all be blue or sth), and another goal could be to group the supersenses by color according to the hierarchy.

➤ omriabnd commented:

So the colors are assigned periodically, so if you put all the frequent categories at the top, the first 8 or 10 or so (can't remember now) will get different categories.

➤ omriabnd commented:

Btw, the colors are constant per layer, because they are defined by the order of the categories.

➤ Jakob Prange commented:

Re "So the colors are assigned periodically, so if you put all the frequent categories at the top, the first 8 or 10 or so (can't remember now) will get different categories."
Yes. My point is that that's very messy and unstable if we really want to have that kind of color-coding to some extent. I understand that it may mean some major changes to the current architecture and that it shouldn't be top priority (or maybe no priority at all).

➤ Jakob Prange commented:

Also, how do you change the order of the categories in a layer?

➤ omriabnd commented:

OK

➤ omriabnd commented:

you can drag and drop them in the category list.

➤ Jakob Prange commented:

... but only in a root layer, as far as I can see

➤ omriabnd commented:

oh. it's a bug then.