I am trying to add a custom entity extractor to extract entities (lookup) with incorrect spellings. However, when I add that custom extractor inside pipelines configuration, right below SpactEntityExtractor and CRFEntityExtractor, only custom extractor is working and default two extractors are not working. However, if I remove custom extractor, I am able to get entities from CRF and Spacy.
Did I miss something or all three extractors are supposed to work?
It was my mistake I guess. I didn’t know the position of pipelines matter. My custom component was after CRF and spacy’s and once I moved it before them, it started working. I am not sure if that was the case either. Sorry for the late reply though. Thank you!
Yes, I did the exact same thing but somehow it didn’t work.
My custom component is defined as below. It takes lookup name and autocorrect the spelling mistake in the entities. For example I have horoscope lookup, so if someone types arias. I will make a autocorrected noun to be ‘aries’. I am trying to send the name of lookups through the params in config and it is not working.
What exactly is not working? Do you get any error? If yes, please paste it here.
Is the path to your custom component in the config.yml correct? Are you sure it is called? Would be great if you could paste some log here. It also might help to start your bot in debug mode --debug to get more log statements.
The defaults you define in your component and the configuration parameters from the config.yml file are all written to self.component_config in the init of the component. Can you adapt your code and check if it is working?
I have been constantly conversing questions. I had next query.
When you update something in your custom component and you head towards training. The “rasa train” command throws
“Nothing changed. You can use the old model stored at '/var/www/ek-assistant/models/20191210-154804.tar.gz”
So, I need to force update to reflect the changes, right? Currently, I either delete all models and retrain or do “rasa train --force”. Is there any other way?