hamming
Pyconstruct provides metrics and losses to be used with most of the structured output problems out there.