Text Data
Explain models whose input is textual
A good way to see text expalantions in Deploy 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 Deploy UI with the following JSON:
{
"data": {
"names": ["Text review"],
"ndarray":
["this film has bad actors"]
}
}
The Seldon Deploy UI can then show a visual representation of the explanation:
This clearly highlights that the word ‘bad’ is considered negative and that influenced the classification of the review as negative.
We provide a full demo on a movie sentiment model.
More can be seen about the methodology in the alibi documentation
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified October 29, 2019: Reorganizing project structure and adding WIP image explanations (8bfc877)