Promptify icon indicating copy to clipboard operation
Promptify copied to clipboard

Relation_extraction.jinja not working

Open kartikay24 opened this issue 2 years ago • 2 comments

As mentioned in the code I executed the code and downloaded everything from requirements.txt other codes are working but

Code for Relation Extraction

result= nlp_prompter.fit('relation_extraction.jinja', 
                                   domain = 'clinical',
                                   # examples = [prompt_examples[0]],
                                   text_input  = sent)
print(result['text'])

gives the error "TemplateNotFound". What should I do?

kartikay24 avatar Apr 10 '23 09:04 kartikay24

Hi, did you install it from GitHub directly?

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

monk1337 avatar Apr 10 '23 13:04 monk1337

Hi, @monk1337 . Yes, this worked.

Is there any way for getting the same relations every time we execute the code because right now on every execution the relations extracted are different?

kartikay24 avatar Apr 12 '23 10:04 kartikay24