NER and relation_extractor with transformer. #12284
-
Hello there,
While training getting error like
training is stuck
Guide me if I am doing anything wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @abhishekshingadiya. As I understand it, you've used Prodigy to annotate a dataset of spans and relations, following a custom annotation scheme. You've then taken the data from Prodigy (as the above JSONL) and attempted to convert that to the spaCy format using this parse_data.py file. Note that this You'll have to adjust this script to be applicable for your use-case. Then, you need to run |
Beta Was this translation helpful? Give feedback.
-
Additionally, if you want to train the
in your config. This will make the NER predictions available to the downstream relation extraction component, so it can use them to predict relations. Alternatively, you could train this in two steps, with two configs: 1 focusing only on the NER, and the second sourcing the trained NER model and then train the relation extraction. |
Beta Was this translation helpful? Give feedback.
Hi @abhishekshingadiya. As I understand it, you've used Prodigy to annotate a dataset of spans and relations, following a custom annotation scheme. You've then taken the data from Prodigy (as the above JSONL) and attempted to convert that to the spaCy format using this parse_data.py file.
Note that this
parse_data.py
script has not been implemented for general use. It's part of a very specific tutorial on gene annotations and biomolecular interactions. It uses variables likeSYMM_LABELS
andMAP_LABELS
that won't be relevant for your use-case. Further, at the end of the script it actually splits the dataset into train/dev/set datasets according to anarticle_id
inexample["meta"]["source"]
…