New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple intents in a single sentence #18

Closed
ar7hur opened this Issue Sep 13, 2013 · 30 comments

Comments

Projects
None yet
@ar7hur
Contributor

ar7hur commented Sep 13, 2013

Example: "Turn the bathroom light off and remind me to take the trash out."

There are two independent intents there:

  • turn_lights
  • set_reminder

We don't support that yet, but that's on the short term roadmap. We know you want it! Coming soon.

@Seraf

This comment has been minimized.

Show comment
Hide comment
@Seraf

Seraf Sep 14, 2013

Will the confidence be global or per intent (more logic) ?

Seraf commented Sep 14, 2013

Will the confidence be global or per intent (more logic) ?

@ar7hur

This comment has been minimized.

Show comment
Hide comment
@ar7hur

ar7hur Sep 14, 2013

Contributor

@Seraf most probably per intent.

Contributor

ar7hur commented Sep 14, 2013

@Seraf most probably per intent.

@ar7hur

This comment has been minimized.

Show comment
Hide comment
@ar7hur

ar7hur Oct 23, 2013

Contributor

While we haven't implemented this feature yet, with the new spanless entities you have a good workaround for most situations.

For instance if you get
Do you sell item XXX and if yes, how much does it cost?

Instead of doing two intents availability and price, you do just one intent product_question with two spanless entities availability_question (values "true" | "false") and price_question (values "true" | "false"). It works quite well on for many users.

Contributor

ar7hur commented Oct 23, 2013

While we haven't implemented this feature yet, with the new spanless entities you have a good workaround for most situations.

For instance if you get
Do you sell item XXX and if yes, how much does it cost?

Instead of doing two intents availability and price, you do just one intent product_question with two spanless entities availability_question (values "true" | "false") and price_question (values "true" | "false"). It works quite well on for many users.

@conradev

This comment has been minimized.

Show comment
Hide comment
@conradev

conradev Aug 3, 2014

I'd love to see this feature

conradev commented Aug 3, 2014

I'd love to see this feature

@Glavin001

This comment has been minimized.

Show comment
Hide comment
@Glavin001

Glavin001 Mar 6, 2015

+1 This would be awesome! Supporting chains of intents in sentences would make it feel so natural to users and less work for the developer.

@ar7hur 's link to spanless entities is broken. I found this blog post very informative: https://wit.ai/blog/2013/10/01/entities-update
Thanks!

Glavin001 commented Mar 6, 2015

+1 This would be awesome! Supporting chains of intents in sentences would make it feel so natural to users and less work for the developer.

@ar7hur 's link to spanless entities is broken. I found this blog post very informative: https://wit.ai/blog/2013/10/01/entities-update
Thanks!

@robdefeo

This comment has been minimized.

Show comment
Hide comment
@robdefeo

robdefeo Apr 9, 2015

Is this feature going to be ready soon?

robdefeo commented Apr 9, 2015

Is this feature going to be ready soon?

@Glavin001

This comment has been minimized.

Show comment
Hide comment
@Glavin001

Glavin001 May 12, 2015

I think we are getting closer with Composite Entities: https://wit.ai/blog/2015/05/05/composite-entity
However, it would be great to have Composite Intents. Looking forward to this!

Glavin001 commented May 12, 2015

I think we are getting closer with Composite Entities: https://wit.ai/blog/2015/05/05/composite-entity
However, it would be great to have Composite Intents. Looking forward to this!

@kundusandeepan

This comment has been minimized.

Show comment
Hide comment
@kundusandeepan

kundusandeepan Oct 19, 2015

Is multi-intent supported yet ?

kundusandeepan commented Oct 19, 2015

Is multi-intent supported yet ?

@rossdargan

This comment has been minimized.

Show comment
Hide comment
@rossdargan

rossdargan Apr 20, 2016

Yup, this would be pretty useful!

rossdargan commented Apr 20, 2016

Yup, this would be pretty useful!

@okaris

This comment has been minimized.

Show comment
Hide comment
@okaris

okaris Jan 12, 2017

Any updates on this?

okaris commented Jan 12, 2017

Any updates on this?

@olivierlesnicki

This comment has been minimized.

Show comment
Hide comment
@olivierlesnicki

olivierlesnicki commented Jan 14, 2017

still broken

@lahdo

This comment has been minimized.

Show comment
Hide comment
@lahdo

lahdo Feb 8, 2017

Any updates on this?

lahdo commented Feb 8, 2017

Any updates on this?

@olivierlesnicki

This comment has been minimized.

Show comment
Hide comment
@olivierlesnicki

olivierlesnicki commented Feb 9, 2017

no update

@mattpennington

This comment has been minimized.

Show comment
Hide comment
@mattpennington

mattpennington Apr 20, 2017

Any updates on this?

mattpennington commented Apr 20, 2017

Any updates on this?

@kundusandeepan

This comment has been minimized.

Show comment
Hide comment
@kundusandeepan

kundusandeepan Apr 20, 2017

kundusandeepan commented Apr 20, 2017

@patapizza patapizza assigned patapizza and unassigned dwwoelfel Apr 20, 2017

@patapizza

This comment has been minimized.

Show comment
Hide comment
@patapizza

patapizza Apr 20, 2017

Member

@mattpennington @kundusandeepan Thanks for raising this. This is still something we want to support.

Member

patapizza commented Apr 20, 2017

@mattpennington @kundusandeepan Thanks for raising this. This is still something we want to support.

@murat0658

This comment has been minimized.

Show comment
Hide comment
@murat0658

murat0658 Jul 17, 2017

any update?

murat0658 commented Jul 17, 2017

any update?

@l5t

This comment has been minimized.

Show comment
Hide comment
@l5t

l5t Jul 17, 2017

Member

https://wit.ai/blog/2017/04/18/supporting-100000-developers-and-beyond

We are also reintroducing the N-Best feature. Simply put, it means that now Wit.ai will not just return the best intent, but a ranked list of several possible intents. This is especially helpful to implement a reformulation strategy if you’re implementing an FAQ: for an ambiguous query, your app could say “Did you mean X,Y or Z…”. It is also great to implement your own training mechanism: when Wit is not super confident, you could retrieve the 3 most relevant entities and let your user validate the correct one…

Member

l5t commented Jul 17, 2017

https://wit.ai/blog/2017/04/18/supporting-100000-developers-and-beyond

We are also reintroducing the N-Best feature. Simply put, it means that now Wit.ai will not just return the best intent, but a ranked list of several possible intents. This is especially helpful to implement a reformulation strategy if you’re implementing an FAQ: for an ambiguous query, your app could say “Did you mean X,Y or Z…”. It is also great to implement your own training mechanism: when Wit is not super confident, you could retrieve the 3 most relevant entities and let your user validate the correct one…

@stopachka stopachka closed this Jul 18, 2017

@olivierlesnicki

This comment has been minimized.

Show comment
Hide comment
@olivierlesnicki

olivierlesnicki Jul 19, 2017

@l5t @stopachka this is not the solution to the problem described here

olivierlesnicki commented Jul 19, 2017

@l5t @stopachka this is not the solution to the problem described here

@l5t

This comment has been minimized.

Show comment
Hide comment
@l5t

l5t Jul 19, 2017

Member

Can you provide a concrete example to help us better understand the use case?

Member

l5t commented Jul 19, 2017

Can you provide a concrete example to help us better understand the use case?

@kundusandeepan

This comment has been minimized.

Show comment
Hide comment
@kundusandeepan

kundusandeepan Jul 19, 2017

kundusandeepan commented Jul 19, 2017

@hactar

This comment has been minimized.

Show comment
Hide comment
@hactar

hactar Jul 19, 2017

Contributor

I think what the users want, including one of my customers, are sentences such as "Call me a cab and text my girlfriend that I'm on my way", which is actually "call me a cab" and "text my girlfriend that I'm on my way" - to be interpreted as two separate intents, each with their own entities, in once sentence. And unfortunately this is not as simple as tokenising with "and" as not all such sentences have an "and", and some sentences with and and in them may not have two intents (Get me a cab to marks and spencers).

Contributor

hactar commented Jul 19, 2017

I think what the users want, including one of my customers, are sentences such as "Call me a cab and text my girlfriend that I'm on my way", which is actually "call me a cab" and "text my girlfriend that I'm on my way" - to be interpreted as two separate intents, each with their own entities, in once sentence. And unfortunately this is not as simple as tokenising with "and" as not all such sentences have an "and", and some sentences with and and in them may not have two intents (Get me a cab to marks and spencers).

@patapizza

This comment has been minimized.

Show comment
Hide comment
@patapizza

patapizza Jul 19, 2017

Member

Hi @kundusandeepan @hactar,

The way to do this would be to use one (binary) trait entity per intent, instead of a single trait entity named "intent" with multiple values.

For example, instead of having one trait entity "intent" (values: "weather_forecast" and "ask_time"), you could have two trait entities: "weather_forecast" (values: "true"), "ask_time" (values: "true"). You can then tag sentences like "weather in Paris and what time is it" with both entities.

Hope this helps.

Member

patapizza commented Jul 19, 2017

Hi @kundusandeepan @hactar,

The way to do this would be to use one (binary) trait entity per intent, instead of a single trait entity named "intent" with multiple values.

For example, instead of having one trait entity "intent" (values: "weather_forecast" and "ask_time"), you could have two trait entities: "weather_forecast" (values: "true"), "ask_time" (values: "true"). You can then tag sentences like "weather in Paris and what time is it" with both entities.

Hope this helps.

@kundusandeepan

This comment has been minimized.

Show comment
Hide comment
@kundusandeepan

kundusandeepan Jul 19, 2017

kundusandeepan commented Jul 19, 2017

@olivierlesnicki

This comment has been minimized.

Show comment
Hide comment
@olivierlesnicki

olivierlesnicki Jul 19, 2017

@patapizza that's exactly what doesn't work!

olivierlesnicki commented Jul 19, 2017

@patapizza that's exactly what doesn't work!

@patapizza

This comment has been minimized.

Show comment
Hide comment
@patapizza

patapizza Jul 20, 2017

Member

@olivierlesnicki Can you be more specific? Do you have an app I can look at? Thanks.

Member

patapizza commented Jul 20, 2017

@olivierlesnicki Can you be more specific? Do you have an app I can look at? Thanks.

@mr2tkoollove

This comment has been minimized.

Show comment
Hide comment
@mr2tkoollove

mr2tkoollove Aug 21, 2017

sorry, but i cant get multiple intent when using "trait"

mr2tkoollove commented Aug 21, 2017

sorry, but i cant get multiple intent when using "trait"

@stopachka

This comment has been minimized.

Show comment
Hide comment
@stopachka

stopachka Aug 22, 2017

Contributor

Hey @mr2tkoollove do you mind giving me an example of what you are trying? Happy to help

Contributor

stopachka commented Aug 22, 2017

Hey @mr2tkoollove do you mind giving me an example of what you are trying? Happy to help

@Arthur31

This comment has been minimized.

Show comment
Hide comment
@Arthur31

Arthur31 Feb 14, 2018

@ar7hur , What's up to multiple intents ?
Do i force wit to understand ?

Arthur31 commented Feb 14, 2018

@ar7hur , What's up to multiple intents ?
Do i force wit to understand ?

@blandinw

This comment has been minimized.

Show comment
Hide comment
@blandinw

blandinw Feb 14, 2018

Member

To achieve a similar result, you can create one binary trait entity per intent.
Using the example in this issue, you would create the trait entities "turn_lights" and "set_reminder" with 1 value "true".

Member

blandinw commented Feb 14, 2018

To achieve a similar result, you can create one binary trait entity per intent.
Using the example in this issue, you would create the trait entities "turn_lights" and "set_reminder" with 1 value "true".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment