Martijn van Beers commited on
Commit
0ce76e1
1 Parent(s): 9c33733

More of the same

Browse files

do that for format_word_importances too, obviously.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ def visualize_text(datarecords, legend=True):
112
  ),
113
  visualization.format_classname(datarecord.attr_class),
114
  visualization.format_classname("{0:.2f}".format(datarecord.attr_score)),
115
- format_word_importances(
116
  datarecord.raw_input_ids, datarecord.word_attributions
117
  ),
118
  "<tr>",
 
112
  ),
113
  visualization.format_classname(datarecord.attr_class),
114
  visualization.format_classname("{0:.2f}".format(datarecord.attr_score)),
115
+ visualization.format_word_importances(
116
  datarecord.raw_input_ids, datarecord.word_attributions
117
  ),
118
  "<tr>",