question

MishraVinayakZA-7534 avatar image
0 Votes"
MishraVinayakZA-7534 asked MishraVinayakZA-7534 commented

Intents as feature

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??

azure-cognitive-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

YutongTie-MSFT avatar image
0 Votes"
YutongTie-MSFT answered MishraVinayakZA-7534 commented

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?

https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-concept-entity-types#entities-as-features-for-intents

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.

https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-how-to-add-features#model-as-a-feature

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.
116064-image.png

Regards,
Yutong



image.png (38.7 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

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?

0 Votes 0 ·

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

0 Votes 0 ·

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

0 Votes 0 ·

did you understand the scenario??

0 Votes 0 ·