mpl_get_charac_weight function

Retrieve the weight of a character in the dataset