semantique.processor.core.QueryProcessor.handle_label

semantique.processor.core.QueryProcessor.handle_label#

QueryProcessor.handle_label(block)[source]#

Handler for value labels.

Parameters:

block (dict) – Textual representation of a building block of type “label”.

Returns:

int or float – The value belonging to the label.

Raises:

exceptions.UnknownLabelError – If the label is not used for any value in the active evaluation object, or the active evaluation object has no value labels defined at all.