Entity no passing

Hi! I’m studying entities but it’s not passing from nlu to domain. config.yml language: en

pipeline:

  • name: WhitespaceTokenizer
  • name: RegexFeaturizer
  • name: LexicalSyntacticFeaturizer
  • name: CountVectorsFeaturizer
  • name: CountVectorsFeaturizer analyzer: char_wb min_ngram: 2 max_ngram: 4
  • name: DIETClassifier epochs: 100 constrain_similarities: true model_confidence: linear_norm

nlu.yml

stories.yml

  • story: greet and subscribe steps:
    • intent: greet
    • action: utter_greet
    • intent: subscribe # se a intenção for a subscrição
    • action: newsletter_form #inicia o formulário
    • active_loop: newsletter_form #indica que o formulário está ativo
    • active_loop: null #desativa o formulário
    • action: utter_subscribed #resposta com o email e frequência

domain.yml forms: newsletter_form: #envia a resposta utter_ask_email, para receber o primeiro slot #agora o slot será preenchido pro uma entidade = email email: - type: from_entity entity: email frequency: - type: from_text

When I put the email in intent, it doesn’t go to the domain

@RodrigoLima You’re missing entity annotations in your nlu intent examples. For example, you could rewrite this as:

intent: inform_email 
examples: |
    - Meu email é [example@example.com]("email")
    - [random@example.com]{"entity": "email"}
    - Please send it to [anything@example.com]("email")
    - Email é [something@example.com]("email")

The solution: nlu:

  • intent: inform_email examples: |
    • Meu email é [asd@gmail.com]{“entity":“email”,“value”:"asd@gmail.com”}
    • [random@example.com]{“entity”:“email”,“value”:“random@example”}
    • Please send it to [anything@example.com]{“entity”:“email”,“value”:“anything@example”}
    • Email é [something@example.com]{“entity”:“email”,“value”:“something@example”}

domain intents:

  • inform_email: use_entities: -email
  • inform_frequency

now it´s ok