primeqa.mrc.run_mrc_utils.object_reference#

primeqa.mrc.run_mrc_utils.object_reference(reference_as_str: str) object#

Given a fully qualified path to a class reference, return a pointer to the reference. This will work with types, functions, methods, and other objects (e.g. dict).

Parameters

reference_as_str – the fully qualified path (expects the fully qualified path in dot notation, e.g. primeqa.mrc.processors.postprocessors.extractive.ExtractivePostProcessor).

Returns

reference to path given by input

Raises

TypeError – Unable to resolve input path