Skip to content
Discussion options

You must be logged in to vote

Could you try adding the component with the name "entity_ruler" and not "ruler", like this:

nlp.add_pipe("entity_ruler")

There's also a self-contained example of the entity ruler component in the docs here you can use for reference.

If that doesn't work, it looks to me like you've excluded some of the code you might be using. It's not clear to me how generate_rules should be working without seeing how you're calling the function and what might exist prior to that call. Could you include a more complete snippet of your code to help us figure out what the issue might be?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by polm
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 feat / pipeline Feature: Processing pipeline and components
3 participants