Description Usage Arguments Value
Given data from an RBERT model, format the attention weights matrices in the structure expected by the javascript visualization code.
1 | .format_attention(attention, sequence_index = 1)
|
attention |
The "attention" component of the output from
|
sequence_index |
Integer; which example sequence from the input to visualize. |
an object structured appropriately for input (as eventual json) to the javascript visualization code.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.