semantique.processor.core.QueryProcessor.add_custom_reducer

semantique.processor.core.QueryProcessor.add_custom_reducer#

QueryProcessor.add_custom_reducer(name, function)[source]#

Add a new reducer to the set of user-defined reducers.

Parameters:
  • name (str) – Name of the reducer to be added.

  • function (callable) – Reducer function to be added.