LLM Spacy NER with custom dataset #440
Unanswered
Project-NSE
asked this question in
Q&A
Replies: 1 comment
-
Hi! I think this is simply because the Dolly 7b isn't all that powerful/accurate. When running this with the
So basically you'll need to either tune the prompt to see whether you can get Dolly to output good predictions, or use a larger/different model. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on Named Entity Recognition task using large language model. I used SpaCy for that. I want to build a custom dataset. For testing purpose I created a 2 sentences dataset. The dataset is look like (name of the file ner_example1.yml)
Now I configure the config.cfg file as required
The python script to run all those is
I did not get the proper output for the print statement. It return me an empty array.
It should return [('advil', 'Medicine')]
The output is as follows
![Stackoverflow](https://private-user-images.githubusercontent.com/145517206/304498765-0607ad9a-498a-42df-bfd2-a3b140f4cb96.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NjM5NjcsIm5iZiI6MTczOTY2MzY2NywicGF0aCI6Ii8xNDU1MTcyMDYvMzA0NDk4NzY1LTA2MDdhZDlhLTQ5OGEtNDJkZi1iZmQyLWEzYjE0MGY0Y2I5Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQyMzU0MjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNjA0ZWI4YmEzOGRlNzIxODE3MDBlNzRjNmNkMTQ2NTM0NzU1NTg0MWNjOTFhNWZmYTQzNTk2YmMwNWQ4YTU1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.YUtGsH5HpU1KUgGMp2CX3YZhpvkbNcW4fdFf0J6gh1w)
Beta Was this translation helpful? Give feedback.
All reactions