Hello, I’m trying to add features to the ner_crf. By looking at the source code i noticed that features are defined in ‘function_dict’. To add to this dictionary additional features, I created a new component (called it Crf) which inherits from ‘crf_entity_extractor.CRFEntityExtractor’. Then I referenced this component in the rasa_config.yml file. When I run the pipeline I notice that rasa_nlu.extractors.crf_entity_extractor.CRFEntityExtractor is being called instead. Can you tell me what I might be doing wrong?
The custom component is:
class Crf(crf_entity_extractor.CRFEntityExtractor): function_dict = crf_entity_extractor.CRFEntityExtractor.function_dict
modifications on function_dict are reflected on the process. For example, something like this would work
function_dict['email'] = lambda doc: True if '@' in doc and '.' in doc else False
However, if i attempt to override a method from CRFEntityExtractor (e.g. process, or _from_text_to_crf) in my custom class (Crf), the pipeline will still call these methods from CRFEntityExtractor. What can i do to fix this?