Hey there,
I am having a bit of an issue. I get “nlu_fallback” as primary response even if the correct respons is getting better confidence.
NLU model loaded. Type a message and press enter to parse it. Next message: hej { “text”: “hej”, “intent”: { “name”: “nlu_fallback”, “confidence”: 0.45817649364471436 }, “entities”: [], “intent_ranking”: [ { “name”: “nlu_fallback”, “confidence”: 0.45817649364471436 }, { “id”: 8107020950297172155, “name”: “greet”, “confidence”: 0.5418235063552856 },
I know that my threshold is probably too high (0.2). But I wonder how I could get this simple task so wrong. Any ideas?
Thanks, /Magnus
=====
My config file below.
language: “sv”
pipeline:
- name: SpacyNLP model: sv_pipeline
- name: SpacyTokenizer intent_tokenization_flag: False token_pattern: None
- name: SpacyFeaturizer
- name: RegexFeaturizer
- name: LexicalSyntacticFeaturizer features: - [low, title, upper, suffix2] # features for the word preceding the word being evaluated - [EOS, title, suffix5] # features for the word being evaluated - [prefix2] # features for the word following the word being evaluated
- name: CountVectorsFeaturizer
- name: CountVectorsFeaturizer analyzer: “char_wb” min_ngram: 1 max_ngram: 4
- name: RegexEntityExtractor
- name: DIETClassifier epochs: 100 embedding_dimension: 30 number_of_transformer_layers: 4 entity_recognition: False model_confidence: linear_norm constrain_similarities: True use_masked_language_model: True ranking_length: 5
- name: EntitySynonymMapper
- name: ResponseSelector epochs: 200 retrieval_intent: faq
- name: ResponseSelector retrieval_intent: chitchat scale_loss: false epochs: 100
- name: FallbackClassifier threshold: 0.7
policies:
- name: MemoizationPolicy max_history: 3
- name: TEDPolicy epochs: 100 max_history: 5 constrain_similarities: True model_confidence : linear_norm
- name: RulePolicy core_fallback_threshold: 0.2 core_fallback_action_name: action_default_fallback enable_fallback_prediction: True