Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Labeling composite entities in LUIS isn't working

Tags:

I'm trying to have LUIS recognize something pretty straight forward: "2 waters" So I

  1. Set up the number built in entity
  2. Created a list entity which contains among its members the word water
  3. Created a composite entity which holds both, the number and the list entities

Then I go and test the intent with utterances that involve the words "2 waters" and it does recognize the number and list entities but separately, and doesn't allow me to compound it into their parent composite at the same time (only separately).

enter image description here

like image 669
Dustin Avatar asked Feb 21 '18 05:02

Dustin


People also ask

How do you create a composite entity in Luis?

Begin upgrade processBegin the upgrade process from the notification or you can wait until the next scheduled prompt. On the pop-up, select Upgrade now. Review the What happens when you upgrade information then select Continue. Select the composite entities from the list to upgrade then select Continue.

What is composite entity in Luis?

Composite Entities allow us to define the relationship between entities, that depend on their relative patterns. This works with a set of existing entities. A Composite Entity and its children will not share their common characteristics. It helps LUIS to identify the entities in the group as well as individually too.

How do I add an entity in Luis?

Sign in to the LUIS portal, and select your Subscription and Authoring resource to see the apps assigned to that authoring resource. Open your app by selecting its name on My Apps page. Select Build from the top navigation menu, then select Entities from the left panel, Select + Create , then select the entity type.


2 Answers

Okay, This is really embarassing but I was facing the same issue until I read up the help documents. What I was doing involved -

  1. Select the first entity, Right click -> Wrap .... -> Select the composite entity
  2. Select the second entity, Rinse repeat.
  3. See that the two entities are wrapped separately, scratch my head in confusion

After I read the Help documents, These are the steps I followed which worked -

  1. Select the first entity, Right click -> Wrap in Composite Entity
  2. Without clicking on the composite entity, move the mouse cursor over the second entity and click ! this underlines both of them in Green.
  3. THEN, select the composite entity and viola ! problem solved
like image 130
Arun Avatar answered Sep 19 '22 13:09

Arun


it does recognize the number and list entities but separately

I create a luis app and do a test in Test panel, I can reproduce the issue: getting child entities (number and object) and composite entity (mytesttntity) separately.

enter image description here

If I access published endpoint with same test query/utterance, I find the composite entity in returned response. You can try to make a request to your published endpoint and check if it can return an expected response.

enter image description here

like image 23
Fei Han Avatar answered Sep 22 '22 13:09

Fei Han