Skip to content
Discussion options

You must be logged in to vote

Hi, @aniyyanz08

Out of these labels i need DATE, EVENT, ORG, PERSON, TIME, WORK_OF_ART. Other entity labels from the above are not needed for my application.

You can safely ignore or filter the labels you don't need:

doc = nlp(SOME_TEXT)
ents = [ent for ent in list(doc.ents) if ent.label_ not in LIST_OF_FILTERS]

Also i need few other entity labels to be included to this.

You can check the multiple NER demo on how to do that. From here you can combine multiple components to include your new labels

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