Simple Spancat model fails to train with Spanruler annotations #12509
Replies: 2 comments 4 replies
-
Bump - tried a different series of ngrams in the suggester (just to make sure they aren't recognised as different lengths) but nothing as of yet to make this work. |
Beta Was this translation helpful? Give feedback.
-
Hey! So I looked at your code, output and config file in detail and nothing jumps out at me. It's certainly weird though. Can you share the exact commands you ran for One other suggestion is to run the training and evaluate on the training dataset. So you'd have both |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was reading through the example SpanRuler project as well as ljvmiranda921's blog post on SpanRuler but decided to train my sample model using the spanruler annotations rather than adding the ruler to a pretrained model:
I annotated a sample dataset using the below preprocessing script and validated the data in
debug data
. I split the training data intotraining
anddev
folders, adjust my ngram suggester to cover the relevant span lengths fromdebug data
and began my training. However, all the training scorer metrics are 0.00. I have spent about 20 hours on this in this week alone and cannot figure out why this is happening.Preprocessing, data debug, training evaluation, sample displacy render and config.cfg all below. Thanks for any help!
Preprocessing to save annotations to doc.spans["ruler"]:
Pre-training displacy render:
Data debug:
Training evaluation:
config.cfg:
Beta Was this translation helpful? Give feedback.
All reactions