i have a sample of intent “give_name”, basicaly its just “Nama saya <PERSON_NAME>” which is <PERSON_NAME> is entitity of person_name , but when i test it “Nama Saya Atlus” , Atlus is not exctracted into *person_name just like this message :
Your input -> nama saya Atlus
2021-11-15 08:18:21 DEBUG rasa.core.lock_store - Issuing ticket for conversation '290f167be39543868c6d513f4fa2bb53'.
2021-11-15 08:18:21 DEBUG rasa.core.lock_store - Acquiring lock for conversation '290f167be39543868c6d513f4fa2bb53'.
2021-11-15 08:18:21 DEBUG rasa.core.lock_store - Acquired lock for conversation '290f167be39543868c6d513f4fa2bb53'.
2021-11-15 08:18:21 DEBUG rasa.core.tracker_store - Recreating tracker for id '290f167be39543868c6d513f4fa2bb53'
2021-11-15 08:18:21 DEBUG rasa.nlu.classifiers.diet_classifier - There is no trained model for 'ResponseSelector': The component is either not trained or didn't receive enough training data.
2021-11-15 08:18:21 DEBUG rasa.nlu.selectors.response_selector - Adding following selector key to message property: default
2021-11-15 08:18:21 DEBUG rasa.core.processor - Received user message 'nama saya Atlus' with intent '{'id': 2293259264165238121, 'name': 'give_name', 'confidence': 0.9999990463256836}' and entities '[]'
2021-11-15 08:18:21 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 11 events.
2021-11-15 08:18:21 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: ask_status_vaccination | previous action name: action_listen
[state 2] user intent: ask_status_vaccination | previous action name: vaccination_form | active loop: {'name': 'vaccination_form'}
[state 3] user text: nama saya Atlus | previous action name: action_listen | active loop: {'name': 'vaccination_form'}
2021-11-15 08:18:21 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-11-15 08:18:21 DEBUG rasa.core.policies.rule_policy - Predicted loop 'vaccination_form'.
2021-11-15 08:18:21 DEBUG rasa.core.policies.ensemble - Made prediction using user intent.
2021-11-15 08:18:21 DEBUG rasa.core.policies.ensemble - Added `DefinePrevUserUtteredFeaturization(False)` event.
2021-11-15 08:18:21 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_RulePolicy.
2021-11-15 08:18:21 DEBUG rasa.core.processor - Predicted next action 'vaccination_form' with confidence 1.00.
2021-11-15 08:18:21 DEBUG rasa.core.actions.forms - Validating user input 'UserUttered(text: nama saya Atlus, intent: give_name, use_text_for_featurization: False)'.
2021-11-15 08:18:21 DEBUG rasa.core.actions.forms - Trying to extract requested slot 'patient_name' ...
2021-11-15 08:18:21 DEBUG rasa.core.actions.forms - Got mapping '{'type': 'from_entity', 'entity': 'person_name'}'
2021-11-15 08:18:21 DEBUG rasa.core.actions.forms - Failed to extract requested slot 'patient_name'
nlu.yml ( a portion about give_name intents)
- intent: give_name
examples: |
- nama saya [Ucok](person_name)
- nama saya [wira](person_name)
- nama saya [agus](person_name)
- nama saya [budi](person_name)
- nama saya [acong](person_name)
- nama saya [sitorus](person_name)
- nama saya [situpea](person_name)
- nama gw [Bangun](person_name)
- nama gw [wira](person_name)
- nama gw [agus](person_name)
- nama gw [budi](person_name)
- nama gw [acong](person_name)
- nama gw [sitorus](person_name)
- nama gw [situpea](person_name)
- saya adalah [Situpea](person_name)
- nama: [Ucok](person_name)
- nama: [wira](person_name)
- nama: [agus](person_name)
- nama: [budi](person_name)
- nama: [acong](person_name)
- nama: [sitorus](person_name)
- nama: [situpea](person_name)
- saya [Ucok](person_name)
- saya [wira](person_name)
- saya [agus](person_name)
- saya [budi](person_name)
- saya [acong](person_name)
- saya [sitorus](person_name)
- saya [situpea](person_name)
- nama saya [Kayleigh Lebsack Jr.] (person_name)
- nama saya [Dr. Trenton Mayert] (person_name)
- nama saya [Amya Gerhold] (person_name)
- nama saya [Eudora Torp] (person_name)
- nama saya [Dr. Ned Jaskolski PhD] (person_name)
- nama saya [Dessie Schinner] (person_name)
- nama saya [Cary Turcotte] (person_name)
- nama saya [Bertram Cassin] (person_name)
- nama saya [Prof. Jayden Pollich] (person_name)
- nama saya [Nayeli Swift PhD] (person_name)
- nama saya [Anna Reinger] (person_name)
- nama saya [Therese Kutch] (person_name)
- nama saya [Aileen Koss MD] (person_name)
- nama saya [Aiyana Herzog] (person_name)
- nama saya [Pansy Ratke Jr.] (person_name)
- nama saya [Tremayne Will MD] (person_name)
- nama saya [Jamil Kub] (person_name)
- nama saya [Ruby Kuhn] (person_name)
- nama saya [Laurine Jast] (person_name)
- nama saya [Susie Pfannerstill] (person_name)
- nama saya [Gabriella Gaylord DVM] (person_name)
- nama saya [Billy Kerluke MD] (person_name)
- nama saya [Gaston Bruen] (person_name)
- nama saya [Ramiro Zemlak II] (person_name)
- nama saya [Montana Jacobs] (person_name)
- nama saya [Colt Hayes] (person_name)
- nama saya [Esther Gusikowski MD] (person_name)
- nama saya [Nora Wehner] (person_name)
- nama saya [Brendan Mertz] (person_name)
- nama saya [Mr. Mackenzie Altenwerth II] (person_name)
- nama saya [Ms. Rhoda Kreiger Sr.] (person_name)
- nama saya [Mr. Damian Schumm] (person_name)
- nama saya [Rosalyn Swaniawski Sr.] (person_name)
- nama saya [Mikayla Heaney] (person_name)
- nama saya [Alvis Leffler] (person_name)
- nama saya [Lenna Turner] (person_name)
- nama saya [Itzel Berge] (person_name)
- nama saya [Wilson Rolfson] (person_name)
- nama saya [Tracey Weber] (person_name)
- nama saya [Dr. Jordyn Pacocha PhD] (person_name)
- nama saya [Tiffany Rowe DDS] (person_name)
- nama saya [Joshuah Hansen] (person_name)
- nama saya [Donato Effertz] (person_name)
- nama saya [Prof. Daphne Schaefer] (person_name)
- nama saya [Lourdes Wolf IV] (person_name)
- nama saya [Rhea Klein III] (person_name)
- nama saya [Dr. Juanita Ledner I] (person_name)
- nama saya [Regan Ondricka Sr.] (person_name)
- nama saya [Aron Weber] (person_name)
- nama saya [Gwendolyn Grant] (person_name)
- nama saya [Julia Dickinson] (person_name)
- nama saya [Dr. Kathlyn Jenkins III] (person_name)
- nama saya [Mr. Hayley Crooks] (person_name)
- nama saya [Dr. Orval Kautzer] (person_name)
- nama saya [Lolita Zieme] (person_name)
- nama saya [Demetris Lakin] (person_name)
- nama saya [Prof. Vallie Kuhic] (person_name)
- nama saya [Mr. Dayton Bergnaum DVM] (person_name)
- nama saya [Braulio Romaguera] (person_name)
- nama saya [Meghan Heller] (person_name)
- nama saya [Mr. Russell Wunsch III] (person_name)
- nama saya [Mauricio Rippin] (person_name)
- nama saya [Bertrand Barrows] (person_name)
- nama saya [Dr. Trevor Daniel] (person_name)
- nama saya [Orval Wisoky] (person_name)
- nama saya [Danny Pagac MD] (person_name)
- nama saya [Gladyce Spinka] (person_name)
- nama saya [Dr. Noel Weber] (person_name)
- nama saya [Jackson Kub] (person_name)
- nama saya [Simone Hilpert] (person_name)
- nama saya [Ryan Jacobi] (person_name)
- nama saya [Miss Bert Toy] (person_name)
- nama saya [Dr. Giovanny Farrell] (person_name)
- nama saya [Daija Ferry] (person_name)
- nama saya [Ms. Haven Halvorson] (person_name)
- nama saya [Domenico Johns] (person_name)
- nama saya [Jamel Satterfield Jr.] (person_name)
- nama saya [Heidi Gerhold] (person_name)
- nama saya [Larry Balistreri] (person_name)
- nama saya [Mr. Brice Mraz Sr.] (person_name)
- nama saya [Thalia Legros] (person_name)
- nama saya [Rhea Erdman] (person_name)
- nama saya [Laurel Treutel] (person_name)
- nama saya [Prof. Jarod Adams] (person_name)
- nama saya [Micheal Ernser] (person_name)
- nama saya [Mr. Leland Pacocha] (person_name)
- nama saya [Rene Quitzon] (person_name)
- nama saya [Macy Medhurst] (person_name)
- nama saya [Isaac Wehner] (person_name)
- nama saya [Miss Margaretta Koelpin Sr.] (person_name)
- nama saya [Miss Cassidy Nader V] (person_name)
- nama saya [Alfonzo Lindgren PhD] (person_name)
- nama saya [Cory Anderson] (person_name)
- nama saya [Terence Welch DDS] (person_name)
- nama saya [Emmet Luettgen] (person_name)
- nama saya [Payton Marvin V] (person_name)
- nama saya [Prof. Adrian Johnston IV] (person_name)
- nama saya [Miss Ocie Murazik V] (person_name)
- nama saya [Erick Mertz] (person_name)
- nama saya [Ms. Loyce Wisozk I] (person_name)
- nama gw [Kayleigh Lebsack Jr.] (person_name)
- nama gw [Dr. Trenton Mayert] (person_name)
- nama gw [Amya Gerhold] (person_name)
- nama gw [Eudora Torp] (person_name)
- nama gw [Dr. Ned Jaskolski PhD] (person_name)
- nama gw [Dessie Schinner] (person_name)
- nama gw [Cary Turcotte] (person_name)
- nama gw [Bertram Cassin] (person_name)
- nama gw [Prof. Jayden Pollich] (person_name)
- nama gw [Nayeli Swift PhD] (person_name)
- nama gw [Anna Reinger] (person_name)
- nama gw [Therese Kutch] (person_name)
- nama gw [Aileen Koss MD] (person_name)
- nama gw [Aiyana Herzog] (person_name)
- nama gw [Pansy Ratke Jr.] (person_name)
- nama gw [Tremayne Will MD] (person_name)
- nama gw [Jamil Kub] (person_name)
- nama gw [Ruby Kuhn] (person_name)
- nama gw [Laurine Jast] (person_name)
- nama gw [Susie Pfannerstill] (person_name)
- nama gw [Gabriella Gaylord DVM] (person_name)
- nama gw [Billy Kerluke MD] (person_name)
- nama gw [Gaston Bruen] (person_name)
- nama gw [Ramiro Zemlak II] (person_name)
- nama gw [Montana Jacobs] (person_name)
- nama gw [Colt Hayes] (person_name)
- nama gw [Esther Gusikowski MD] (person_name)
- nama gw [Nora Wehner] (person_name)
- nama gw [Brendan Mertz] (person_name)
- nama gw [Mr. Mackenzie Altenwerth II] (person_name)
- nama gw [Ms. Rhoda Kreiger Sr.] (person_name)
- nama gw [Mr. Damian Schumm] (person_name)
- nama gw [Rosalyn Swaniawski Sr.] (person_name)
- nama gw [Mikayla Heaney] (person_name)
- nama gw [Alvis Leffler] (person_name)
- nama gw [Lenna Turner] (person_name)
- nama gw [Itzel Berge] (person_name)
- nama gw [Wilson Rolfson] (person_name)
- nama gw [Tracey Weber] (person_name)
- nama gw [Dr. Jordyn Pacocha PhD] (person_name)
- nama gw [Tiffany Rowe DDS] (person_name)
- nama gw [Joshuah Hansen] (person_name)
- nama gw [Donato Effertz] (person_name)
- nama gw [Prof. Daphne Schaefer] (person_name)
- nama gw [Lourdes Wolf IV] (person_name)
- nama gw [Rhea Klein III] (person_name)
- nama gw [Dr. Juanita Ledner I] (person_name)
- nama gw [Regan Ondricka Sr.] (person_name)
- nama gw [Aron Weber] (person_name)
- nama gw [Gwendolyn Grant] (person_name)
- nama gw [Julia Dickinson] (person_name)
- nama gw [Dr. Kathlyn Jenkins III] (person_name)
- nama gw [Mr. Hayley Crooks] (person_name)
- nama gw [Dr. Orval Kautzer] (person_name)
- nama gw [Lolita Zieme] (person_name)
- nama gw [Demetris Lakin] (person_name)
- nama gw [Prof. Vallie Kuhic] (person_name)
- nama gw [Mr. Dayton Bergnaum DVM] (person_name)
- nama gw [Braulio Romaguera] (person_name)
- nama gw [Meghan Heller] (person_name)
- nama gw [Mr. Russell Wunsch III] (person_name)
- nama gw [Mauricio Rippin] (person_name)
- nama gw [Bertrand Barrows] (person_name)
- nama gw [Dr. Trevor Daniel] (person_name)
- nama gw [Orval Wisoky] (person_name)
- nama gw [Danny Pagac MD] (person_name)
- nama gw [Gladyce Spinka] (person_name)
- nama gw [Dr. Noel Weber] (person_name)
- nama gw [Jackson Kub] (person_name)
- nama gw [Simone Hilpert] (person_name)
- nama gw [Ryan Jacobi] (person_name)
- nama gw [Miss Bert Toy] (person_name)
- nama gw [Dr. Giovanny Farrell] (person_name)
- nama gw [Daija Ferry] (person_name)
- nama gw [Ms. Haven Halvorson] (person_name)
- nama gw [Domenico Johns] (person_name)
- nama gw [Jamel Satterfield Jr.] (person_name)
- nama gw [Heidi Gerhold] (person_name)
- nama gw [Larry Balistreri] (person_name)
- nama gw [Mr. Brice Mraz Sr.] (person_name)
- nama gw [Thalia Legros] (person_name)
- nama gw [Rhea Erdman] (person_name)
- nama gw [Laurel Treutel] (person_name)
- nama gw [Prof. Jarod Adams] (person_name)
- nama gw [Micheal Ernser] (person_name)
- nama gw [Mr. Leland Pacocha] (person_name)
- nama gw [Rene Quitzon] (person_name)
- nama gw [Macy Medhurst] (person_name)
- nama gw [Isaac Wehner] (person_name)
- nama gw [Miss Margaretta Koelpin Sr.] (person_name)
- nama gw [Miss Cassidy Nader V] (person_name)
- nama gw [Alfonzo Lindgren PhD] (person_name)
- nama gw [Cory Anderson] (person_name)
- nama gw [Terence Welch DDS] (person_name)
- nama gw [Emmet Luettgen] (person_name)
- nama gw [Payton Marvin V] (person_name)
- nama gw [Prof. Adrian Johnston IV] (person_name)
- nama gw [Miss Ocie Murazik V] (person_name)
- nama gw [Erick Mertz] (person_name)
- nama gw [Ms. Loyce Wisozk I] (person_name)
- nama: [Kayleigh Lebsack Jr.] (person_name)
- nama: [Dr. Trenton Mayert] (person_name)
- nama: [Amya Gerhold] (person_name)
- nama: [Eudora Torp] (person_name)
- nama: [Dr. Ned Jaskolski PhD] (person_name)
- nama: [Dessie Schinner] (person_name)
- nama: [Cary Turcotte] (person_name)
- nama: [Bertram Cassin] (person_name)
- nama: [Prof. Jayden Pollich] (person_name)
- nama: [Nayeli Swift PhD] (person_name)
- nama: [Anna Reinger] (person_name)
- nama: [Therese Kutch] (person_name)
- nama: [Aileen Koss MD] (person_name)
- nama: [Aiyana Herzog] (person_name)
- nama: [Pansy Ratke Jr.] (person_name)
- nama: [Tremayne Will MD] (person_name)
- nama: [Jamil Kub] (person_name)
- nama: [Ruby Kuhn] (person_name)
- nama: [Laurine Jast] (person_name)
- nama: [Susie Pfannerstill] (person_name)
- nama: [Gabriella Gaylord DVM] (person_name)
- nama: [Billy Kerluke MD] (person_name)
- nama: [Gaston Bruen] (person_name)
- nama: [Ramiro Zemlak II] (person_name)
- nama: [Montana Jacobs] (person_name)
- nama: [Colt Hayes] (person_name)
- nama: [Esther Gusikowski MD] (person_name)
- nama: [Nora Wehner] (person_name)
- nama: [Brendan Mertz] (person_name)
- nama: [Mr. Mackenzie Altenwerth II] (person_name)
- nama: [Ms. Rhoda Kreiger Sr.] (person_name)
- nama: [Mr. Damian Schumm] (person_name)
- nama: [Rosalyn Swaniawski Sr.] (person_name)
- nama: [Mikayla Heaney] (person_name)
- nama: [Alvis Leffler] (person_name)
- nama: [Lenna Turner] (person_name)
- nama: [Itzel Berge] (person_name)
- nama: [Wilson Rolfson] (person_name)
- nama: [Tracey Weber] (person_name)
- nama: [Dr. Jordyn Pacocha PhD] (person_name)
- nama: [Tiffany Rowe DDS] (person_name)
- nama: [Joshuah Hansen] (person_name)
- nama: [Donato Effertz] (person_name)
- nama: [Prof. Daphne Schaefer] (person_name)
- nama: [Lourdes Wolf IV] (person_name)
- nama: [Rhea Klein III] (person_name)
- nama: [Dr. Juanita Ledner I] (person_name)
- nama: [Regan Ondricka Sr.] (person_name)
- nama: [Aron Weber] (person_name)
- nama: [Gwendolyn Grant] (person_name)
- nama: [Julia Dickinson] (person_name)
- nama: [Dr. Kathlyn Jenkins III] (person_name)
- nama: [Mr. Hayley Crooks] (person_name)
- nama: [Dr. Orval Kautzer] (person_name)
- nama: [Lolita Zieme] (person_name)
- nama: [Demetris Lakin] (person_name)
- nama: [Prof. Vallie Kuhic] (person_name)
- nama: [Mr. Dayton Bergnaum DVM] (person_name)
- nama: [Braulio Romaguera] (person_name)
- nama: [Meghan Heller] (person_name)
- nama: [Mr. Russell Wunsch III] (person_name)
- nama: [Mauricio Rippin] (person_name)
- nama: [Bertrand Barrows] (person_name)
- nama: [Dr. Trevor Daniel] (person_name)
- nama: [Orval Wisoky] (person_name)
- nama: [Danny Pagac MD] (person_name)
- nama: [Gladyce Spinka] (person_name)
- nama: [Dr. Noel Weber] (person_name)
- nama: [Jackson Kub] (person_name)
- nama: [Simone Hilpert] (person_name)
- nama: [Ryan Jacobi] (person_name)
- nama: [Miss Bert Toy] (person_name)
- nama: [Dr. Giovanny Farrell] (person_name)
- nama: [Daija Ferry] (person_name)
- nama: [Ms. Haven Halvorson] (person_name)
- nama: [Domenico Johns] (person_name)
- nama: [Jamel Satterfield Jr.] (person_name)
- nama: [Heidi Gerhold] (person_name)
- nama: [Larry Balistreri] (person_name)
- nama: [Mr. Brice Mraz Sr.] (person_name)
- nama: [Thalia Legros] (person_name)
- nama: [Rhea Erdman] (person_name)
- nama: [Laurel Treutel] (person_name)
- nama: [Prof. Jarod Adams] (person_name)
- nama: [Micheal Ernser] (person_name)
- nama: [Mr. Leland Pacocha] (person_name)
- nama: [Rene Quitzon] (person_name)
- nama: [Macy Medhurst] (person_name)
- nama: [Isaac Wehner] (person_name)
- nama: [Miss Margaretta Koelpin Sr.] (person_name)
- nama: [Miss Cassidy Nader V] (person_name)
- nama: [Alfonzo Lindgren PhD] (person_name)
- nama: [Cory Anderson] (person_name)
- nama: [Terence Welch DDS] (person_name)
- nama: [Emmet Luettgen] (person_name)
- nama: [Payton Marvin V] (person_name)
- nama: [Prof. Adrian Johnston IV] (person_name)
- nama: [Miss Ocie Murazik V] (person_name)
- nama: [Erick Mertz] (person_name)
- nama: [Ms. Loyce Wisozk I] (person_name)
rules.yml
- rule: activate vaccination form
steps:
- intent: ask_status_vaccination
- action: vaccination_form
- active_loop: vaccination_form
- rule: Submit form
condition:
# Condition that form is active.
- active_loop: vaccination_form
steps:
- action: vaccination_form
- active_loop: null
- slot_was_set:
- requested_slot: null
# The action we want to run when the form is submitted.
- action: utter_thanks
domain.yml
version: '2.0'
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
intents:
- greet
- affirm
- out_of_context
- goodbye
- deny
- give_name
- ask_status_vaccination
entities:
- person_name
slots:
patient_name:
type: text
influence_conversation: false
forms:
vaccination_form:
required_slots:
patient_name:
- type: from_entity
entity: person_name
responses:
utter_greet:
- text: Halo! ada yang bisa saya bantu?
utter_goodbye:
- text: Sampai jumpa!
utter_thanks:
- text: Terima kasih!
actions:
- utter_greet
- utter_thanks
- utter_goodbye
- action_out_of_context
- action_ask_patient_name
stories.yml
version: "2.0"
stories:
- story: basic greetings
steps:
- intent: greet
- action: utter_greet
- story: selamat tinggal
steps:
- intent: goodbye
- action: utter_goodbye
- story: conversation_kagak_ngerti
steps:
- intent: out_of_context
- action: action_out_of_context
config.yml
# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: id
pipeline:
# # No configuration for the NLU pipeline was provided. The following default pipeline was used to train your model.
# # If you'd like to customize it, uncomment and adjust the pipeline.
# # See https://rasa.com/docs/rasa/tuning-your-model for more information.
- name: WhitespaceTokenizer
- name: RegexFeaturizer
- 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.85
ambiguity_threshold: 0.1
# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
# # No configuration for policies was provided. The following default policies were used to train your model.
# # If you'd like to customize them, uncomment and adjust the policies.
# # See https://rasa.com/docs/rasa/policies for more information.
# - name: MemoizationPolicy
- name: RulePolicy
# - name: UnexpecTEDIntentPolicy
# max_history: 5
# epochs: 100
# - name: TEDPolicy
# max_history: 5
# epochs: 100
# constrain_similarities: true