Spaces:
Running
Running
eljanmahammadli
commited on
Commit
•
4e72599
1
Parent(s):
104f341
Update highlighter.py
Browse files- highlighter.py +1 -0
highlighter.py
CHANGED
@@ -11,6 +11,7 @@ def explainer(text):
|
|
11 |
attributions = [t[1] for t in exp.as_list()]
|
12 |
l, weights = zip(*exp.local_exp[exp.available_labels()[0]])
|
13 |
sentences_weights = {sentences[i]: attributions[i] for i in l}
|
|
|
14 |
return sentences_weights
|
15 |
|
16 |
|
|
|
11 |
attributions = [t[1] for t in exp.as_list()]
|
12 |
l, weights = zip(*exp.local_exp[exp.available_labels()[0]])
|
13 |
sentences_weights = {sentences[i]: attributions[i] for i in l}
|
14 |
+
print(sentences_weights)
|
15 |
return sentences_weights
|
16 |
|
17 |
|