register_matching_exhaustive#

register_matching_exhaustive(matching, matching_setup, matching_scoring, memory_class)[source]#

Registers a new matching scheme.

Parameters:
matchingstr

Name of the matching method.

matching_setupCallable

Corresponding setup function.

matching_scoringCallable

Corresponing scoring function.

memory_classMatchingMemoryUsage

Child of tme.memory.MatchingMemoryUsage.

Raises:
ValueError

If a function with the name matching already exists in the registry, or if memory_class is no child of tme.memory.MatchingMemoryUsage.