Add two different entity rulers to the pipeline - spaCy v3.1 #9430
-
Hi all, I used to have two different entity rulers in v2.3.1, i.e. one base ruler, the other one is called composite ruler. For example, In the base ruler, I will have The composite ruler is built on top of the base ruler We wanted to upgrade to v3.1. However, I could not use the old method any more to add two different rulers, one after the other. I can only add 'entity_ruler' for the base rules, but when I try to add another 'entity_ruler', it complains that the 'entity_ruler' already exists. I understand that I may have to use custom components, but I still need the 'entity_ruler' class to load all the rules from the disk. Any comments on this? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can add two copies of the same component by specifying a different |
Beta Was this translation helpful? Give feedback.
You can add two copies of the same component by specifying a different
name
for at least one of them. See the double NER project for an example of this.