make convenience functions to make training data from dictionaries, relates to #110