Questions tagged [spancat]

7 questions
3
votes
0 answers

SpaCy Spancat Model is Not Making Predictions

I have trained a spancat model in spacy, it was trained successfully. Now when I run it on test data, it doesn't make any predictions. Here are the training results: This is how I am doing the predictions: for text in df['text_cleaned']: doc =…
3
votes
0 answers

Output multiple possible tags with spaCy spancat

The problem I'm working on involves span categorisation with spaCy, however some of the tags are ambiguous, e.g. span1 => 60% tag1, 40% tag2 I'm trying to figure out if there is a way to get Spacy's output to capture this ambiguity. I have been…
alex
  • 31
  • 2
1
vote
1 answer

Why do I need to specify vectors (en_core_web_lg) in spacy config file when I run model training using blank model?

Here is the start of my config file: # This is an auto-generated partial config. To use it with 'spacy train' # you can run spacy init fill-config to auto-fill all default settings: # python -m spacy init fill-config ./base_config.cfg…
SteveS
  • 3,789
  • 5
  • 30
  • 64
0
votes
0 answers

E893 Could not find function 'spacy.MLflowLogger.v2'

I'm training a Spacy CLI spancat model. I'm trying to log the parameters and scores using ML flow. I added the following to the config file, but I'm getting an error message. This is the Spacy version I have: spaCy version 3.6.1 My code:…
cps
  • 13
  • 4
0
votes
1 answer

SpaCy SpanCategorizer - zero score using Span Ruler

I am using the below preprocessing script to create annotations from my pattern which the model will then be trained on. Although data debug evaluates all data as valid and containing annotated spans, the model will not train on it and the scorer…
GOONhoon
  • 55
  • 6
0
votes
0 answers

how to add weightage to spacy spans?

Let's say I'm adding specific food product separated by commas. Eg : The ingredients in tomato soup is tomatoes, salt, pepper. You need to heat the tomatoes till it smells like burnt apples. Now by previous training it can detect 4 ingredients…
jason
  • 3,932
  • 11
  • 52
  • 123
0
votes
0 answers

spaCy SpanCategorizer performance improvement

dear community, How much has the spanCategorizer improved your models? I am curious. I have been using the textcat for categorizing text with a recall of about 85%. I wonder how much applying a spancategorizer could make a difference. I am trying to…
Paola
  • 47
  • 6