Text Data

Explain models whose input is textual

A good way to see text explanations in Enterprise Platform is to take the movie review example from the Seldon Core documentation. The example there makes the request using the seldon client but it can also be made from the Seldon Enterprise Platform UI with the following JSON:

{
    "data": {
    "names": ["Text review"],
    "ndarray":
    ["this film has bad actors"]

    }
}

The Seldon Enterprise Platform UI can then show a visual representation of the explanation:

moviesentiment

This clearly highlights that the word ‘bad’ is considered negative and that influenced the classification of the review as negative.

We provide an anchor text explainer demo with Seldon Core.

More can be seen about the methodology in the alibi documentation