Ekaterina Tcareva
Ekaterina Tcareva

Reputation: 439

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?

Upvotes: 0

Views: 83

Answers (1)

Kyle Delaney
Kyle Delaney

Reputation: 12274

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"
    }
]

Upvotes: 1

Related Questions