Which Entity Extractor to use to work with both lookup tables and also assign groups to entities

I need to assign groups in my entity, But at present roles and groups can only be used using DIETClassifier or CRFEntityExtractor. At the same time I also need to use lookup tables which are only supported by RegexEntityExtractor.

Please help me understand which entity extractor to use to work with both lookup tables and also assign groups to entities.

1 Like

@dakshvar22

@nik202

@MatthiasLeimeister

@ChrisRahme

@naveensiwas DIETClassifier + RegexFeaturizer

Ref: https://github.com/RasaHQ/rasa-demo/blob/main/config.yml | https://github.com/RasaHQ/rasa-demo/tree/main/data/nlu/lookups

I go by Rasa Demo pipeline.

Actually I am using this pipeline

  - name: SpacyNLP
    model: "en_core_web_md"
    case_sensitive: False
  - name: SpacyTokenizer
  - name: SpacyFeaturizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: "char_wb"
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 150
    constrain_similarities: True
    entity_recognition: False
  - name: RegexEntityExtractor
    use_lookup_tables: True
    use_regexes: True
  - name: EntitySynonymMapper
  - name: ResponseSelector
    epochs: 100
    constrain_similarities: True
  - name: FallbackClassifier
    threshold: 0.3
    ambiguity_threshold: 0.1

@nik202 But I don’t see any use of entity groups or roles in this training data of rasa-demo repository.