botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[LUIS] Pre-built Entities geography not working with countrys

Open pkpaul5 opened this issue 9 years ago • 6 comments

I was trying the bre-built entities geography, but apparently does not work for international locations, such as Mexico, Guatemala, Honduras etc. bug

pkpaul5 avatar Apr 13 '17 12:04 pkpaul5

Hi @pkpaul5,

The geography prebuilt entity does support international locations as indicated in the screencap at the bottom. I've tested the three countries and found that only the words Mexico, Mexico's and mexico's were properly recognized. As a side note, Canada and Japan are two other countries I tested that were also properly recognized.

I've contacted the LUIS support team and will update this issue when I receive a response.

prebuilt geography description

stevengum avatar Apr 13 '17 17:04 stevengum

Hi Steven,

If you see the screen shot that I have attached with the issue, Mexico was not recognized. There is definitely some issue at LUIS end. Thanks for looking into the issue.

Thanks Prasenjit

pkpaul5 avatar Apr 14 '17 05:04 pkpaul5

The LUIS team is aware of the issue and is working on improving the accuracy of the prebuilt geography entity. For the time being I'm recommending creating a Closed List which will allow you to make custom hard coded entities. On the documentation it provides an example where abbreviations are provided as synonyms of the places like California (CA, Calif.). Two other alternatives would be to create a custom entity that you train with multiple utterances, or by using a phrase list, which would require a number of recognized entities to be combined with the list of not-recognized entities.

Here is what the result looks like from a LUIS endpoint with the utterance, "Where is Guatemala?" when using a Closed List:

"entities": [
    {
        "entity": "guatemala",
        "type": "Locations",
        "startIndex": 9,
        "endIndex": 17,
        "score": 1,
        "resolution": {
            "guatemala": "guatemala"
        }
    }
]

stevengum avatar Apr 14 '17 23:04 stevengum

Closing this issue for now.

stevengum avatar Apr 16 '17 22:04 stevengum

Steven,

Is there a timeline by which this issue will be fixed?

Thanks Prasenjit

From: Steven Gum [mailto:[email protected]] Sent: 15 April 2017 05:24 To: Microsoft/BotBuilder [email protected] Cc: Prasenjit Paul [email protected]; Mention [email protected] Subject: Re: [Microsoft/BotBuilder] [LUIS] Pre-built Entities geography not working with countrys (#2598)

The LUIS team is aware of the issue and is working on improving the accuracy of the prebuilt geography entity. For the time being I'm recommending creating a Closed Listhttps://dev.projectoxford.ai/docs/services/5890b47c39e2bb17b84a55ff/operations/5890b47c39e2bb052c5b9c14 which will allow you to make custom hard coded entities. On the documentation it provides an example where abbreviations are provided as synonyms of the places like California (CA, Calif.). Two other alternatives would be to create a custom entity that you train with multiple utterances, or by using a phrase listhttps://docs.microsoft.com/en-us/azure/cognitive-services/luis/add-features, which would require a number of recognized entities to be combined with the list of not-recognized entities.

Here is what the result looks like from a LUIS endpoint with the utterance, "Where is Guatemala?" when using a Closed List:

"entities": [

{

    "entity": "guatemala",

    "type": "Locations",

    "startIndex": 9,

    "endIndex": 17,

    "score": 1,

    "resolution": {

        "guatemala": "guatemala"

    }

}

]

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/BotBuilder/issues/2598#issuecomment-294257608, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AaJ21MBkpvhCuBZ1PP0q-x0taaoklzqxks5rwAcUgaJpZM4M8pax.

::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.


pkpaul5 avatar Apr 17 '17 05:04 pkpaul5

Hi Prasenjit, They unfortunately couldn't provide me with a committed ship date, but I will update here when the improved implementation has been released. Thank you for your understanding, and though I've closed this issue please continue to post here if you have any questions regarding the issue.

stevengum avatar Apr 18 '17 16:04 stevengum