Skip to content

How to mark identifiers like productid (AS12314_11) as entity ? #2553

Discussion options

You must be logged in to vote

spaCy's entity recognizer can be updated with more examples – either to detect more examples of an existing category (like PRODUCT) or to add a new custom category. Here are some resources to get you started:

If your product names follow a consistent scheme (for example, two letters plus 5 numbers), a rule-based approach might actually be a better place to start. Instead of using a statistical model, you'd use the Matcher to find entities in your text, and then add them to the doc.ents property. More info:

Replies: 3 comments

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
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
Converted from issue

This discussion was converted from issue #2553 on December 10, 2020 13:26.