Search code examples
jsonmachine-learningazure-language-understanding

update LUIS list entity


Is it possible to update the LUIS list entity after creation? For example initially, I created a list entity using a json file with ['cat', 'dog']. Later, I want to update my list entity using a json file with ['cat', 'chicken', 'duck']. Right now I am getting an error since 'cat' is already in included in my initial list entity. Of cause, I can remove the "old" list entity and create a new one with the same way, but does LUIS have functionality for updating of the list entities?


Solution

  • Yes, you can update a list entity with new values as long as you make sure the JSON doesn't contain existing values. So instead of

    [
        {
            "canonicalForm": "cat"
        },
        {
            "canonicalForm": "chicken"
        },
        {
            "canonicalForm": "duck"
        }
    ]
    

    you can just use

    [
        {
            "canonicalForm": "chicken"
        },
        {
            "canonicalForm": "duck"
        }
    ]