easyiec.ui.GalleryController#

class easyiec.ui.GalleryController(query, evaluator='human', suggestion=None)[source]#

Bases: object

Interactive answer under construction.

select marks cycle none → chosen (parent) → kept (survives unchanged) → none, as the EASY-IEC v2 buttons did. rank records the click order. best_worst: the first click marks the best, the second the worst.

choose_pair(k, outcome)[source]#

Outcome 1: left (A) wins, 0: right (B) wins, 0.5: tie.

label(k)[source]#

Short status text of candidate k for the views.

ready()[source]#

Is the answer complete? (message explains what is missing).

toggle(k)[source]#

Click on candidate k; returns its new mark.