promptslab / Promptify

Prompt Engineering | Prompt Versioning | Use GPT or other prompt based models to get structured output. Join our discord for Prompt-Engineering, LLMs and other latest research
https://discord.gg/m88xfYMbK6
Apache License 2.0
3.11k stars 232 forks source link

relation_extraction.json is missing #79

Closed Zanejins closed 1 year ago

Zanejins commented 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!

Zanejins commented 1 year ago

I find this file. It is located in 'promptify/data/text2text/en/relation_extraction.json'.