Skip to content

Trained NER Model Not Labeling Custom Labels #9770

Discussion options

You must be logged in to vote

Sorry you're having trouble with this. It's been a while since I trained a v2 model, but your code doesn't have any obvious issues to me - for example, you're calling add_label properly. Could you provide a complete script with example data that reproduces the problem we could check?

Besides your problem with training, a couple of other things...

  1. Is there a particular reason you're using v2? v3 has been out for most of this year, and training in v3 is designed to avoid subtle problems like whatever's going on here.
  2. For phone numbers in particular, I usually see people use a regex to match them rather than an NER model because the format is very constrained. It looks like you're trying to…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@matthewbriancoleman
Comment options

@polm
Comment options

@matthewbriancoleman
Comment options

Answer selected by polm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / ner Feature: Named Entity Recognizer v2 spaCy v2.x
2 participants