make_scorers

opennmt.utils.make_scorers(names)[source]

Returns a list of scorers.

Parameters

names – A list of scorer names or a single name.

Returns

A list of opennmt.utils.Scorer instances.

Raises

ValueError – if a scorer name is invalid.