Skip to content
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 response #199

Closed
bkmeneguello opened this issue Mar 3, 2017 · 7 comments · Fixed by #211
Closed

Multiple intents response #199

bkmeneguello opened this issue Mar 3, 2017 · 7 comments · Fixed by #211
Labels
type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR

Comments

@bkmeneguello
Copy link

Hi, I'm coming from LUIS and noticed that interpreters returns only the more likely intent, instead of return the full intent list with scores.
My AI uses, sometimes, this list to make decisions of ambiguities.
rasa_nlu.classifiers.sklearn_intent_classifier.SklearnIntentClassifier#predict_prob return the full list. It's possible to return this list instead?

@tmbo
Copy link
Member

tmbo commented Mar 13, 2017

I think we can make that an option, do you mind sharing the LUIS format?

@tmbo tmbo added the type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR label Mar 13, 2017
@BharatSimhaReddy17
Copy link

could you please help me with the format for multiple intents?

@tmbo
Copy link
Member

tmbo commented Mar 15, 2017

I am not quite sure what you are referring to. Do you mean the implementation of returning a list of intents including probability instead of the most probable one?

@BharatSimhaReddy17
Copy link

yea, i mean the implementation of returning a list of intents including probability.

@tmbo
Copy link
Member

tmbo commented Mar 15, 2017

What is the format LUIS is using for this?

@bkmeneguello
Copy link
Author

This is an example

{
    "query": "us$ 5000.00",
    "topScoringIntent": {
        "intent": "Money Answer",
        "score": 0.9999938
    },
    "intents": [
        {
            "intent": "Money Answer",
            "score": 0.9999938
        },
        {
            "intent": "Number Answer",
            "score": 0.04435608
        }
    ],
    "entities": [
        {
            "entity": "us $",
            "type": "currency",
            "startIndex": 0,
            "endIndex": 2,
            "score": 0.9984345
        },
        {
            "entity": "5000 . 00",
            "type": "number",
            "startIndex": 4,
            "endIndex": 10,
            "score": 0.9975406
        }
    ]
}

@tmbo tmbo mentioned this issue Mar 17, 2017
2 tasks
@tmbo
Copy link
Member

tmbo commented Mar 17, 2017

Implemented on pipeline branch. Only works when sklearn intent classifier is used (mitie doesn't return the probabilities for all classes).

@tmbo tmbo closed this as completed in #211 Mar 21, 2017
@twhughes twhughes mentioned this issue Aug 27, 2018
4 tasks
vcidst pushed a commit that referenced this issue Jan 24, 2024
)

* add active flows started via link to startable flows

* add changelog

* fix types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants