import yaml from tantipy import TantivyCoder with open('nexus/summa/schema/scitech.yaml') as file: scitech_coder = TantivyCoder(yaml.safe_load(file.read()))