Skip to content

Age as date? #8944

Answered by polm
cnayan asked this question in Help: Model Advice
Aug 12, 2021 · 1 comment
Discussion options

You must be logged in to vote

The spaCy NER models are not rule based, and you cannot "tweak" them. It's not like a function in code where you can go in and change a line.

The models have a bunch of numbers they use to make decisions, and we give them example documents and they learn the optimal numbers to reproduce the labels we put on the example documents.

For English we use OntoNotes for the training data. Looking at OntoNotes documents it looks like they use the DATE label for dates or periods of time, so that's how the spaCy models work. (in the pdf, look for "absolute or relative dates or periods")

If you want to label things as AGE, you can try training your own model, or using rules to re-label DATE entities …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by svlandeg
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
2 participants