Closed Zanejins closed 1 year ago
I run the follow code
import json relation_examples = json.load(open("examples/data/relation_extraction.json",'r')) print("Got", len(relation_examples), "examples.") prompt_examples = [] for sample in relation_examples: prompt_examples.append((sample['text'], sample['labels'])) print()
then I met this error "No such file or directory: 'examples/data/relation_extraction.json'".
I checked your code, I can't find this file. can you give one example for relation_extraction.json?
Thank you!
I find this file. It is located in 'promptify/data/text2text/en/relation_extraction.json'.
I run the follow code
then I met this error "No such file or directory: 'examples/data/relation_extraction.json'".
I checked your code, I can't find this file. can you give one example for relation_extraction.json?
Thank you!