Hello,
We have tried to manage how we can work with use_entities, but it does not seem to work as expected. If the entity(value) is matched in some other intent, it still affects next bot action, which results with fallback.
So if we have:
intents:
- test_number:
use_entities:
- number
slots:
number:
type: float
influence_conversation: true
min_value: 1
max_value: 10
nlu:
- intent: test_number
examples: |
- I want number [3]{"entity": "number"}
- Number [3]{"entity": "number"} please
- Give me [5]{"entity": "number"}
- I would like [6]{"entity": "number"}
- [8]{"entity": "number"} please, quick
- Only [5]{"entity": "number"} thank you
- I want [8]{"entity": "number"} please
- lookup: number
examples: |
- 5
- 8
- 6
- 3
using config
version: "2.0"
language: en
policies:
- name: AugmentedMemoizationPolicy
max_history: 6
- name: TEDPolicy
max_history: 6
epochs: 20
- name: RulePolicy
core_fallback_threshold: 0.4
core_fallback_action_name: action_core_fallback
pipeline:
- name: WhitespaceTokenizer
intent_tokenization_flag: true
intent_split_symbol: +
- name: RegexFeaturizer
- name: RegexEntityExtractor
- name: LexicalSyntacticFeaturizer
- name: CountVectorsFeaturizer
- name: CountVectorsFeaturizer
analyzer: char_wb
min_ngram: 1
max_ngram: 4
- name: DIETClassifier
epochs: 100
- name: EntitySynonymMapper
- name: ResponseSelector
epochs: 100
- name: FallbackClassifier
threshold: 0.7
ambiguity_threshold: 0.1
Then if the number occurs in some other intent in chat(stories only) with the bot, for example user writes How are you 8 which is intent mood - see the intentionally added ending number here - mood intent has not defined use_entities (even if we use ignore_entities with this specific entity), it did match the right intent mood + slot number was filled with 8, but the bot does not know what action do next, it does fallback, which is wrong, it should not affect the story flow.
Sometimes it even matches the intent test_number because of the entity value on the end.
Can you please tell what could be wrong? Thanks.