I have DIETClassifier in my pipeline and since lookup table works only with RegexFeaturizer OR RegexEntityExtractor, I added RegexEntityExtractor into the pipeline, But when I run RASA it always gives me an error due to conflict of entities extracted from two extractor.
I can not remove my DIETClassifier from pipeline, because I have used entities groups and it is only supported by the DIETClassifier and CRFEntityExtractor.
So I choose to go with RegexFeaturizer even after providing countable number of examples, but still unable to extract entities using lookup table.
Here is pipeline components :
language: en
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
- name: EntitySynonymMapper
- name: ResponseSelector
epochs: 100
constrain_similarities: true
- name: FallbackClassifier
threshold: 0.8
ambiguity_threshold: 0.1
nlu.yml file looks like this
version: "2.0"
nlu:
- intent: app_filter
examples: |
- filter in CP Application
- filter in CP
- filters available in CP Application
- filters available in CP
- total filters available in CP Application
- total filters available in CP
- what is filter
- what are filter
- what is purpose of a filter
- what is the purpose of a filter
- What is [Card Model]{"entity": "filterName", "group": "group_filter_name"} ?
- What is [Card Model]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- What is [Card Model]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- What are [Card Model]{"entity": "filterName", "group": "group_filter_name"} ?
- What are [Card Model]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- What are [Card Model]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- How many [Card Model]{"entity": "filterName", "group": "group_filter_name"} ?
- How many [Card Model]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- How many [Card Model]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- [Card Model]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- [Card Model]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- Total [Card Model]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- Total [Card Model]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- What is [Device Version]{"entity": "filterName", "group": "group_filter_name"} ?
- What is [Device Version]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- What is [Device Version]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- What are [Device Version]{"entity": "filterName", "group": "group_filter_name"} ?
- What are [Device Version]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- What are [Device Version]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- How many [Device Version]{"entity": "filterName", "group": "group_filter_name"} ?
- How many [Device Version]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- How many [Device Version]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- [Device Version]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- [Device Version]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- Total [Device Version]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- Total [Device Version]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- What is [Product Type]{"entity": "filterName", "group": "group_filter_name"} ?
- What is [Product Type]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- What is [Product Type]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- What are [Product Type]{"entity": "filterName", "group": "group_filter_name"} ?
- What are [Product Type]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- What are [Product Type]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- How many [Product Type]{"entity": "filterName", "group": "group_filter_name"} ?
- How many [Product Type]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- How many [Product Type]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- [Product Type]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- [Product Type]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- Total [Product Type]{"entity": "filterName", "group": "group_filter_name"} in CP ?
- Total [Product Type]{"entity": "filterName", "group": "group_filter_name"} in CP Application ?
- lookup: filterName
examples: |
- Card Type
- Chassis Speed
- Device Model
- Device Type
- Device Usage
- Market Type
- Node Type
- Port Speed
- Optic Type
Can anyone please help me on this issue.