I have 2 slots team_a and team_b. nlu.yml:
- intent: ask_last_match_between_teams
examples: |
- What was the last match between [Besiktas] (team_a) and [Fenerbahce] (team_b) ?
I use actions to answer this intent. here is my example sentence:
"What was the last match between Konyaspor and Fenerbahce ?"
team_a should be Konyaspor and team_b should be Fenerbahce , but inside the ActionGetMatchResult class, I got this:
team_a None team_b Fenerbahce Extracted entities: [{'entity': 'team_b', 'start': 32, 'end': 41, 'confidence_entity': 0.7333658933639526, 'value': 'Konyaspor', 'extractor': 'DIETClassifier', 'processors': ['EntitySynonymMapper']}, {'entity': 'team_b', 'start': 46, 'end': 56, 'confidence_entity': 0.5637834668159485, 'value': 'Fenerbahce', 'extractor': 'DIETClassifier', 'processors': ['EntitySynonymMapper']}]
I don’t know why I don’t get any team_a value.
domain.yml:
entities:
- team_a
- team_b
slots:
team_a:
type: text
mappings:
- type: from_entity
entity: team_a
team_b:
type: text
mappings:
- type: from_entity
entity: team_b
note: there is no space between ] and ( . it will be link, if I don’t add space