Skip to content
Discussion options

You must be logged in to vote

@justinbhopper : could you check whether you got any warnings? I tried running your code, and got

...\language.py:482: UserWarning: [W030] Some entities could not be aligned in the text "I think he has schizophrenia." with entities "[(16, 29, 'CONDITION')]". Use spacy.gold.biluo_tags_from_offsets(nlp.make_doc(text), entities) to check the alignment. Misaligned entities (with BILUO tag '-') will be ignored during training.
gold = GoldParse(doc, **gold)

Which I think is caused by

("I think he has schizophrenia.", {"entities": [(16, 29, "CONDITION")]}),

starting at char index 15, not 16. If you happen to have the indices wrong for all CONDITION entities, those will be skipped, and your m…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ines
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
training Training and updating models feat / ner Feature: Named Entity Recognizer
3 participants