Can we use an intent as a feature for an entity. Basically i want to restrict my entity to a particular intent. how can i do so??
Can we use an intent as a feature for an entity. Basically i want to restrict my entity to a particular intent. how can i do so??
Hello,
I don't think there is kind of intent as feature for an entity. You can do use entities as a signal for an intent. For example, the presence of a certain entity in the utterance can distinguish which intent does it fall under. Is this what you want?
To do this, you need to create your own intents and entities first. To add an entity as a feature to an intent, select the intent from the Intents page, then select + Add feature above the contextual toolbar. The list will include all phrase lists and entities that can be applied as features.
Giving my example here, I have intent - buyaticket and entity - city and I want to set city as a feature for intent - buyaticket. I have created those two items and add the entity as feature of intent.
Regards,
Yutong
Thanks for the answer. I know we can use an entity as a feature for an intent. I wanted to do the opposite. Basically I have an entity that I want to limit to one intent. like it should not be extracted for other intents. can I achieve this?
Are you mentioning 1:1 relationship for the intent and entity? Or one intent can be link to many entities but one entity can only be extracted for one intent, n : 1 relationship? Could you please give me more details about this scenario?
Thank you.
Regards,
Yutong
I have 4 intents and two entities A and B. I have labelled all the utterances of intent 1 with entity A. Nut never labelled entity A in other three intents. I have labelled utterances of the other three intents with entity B but never used entity B with utterances of intent 1.So its like entity A can be extracted only from uttterances of intent 1 and not in other intents utterances. So the problem is entity A is being extracted in utterances of intent 2,3 and 4 which is not the desired case. Hence, I need a solution where if the model figures out that intent is 2,3,or 4 it should not extract entity A. Basically, I want to restrict entity A to intent 1.
Thanks and Regards,
Vinayak Mishra
7 people are following this question.