Skip to content
Permalink
Browse files

first commit

  • Loading branch information...
abisee committed Jan 30, 2017
0 parents commit 76a66ca59043a03ed10072e01b2cb13c71b69586
Showing with 252 additions and 0 deletions.
  1. +24 −0 README.m
  2. +1 −0 attn_wts.json
  3. +8 −0 external/d3.min.js
  4. +4 −0 external/jquery-3.1.0.min.js
  5. +4 −0 external/sprintf.min.js
  6. +7 −0 external/underscore-min.js
  7. +204 −0 index.html
@@ -0,0 +1,24 @@
ATTENTION VISUALIZER BY ABIGAIL SEE
abisee@stanford.edu

To run the visualizer, run
python -m SimpleHTTPServer
from this directory then navigate to
http://localhost:8000/
in browser.


To visualize your own weights, you need to create a file called attn_wts.json that has the following fields:

article_lst: the article as a list of words
decoded_lst: the decoded summary as a list of words
abstract_str: the reference summary as a single string
attn_wts: a list same length as decoded_lst, containing lists of length "attention length", containing probabilities.
Note attention length must be <= length of article_lst.
e.g. your article may have 500 words but you only fed the first 200 words into the model, thus attention length is 200.
In this case the visualizer will mark the truncation point in the article.
gen_probs: a list same length as decoded_lst, containing probabilities.

See the included example attn_wts.json.

WARNING: Make sure that none of the strings in article_lst, decoded_lst, or abstract_str contain <angled brackets>. These will interfere with the HTML and can result in text not being displayed.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more.

0 comments on commit 76a66ca

Please sign in to comment.
You can’t perform that action at this time.