wit-ai / wit

Natural Language Interface for apps and devices
https://wit.ai/
942 stars 91 forks source link

Multiple intents in a single sentence #18

Closed ar7hur closed 7 years ago

ar7hur commented 11 years ago

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

There are two independent intents there:

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

Seraf commented 11 years ago

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

ar7hur commented 11 years ago

@Seraf most probably per intent.

ar7hur commented 11 years ago

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 commented 10 years ago

I'd love to see this feature

Glavin001 commented 9 years ago

+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 commented 9 years ago

Is this feature going to be ready soon?

Glavin001 commented 9 years ago

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 commented 9 years ago

Is multi-intent supported yet ?

rossdargan commented 8 years ago

Yup, this would be pretty useful!

okaris commented 7 years ago

Any updates on this?

olivierlesnicki commented 7 years ago

still broken

lahdo commented 7 years ago

Any updates on this?

olivierlesnicki commented 7 years ago

no update

mattpennington commented 7 years ago

Any updates on this?

kundusandeepan commented 7 years ago

I guess it's dead.

On Apr 20, 2017 5:58 AM, "Matthew Pennington" notifications@github.com wrote:

Any updates on this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/wit-ai/wit/issues/18#issuecomment-295660506, or mute the thread https://github.com/notifications/unsubscribe-auth/AKjN4TGrb_aMSCbB-EIEuxiGxlxDnRc7ks5rxywtgaJpZM4A_ui0 .

patapizza commented 7 years ago

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

murat0658 commented 7 years ago

any update?

l5t commented 7 years ago

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…

olivierlesnicki commented 7 years ago

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

l5t commented 7 years ago

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

kundusandeepan commented 7 years ago

I want to go to Seattle for 3 nights followed by dallas where Sam would join me from SFO for 3 days.

On Jul 19, 2017 11:50 AM, "Laurent Landowski" notifications@github.com wrote:

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wit-ai/wit/issues/18#issuecomment-316430675, or mute the thread https://github.com/notifications/unsubscribe-auth/AKjN4UKSKNaYI9S3DdJL3nCptcdmqOYAks5sPiWigaJpZM4A_ui0 .

hactar commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Thanks, I am gonna try.

On Jul 19, 2017 2:54 PM, "Julien Odent" notifications@github.com wrote:

Hi @kundusandeepan https://github.com/kundusandeepan @hactar https://github.com/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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wit-ai/wit/issues/18#issuecomment-316482743, or mute the thread https://github.com/notifications/unsubscribe-auth/AKjN4arBoaGAwoUMxKZYquGsrABKwku6ks5sPlDvgaJpZM4A_ui0 .

olivierlesnicki commented 7 years ago

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

patapizza commented 7 years ago

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

mr2tkoollove commented 7 years ago

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

stopachka commented 7 years ago

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

Arthur31 commented 6 years ago

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

blandinw commented 6 years ago

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".

munaAchyuta commented 6 years ago

@ar7hur @robdefeo @Glavin001 @Seraf @conradev any conclusion to this issue ?

can we have model which distinguishes sentence with intent from a given a input text ?

like below example : "Turn the bathroom light off and remind me to take the trash out." There are two independent intents here: turn_lights, set_reminder. similarly another example : "Hey what's up? do you guys offer free trial?" there are two intents here : greetings , product_pricing

Thanks & Regards, Achyuta nanda Sahoo

Thanks.

blandinw commented 6 years ago

Please see my last comment for a workaround. This is not supported today in Wit, but we'd like to work on it at some point (but don't wait on it 😊).

Shinoy-12 commented 5 years ago

Hey! Let's say i have a entity "x" and this entity is defined under intent "y" and "z". When i write a statement...will wit.ai show intent "y" and intent "z" with entity "x"?

natcohen commented 4 years ago

@blandinw Is there any news regarding this?