pre-tagged corpus stored in yaml
generalized triple_to_dict function