add legend metadata to bayes classifier output fields