davidjurgens / potato

potato: portable text annotation tool
Other
285 stars 45 forks source link

Space out radio choices in horizontal mode #93

Open jl3676 opened 3 days ago

jl3676 commented 3 days ago

Hi, I was wondering if there's a way to space out the choices under the radio annotation scheme when they are aligned horizontally. The choices look too close to each other and I'd like to insert more whitespace between adjacent choices, but I'm not sure how to do that. I'd appreciate any help with this!

image

Jiaxin-Pei commented 3 days ago

Hi @jl3676,

I think there are two potential solutions:

  1. align the options vertically: "horizontal": False,

  2. use multi-rate schema where the labels will be displayed at the top of the radio button:

"annotation_schemes": [      
        {
            "annotation_type": "multirate",

            # This name gets used in reporting the annotation results
            "name": "awesomeness",

            # This text is shown to the user and can be a longer statement
            "description": "How awesome is this?",

            "display_config": {
                                "num_columns":1
            },

            "arrangement":'vertical',

            "options": ['Option 1', 'Option 2', 'Option 3'],
            "labels": ['Strongly disagree', 'Disagree', 'Neutral', 'Agree' , 'Strongly Agree'],

            # adding requirements for labels, when "required" is True, the annotators will be asked to finish the current instance to proceed
            "label_requirement": { "required": True },

            # If true, keys [1-size] will be bound to scale responses. Likert
            # scales larger than 10 are not supported with this simple
            # keybinding and will need to use the full item specification to
            # bind all scale points to keys.
            "sequential_key_binding": True,

            # Whether randomizing the order of the options
            "option_randomization": True
        }       
  ]
jl3676 commented 2 days ago

@Jiaxin-Pei Hi, thanks for your reply. I tried the multirate schema but it didn't space out my options because they are short. For my purpose, I'd prefer to keep my options horizontal, so just double-checking that there's no other way to do this?

Jiaxin-Pei commented 2 days ago

@jl3676 one simple solution is to add   to each label:

"labels": [
               "pizza  ", "bagels  ", "burgers  ", "curry  ", "tacos  ",
            ],