Promptify icon indicating copy to clipboard operation
Promptify copied to clipboard

jinja2.exceptions.TemplateNotFound: relation_extraction.jinja

Open Zanejins opened this issue 2 years ago • 0 comments

First I install this promptify using the below command

pip3 install git+https://github.com/promptslab/Promptify.git

Then, I want to use the relation extraction model by the below code

 result = nlp_prompter.fit('relation_extraction.jinja',
                              domain='clinical',
                              text_input=sentence)

However, I met this error 'jinja2.exceptions.TemplateNotFound: relation_extraction.jinja'

I debuged and found that there is really no such model, as showed in the below figure.

image

What I should do to solve this problem. Thank you!

Zanejins avatar Jun 06 '23 15:06 Zanejins