bhoov commited on
Commit
63858e7
·
0 Parent(s):

First commit

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitignore +74 -0
  2. LICENSE +202 -0
  3. Makefile +8 -0
  4. README.md +217 -0
  5. client/dist/05ca9c06114e79436ea9b5c8d4a7869c.ttf +0 -0
  6. client/dist/4171e41154ba857f85c536f167d581ba.ttf +0 -0
  7. client/dist/7eeb10384e8e1ef96c87f7074cf2ef59.ttf +0 -0
  8. client/dist/a849e7649e2005ab4aecfa50d96120e1.ttf +0 -0
  9. client/dist/exBERT.html +226 -0
  10. client/dist/img/annotated_instructions2.png +0 -0
  11. client/dist/img/exBERT.png +0 -0
  12. client/dist/img/exBERT.svg +12 -0
  13. client/dist/img/exBERT_favicon.png +0 -0
  14. client/dist/img/exBERT_overview.png +0 -0
  15. client/dist/img/exbert_teaser_V2.png +0 -0
  16. client/dist/img/favicon.png +0 -0
  17. client/dist/img/harvardnlp_logo.png +0 -0
  18. client/dist/index.html +236 -0
  19. client/dist/main.css +4 -0
  20. client/dist/main.js +0 -0
  21. client/dist/vendor.js +0 -0
  22. client/src/css/AttentionConnector.css +1 -0
  23. client/src/css/AttentionConnector.css.map +9 -0
  24. client/src/css/AttentionConnector.scss +0 -0
  25. client/src/css/AttentionConnectorControls.css +218 -0
  26. client/src/css/AttentionConnectorControls.css.map +9 -0
  27. client/src/css/AttentionConnectorControls.scss +193 -0
  28. client/src/css/CorpusVis.css +125 -0
  29. client/src/css/CorpusVis.css.map +9 -0
  30. client/src/css/CorpusVis.scss +127 -0
  31. client/src/css/Histograms.css +22 -0
  32. client/src/css/Histograms.css.map +9 -0
  33. client/src/css/Histograms.scss +31 -0
  34. client/src/css/SentenceInput.css +48 -0
  35. client/src/css/SentenceInput.css.map +9 -0
  36. client/src/css/SentenceInput.scss +35 -0
  37. client/src/css/base.css +159 -0
  38. client/src/css/base.css.map +9 -0
  39. client/src/css/base.scss +171 -0
  40. client/src/css/index.css +8 -0
  41. client/src/css/index.css.map +9 -0
  42. client/src/css/index.scss +7 -0
  43. client/src/css/main.css +722 -0
  44. client/src/css/main.css.map +15 -0
  45. client/src/css/main.scss +191 -0
  46. client/src/css/palette.css +1 -0
  47. client/src/css/palette.css.map +9 -0
  48. client/src/css/palette.scss +19 -0
  49. client/src/customTypings/d3.d.ts +21 -0
  50. client/src/exBERT.html +226 -0
.gitignore ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # General
2
+ .pytest_cache
3
+ .DS_Store
4
+ .AppleDouble
5
+ .LSOverride
6
+ __pycache__
7
+ *.pyc
8
+ client_ref/
9
+ _store/
10
+ .cache/
11
+ client_ref
12
+ *.swp
13
+ raw_data
14
+
15
+ # Icon must end with two \r
16
+ Icon
17
+
18
+ # Package files
19
+ *.egg-info
20
+
21
+ # Thumbnails
22
+ ._*
23
+
24
+ # Files that might appear in the root of a volume
25
+ .DocumentRevisions-V100
26
+ .fseventsd
27
+ .Spotlight-V100
28
+ .TemporaryItems
29
+ .Trashes
30
+ .VolumeIcon.icns
31
+ .com.apple.timemachine.donotpresent
32
+
33
+ # Directories potentially created on remote AFP share
34
+ .AppleDB
35
+ .AppleDesktop
36
+ Network Trash Folder
37
+ Temporary Items
38
+ .apdisk
39
+
40
+ .idea
41
+ .vscode
42
+
43
+ .ipynb_checkpoints
44
+ client/src/node_modules
45
+ client/src/.cache-loader
46
+
47
+ # HDF5 and faiss files can be too big for git
48
+ *.hdf5
49
+ *.faiss
50
+ *.code-workspace
51
+
52
+ # Datasets
53
+ data/*/wizard-of-oz.txt
54
+ wizard-of-oz.txt
55
+ data/*/wikipedia*.csv.gz
56
+ *_tst
57
+ server/data/*.zip
58
+ allResponses.json
59
+ *.h5py
60
+ *.pckl
61
+
62
+ # Dev notebooks
63
+ notebooks/*.ipynb
64
+
65
+ # Demo
66
+ client/src/demo
67
+
68
+ # Mypy static checking
69
+ .mypy_cache
70
+ .pytest_cache
71
+
72
+ # Emacs things
73
+ \#*
74
+ .#*
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
Makefile ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ ENV_NAME="exbert"
2
+
3
+ env:
4
+ conda env create -f ./environment.yml; \
5
+ conda activate $(ENV_NAME); \
6
+ pip install -e server/spacyface; \
7
+ pip install -e server/transformers; \
8
+ pip install -e server; \
README.md ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # exBERT
2
+
3
+ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4
+
5
+
6
+ ### A Visual Analysis Tool to Explore Learned Representations in Transformers Models
7
+ by Ben Hoover, Hendrik Strobelt, Sebastian Gehrmann <br/>
8
+ from IBM Research and Harvard NLP
9
+
10
+ Link to pre-paper and demo: [exbert.net](http://exbert.net)
11
+
12
+
13
+ <div style='text-align:center;'>
14
+
15
+ <img src="client/src/img/exbert_teaser_V2.png">
16
+
17
+ <div style='font-size:70%;'>An overview of the different components of the tool. The token ``escape'' is selected and masked at 0-[all]. The results from a corpus search by token embedding are shown and summarized in (d-g). Users can enter a sentence in (a) and modify the attention view through selections in (b). Self attention is displayed in (c). The blue matrices show the attention of a head (column) to a token (row). Tokens and heads that are selected in (c) can be searched over the annotated corpus (shown: Wizard of Oz) with results presented in (d). Every token in (d) displays its linguistic metadata on hover. A colored summary of the matched token (black highlight) and its context is shown in (e), which can be expanded or collapsed with the buttons above it. The histograms in (f) and (g) summarize the metadata of the results in (d) for the matched token and the token of max attention, respectively.</div>
18
+
19
+ </div>
20
+
21
+ ### Version 0.9
22
+
23
+ - [Overview](#overview)
24
+ - [Components](#components)
25
+ - [Install and Getting Started](#install-and-getting-started)
26
+ - [Development](#development)
27
+
28
+
29
+
30
+
31
+
32
+ ## Overview
33
+
34
+ exBERT is a tool that enables users to explore what and how transformers learn to model languages. The tool comes equipped with a pretrained base version of BERT, a state of the art architecture based on transformers. To explore what this architecture has learned, you can input any sentence to the model and the tool will parse the sentence into tokens suitable for BERT (using the BPE tokenizer) and pass these tokens through the model. The attentions and ensuing word embeddings of each encoder are then extracted and displayed for interaction.
35
+
36
+ To ease interpretability of language features, several key features of BERT have been disabled:
37
+
38
+ 1. The attentions toward [CLS] and [SEP] tokens have been zeroed. The [CLS] token is typically useful in classification tasks where the entire sentence needs to have an embedding to summarize it, and the [SEP] has been shown to be a no-op for heads that haven't learned anything.
39
+ 2. BERT is able to concatenate two sections of text for training (separated by the [SEP] token mentioned above), and attention patterns can be learned between the two sentences. This enables BERT to apply to a wide range of applications. However, the intention of this tool is to focus on self-attention - that is, the attention of the words in a sentence to other words in the same sentence - and the functionality to look at attention between different words has been dropped.
40
+
41
+ Even though BERT is able to analyze large chunks of paragraph at once, this tool primarily focuses on language features within one sentence and thus only searches across a corpus that has been split by sentence.
42
+
43
+ Importantly, BERT's ability to mask particular tokens (by using the [MASK] token in place of the original token) has been preserved.
44
+
45
+ ## Components
46
+
47
+ ![components](client/src/img/annotated_instructions2.png)
48
+
49
+
50
+ ### 1) The Attention Explorer
51
+
52
+
53
+ #### 1a) Sentence Input
54
+
55
+ Type in any english sentence you want to analyze in the ensuing visualization. Just note that the longer the sentence, the longer the visualization will require to initialize.
56
+
57
+
58
+ #### 1b) Threshold Slider
59
+
60
+ The Threshold Slider is used to control how much attention is displayed in the main attention graph. For each word, show the largest attentions until X amount of the total attention has been displayed. At 1, all the attention connections are shown. At 0, nothing is shown. Use this if you are only interested in seeing what each word is most interested in.
61
+
62
+
63
+ #### 1c) Layer Selection
64
+
65
+ Choose the layer of BERT to analyze
66
+
67
+
68
+ #### 1d) Head Selector
69
+
70
+ Display the selected heads, with the option to select all or none. For convenience, interaction has been added to the Attention Summary Boxes that allows you to select or deselect heads from the visualization itself.
71
+
72
+
73
+ #### 1e) Attention Summary Boxes
74
+
75
+ Every row represents the total attention to a token, and every column represents a different head. By looking down a column, you can see how strongly any particular head is activated at a particular head/layer. By hovering over any column, you can see that attentions that belong to just that head in the main graph. By selecting a column, you can select or deselect that head. This will both remove the effect of that head on the overall visualization and indicate which heads you are interested in searching over in the corpus.
76
+
77
+ The left side indicates how much total attention each head is going out of each word. The right side indicates the total attention from each head going into each word.
78
+
79
+
80
+ #### 1f) Attention Graph
81
+
82
+ This central display shows how tokens attend to other tokens in the same sentence. By hovering over any token, you can see only the attentions going into or out of that particular word. By single clicking on it, you can freeze the view of that particular token and explore how the heads interact with only that token's attention. This also indicates which embedding / headlist you are interested in searching the corpus for. By double clicking on the token, you can mask that token, which passes all the tokens back to BERT with the [MASK] token replacing the token you just double clicked. This often changes quite a few of the attentions and will rerender the attention graph. You can then continue to explore the attentions and select tokens and head as usual.
83
+
84
+
85
+ ### 2) Corpus Explorer
86
+
87
+ Right now, the only available corpus to search is the Wizard of Oz (WoZ). This corpus has been split into sentences, parsed for language features such as part of speech (POS), dependency (DEP), and entity information using SPACY, merged into the BERT tokenization scheme, stored into an HDF5 file, and indexed by FAISS for quick lookup. This same procedure will need to be applied to other corpora to be searched.
88
+
89
+
90
+ #### 2a) Search Buttons:
91
+
92
+ There are two buttons to perform a search of the available corpus: Search by Head and Search by Embedding.
93
+
94
+ To search by embedding, the embedding of the selected token and the layer at which to compare embeddings are passed to the backend. The processed corpus is searched for the words that are nearest to the embedding (by inner product search) at that particular layer and displayed in the Corpus Explorer.
95
+
96
+ To search by head, the selected layer, the selected heads, and the concatenated head vector for the selected token are passed to the backend. The head vector is then set to 0 at all indices that are from one of the unselected heads. This vector is then searched across the corpus by inner product.
97
+
98
+ Note that the term "inner product" is used. Since the embeddings and the head vectors are normalized, this is equivalent to performing a cosine-similarity search.
99
+
100
+
101
+ #### 2b) Histogram Information
102
+
103
+ There are two different histograms of information that are displayed: the Metadata histogram (in purple) and the positional histogram (in black). By selecting the dropdown underneath the Metadata histogram, you can change the displayed matrix in the Corpus controller.
104
+
105
+
106
+ #### 2c) Corpus Metadata Matrix control buttons
107
+
108
+ The control buttons allow you to see a certain amount of context on either side of the matched word. The arrows add context one word to the left or right, whereas the red X deletes a context from the left or right. The blue refresh symbol is used to adjust the heights of each cell to correspond to the height of it's sentence, which is important when the browser window has been resized in some way.
109
+
110
+
111
+ #### 2d) Corpus Metadata Matrix
112
+
113
+ The metadata matrix is an array of colors that summarize the metadata information of the corresponding sentence to its right. By hovering over any cell, you will be able to see what that particular color represents. There are unfortunately too many values for POS and DEP to give each a unique color that is distinct from all other colors, so some colors may overlap. Black cells indicate that you have reached a sentence boundary.
114
+
115
+
116
+ #### 2e) Corpus Explorer
117
+
118
+ This display shows all words most closely matching the selected token / layer / head information indicated in the Attention Explorer. Matched words have a thick red border. Hovering over any word will give you its POS and DEP information, the amount of attention the matched word is paying to that word, and will read ENTITY if that word was determined to be an entity in the original corpus.
119
+
120
+ ## Install and Getting Started
121
+
122
+ Note: This code has possible OS dependencies as it was developed exclusively on MacOS.
123
+
124
+ ### Setting up the Environment
125
+ 1. From the root of this project, create a new conda directory with `conda env create -f environment.yml`. This will create an environment named `exbert`.
126
+ 2. Activate this environment with `conda activate exbert`. At this point, if you want to install the development dependencies, you can do so with `conda env update -f environment-dev.yml`
127
+ 3. You will need to install spacy's `en_core_web_sm` as well. To do this, run: `python -m spacy download en_core_web_sm`
128
+
129
+
130
+ ### Generating Example Data
131
+
132
+ please see the [instructions here](https://github.com/bhoov/exbert/tree/master/server/data_processing)
133
+
134
+
135
+ ### Running Locally
136
+ Starting the backend:
137
+
138
+ ```bash
139
+ conda activate exbert
140
+ python server/main.py
141
+ ```
142
+
143
+ ### Notes on setting up conda
144
+ If setting up conda for the first time, we recommend downloading Miniconda with the following curl command:
145
+
146
+ ```
147
+ curl 'https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh'
148
+ ```
149
+
150
+ Promptly refresh your shell environment and run `conda update conda` to be able to install from the `conda env create` command above.
151
+
152
+
153
+ ## Development
154
+
155
+ If you want to make custom changes to the code, these are some hints to get you started.
156
+
157
+ ### Use as package
158
+ Some find it useful to expose the code inside `server` for development in an environment like Jupyter Notebooks. From the root folder with the `exbert` environment active:
159
+
160
+ ```bash
161
+ conda env update -f environment-dev.yml
162
+ pip install -e ./server
163
+ ```
164
+
165
+ Now the `exbert` environment should allow the server code to be accessible in any folder so long as there are no additional module name clashes in the environment.
166
+
167
+ ### Compiling the frontend
168
+
169
+ ```bash
170
+ cd client/src
171
+ npm install #installs all necessary node packages
172
+ npm run build #This will create the static files living in `client/dist`.
173
+ ```
174
+
175
+ ## Running a development environment
176
+ You can run a client server that automatically recompiles the frontend with `npm run ww`. After making a change, you should be able to refresh the browser window to see your most recent changes.
177
+
178
+ Because the backend has to load in a lot of data for inference, we do not allow auto-backend refresh on every saved change in flask even though the framework supports it.
179
+
180
+ ### Uploading your own model locally
181
+ Uploading your own model consists of the following steps:
182
+
183
+ 1. *Save your pretrained huggingface model* according to the naming conventions specified in the "modeling_auto.py" of the original transformers repo:
184
+
185
+ ```
186
+ The model class to instantiate is selected as the first pattern matching
187
+ in the `pretrained_model_name_or_path` string (in the following order):
188
+ - contains `t5`: T5Model (T5 model)
189
+ - contains `distilbert`: DistilBertModel (DistilBERT model)
190
+ - contains `albert`: AlbertModel (ALBERT model)
191
+ - contains `camembert`: CamembertModel (CamemBERT model)
192
+ - contains `xlm-roberta`: XLMRobertaModel (XLM-RoBERTa model)
193
+ - contains `roberta`: RobertaModel (RoBERTa model)
194
+ - contains `bert`: BertModel (Bert model)
195
+ - contains `openai-gpt`: OpenAIGPTModel (OpenAI GPT model)
196
+ - contains `gpt2`: GPT2Model (OpenAI GPT-2 model)
197
+ - contains `transfo-xl`: TransfoXLModel (Transformer-XL model)
198
+ - contains `xlnet`: XLNetModel (XLNet model)
199
+ - contains `xlm`: XLMModel (XLM model)
200
+ - contains `ctrl`: CTRLModel (Salesforce CTRL model)
201
+ ```
202
+
203
+ Right now, only BERT, RoBERTa, GPT2, and DistilBERT are supported for context searching. You can use the rest without the context searching as desired.
204
+
205
+ 2. *Create the reference corpus*. **Warning**: Depending on the number of layers and size of the hidden dimension in the model, this step could take many gigabytes on your computer to store the hidden representations and attentions at every layer.
206
+
207
+ ## Notes on SubRepo Usage
208
+ This project makes use of two public pip repositories (`transformers` and `spacyface`), both of which needed modification as this project was being developed. The `git-subrepo` tool was used to achieve this workflow with a forked repository of both transformers and spacyface. However, this introduces the following steps when setting up the environment:
209
+
210
+ 1. From the `transformers/` directory, run `pip install -e .`
211
+ 2. Repeat for the `spacyface/` directory.
212
+
213
+ ## Acknowledgements
214
+ This project was inspired in part by the original [BertViz by Jesse Vig](https://github.com/jessevig/bertviz).
215
+
216
+ ## Debugging
217
+ - If you get a `No module named '_swigfaiss'` error, check that `libomp` is installed on your system. If you are on a mac, this is as simple as `brew install libomp`.
client/dist/05ca9c06114e79436ea9b5c8d4a7869c.ttf ADDED
Binary file (143 kB). View file
 
client/dist/4171e41154ba857f85c536f167d581ba.ttf ADDED
Binary file (143 kB). View file
 
client/dist/7eeb10384e8e1ef96c87f7074cf2ef59.ttf ADDED
Binary file (144 kB). View file
 
client/dist/a849e7649e2005ab4aecfa50d96120e1.ttf ADDED
Binary file (144 kB). View file
 
client/dist/exBERT.html ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <script async src="https://www.googletagmanager.com/gtag/js?id=UA-149275901-1"></script>
6
+ <script>
7
+ window.dataLayer = window.dataLayer || [];
8
+ function gtag() { dataLayer.push(arguments); }
9
+ gtag('js', new Date());
10
+
11
+ gtag('config', 'UA-149275901-2');
12
+ </script>
13
+ <meta charset="UTF-8">
14
+ <meta name="viewport" content="width=device-width, initial-scale=1">
15
+ <title>exBERT</title>
16
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
17
+ integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
18
+ <link rel="stylesheet" type="text/css" href="main.css">
19
+ <link rel="shortcut icon" href="./img/exBERT_favicon.png" type="image/png">
20
+ </head>
21
+
22
+ <body style="font-size: 16px;">
23
+ <div class="section-header" id="header">
24
+ <div class="header-logo">
25
+ <a href="/"><img src="./img/exBERT.png" alt="exBERT Logo" height="30px"></a>
26
+ </div>
27
+ <div id="headertext">
28
+ An Explorable BERT
29
+ </div>
30
+
31
+ <div class="header-info">
32
+ IBM Research & HarvardNLP
33
+ </div>
34
+
35
+ </div>
36
+
37
+ <div class="main-grid">
38
+ <div class="left-half vpartial-95 scrolling">
39
+
40
+ <div class="text-center">
41
+
42
+ <div id="sentence-input">
43
+ <form>
44
+ <div class="form-group">
45
+ <label for="form-sentence-a"> Input Sentence </label>
46
+ <input id="form-sentence-a" type="text" name="sent-a-input"> </p>
47
+ </div>
48
+ <div class="padding"></div>
49
+ <button class="btn btn-primary" id="update-sentence" type="button">Update</button>
50
+ </form>
51
+ </div>
52
+ <hr />
53
+
54
+ <div id="connector-container">
55
+
56
+ <div class="connector-controls">
57
+ <div class="left-control-half">
58
+ <div id="model-selection">
59
+ <label for="model-options">Select model: </label>
60
+ <select id="model-option-selector" name="model-options"></select>
61
+ </div>
62
+ <div class="slide-container">
63
+ <div>
64
+ <label for="my-range">
65
+ Display top <span id="my-range-value">…</span>% of attention
66
+ </label>
67
+ <input type="range" min="0" max="100" value="70" class="slider" id="my-range"> <br>
68
+ </div>
69
+ </div>
70
+
71
+ <div id="layer-selection">
72
+ <div class="input-description">
73
+ Layer:
74
+ </div>
75
+
76
+ <div class="layer-select btn-group btn-group-toggle" data-toggle="buttons"
77
+ id="layer-select"> </div>
78
+ </div>
79
+ <div id="cls-toggle">
80
+ <div class="input-description">
81
+ Hide Special Tokens
82
+ </div>
83
+
84
+ <label class="switch">
85
+ <input type="checkbox" checked='checked'>
86
+ <span class="short-slider round"></span>
87
+ </label>
88
+ </div>
89
+ </div>
90
+
91
+ <div class="head-control">
92
+ <div id="selected-head-display">
93
+ <div class="input-description">
94
+ Selected heads:
95
+ </div>
96
+ <div id="selected-heads"></div>
97
+ </div>
98
+
99
+ <div class="select-input" id="head-all-or-none">
100
+ <button id="select-all-heads">Select all heads</button>
101
+ <button id="select-no-heads">Unselect all heads</button>
102
+ </div>
103
+
104
+ <div id="usage-info">
105
+ <p> You focus on one token by <b>click</b>.<br />
106
+ You can mask any token by <b>double click</b>.</p>
107
+ <p>You can select and de-select a head by a <b>click</b> on the heatmap columns</p>
108
+
109
+ </div>
110
+ </div>
111
+
112
+ </div>
113
+
114
+ <div id=vis-break></div>
115
+
116
+
117
+ <div class="text-center" id="atn-container">
118
+ <div id="head-info-box"></div>
119
+ <svg id="left-att-heads"></svg>
120
+ <div id="left-tokens"></div>
121
+ <svg id="atn-display"></svg>
122
+ <div id="right-tokens"></div>
123
+ <svg id="right-att-heads"></svg>
124
+ </div>
125
+
126
+ </div>
127
+
128
+ <!-- Part II of HTML -->
129
+ <hr />
130
+
131
+ <div id="corpus-selection-description">
132
+ <header>
133
+ <!-- Search <span class="inline-select" id="corpus-select">corpus</span> -->
134
+ Search <select id="corpus-select"></select>
135
+ </header>
136
+ </div>
137
+
138
+ <div id="corpus-querying">
139
+ <form>
140
+ <button class="btn btn-primary" id="search-contexts" type="button">by Context</button>
141
+ <button class="btn btn-primary" id="search-embeddings" type="button">by Embedding</button>
142
+ </form>
143
+ </div>
144
+
145
+ <div id="histograms">
146
+ <div id="matched-histogram">
147
+ <svg class="histogram" id="matched-histogram-container"></svg>
148
+ <div class="pos-selector">
149
+ <span id="match-kind">Matched</span> Word Summary:
150
+ <div id="matched-meta-select" class="btn-group btn-group-toggle" data-toggle="buttons">
151
+ <label class="btn btn-secondary active" value="pos">
152
+ <input type="radio" name="options" id="option1" autocomplete="off" value="pos"> POS
153
+ </label>
154
+ <label class="btn btn-secondary" value="dep">
155
+ <input type="radio" name="options" id="option2" autocomplete="off"> DEP
156
+ </label>
157
+ <label class="btn btn-secondary" value="is_ent">
158
+ <input type="radio" name="options" id="option3" autocomplete="off"> ENT
159
+ </label>
160
+ </div>
161
+ </div>
162
+ </div>
163
+
164
+ <div id="max-att-histogram">
165
+ <svg class="histogram" id="max-att-histogram-container"></svg>
166
+ <div class="pos-selector">
167
+ Max Attention Summary:
168
+
169
+ <div id="max-att-meta-select" class="btn-group btn-group-toggle" data-toggle="buttons">
170
+ <label class="btn btn-secondary active" value="pos">
171
+ <input type="radio" name="options" autocomplete="off" value="pos"> POS
172
+ </label>
173
+ <label class="btn btn-secondary" value="dep">
174
+ <input type="radio" name="options" autocomplete="off"> DEP
175
+ </label>
176
+ <label class="btn btn-secondary" value="is_ent">
177
+ <input type="radio" name="options" autocomplete="off"> ENT
178
+ </label>
179
+ <label class="btn btn-secondary" value="offset">
180
+ <input type="radio" name="options" autocomplete="off"> OFFSET
181
+ </label>
182
+ </div>
183
+ <!-- <select name="position-meta-dropdown" id="position-meta-dropdown">
184
+ <option value="offset">OFFSET</option>
185
+ </select> -->
186
+ </div>
187
+ </div>
188
+ </div>
189
+ </div>
190
+
191
+ </div>
192
+
193
+ <div class="vertical-separator"></div>
194
+
195
+
196
+ <div class="right-half">
197
+ <div id="corpus-vis">
198
+ <div id="corpus-control-buttons">
199
+ <button class="btn btn-xs btn-secondary" id="minus-left" type="button">+</button>
200
+ <button class="btn btn-xs btn-danger" id="kill-left" type="button">-</button>
201
+ <span>&larr;||&rarr;</span>
202
+ <button class="btn btn-xs btn-danger" id="kill-right" type="button">-</button>
203
+ <button class="btn btn-xs btn-secondary" id="plus-right" type="button">+</button>
204
+ <button class="btn btn-xs btn-info" id="mat-refresh" type="button">&#8635;</button>
205
+ </div>
206
+
207
+
208
+ <div class="vpartial-90 scrolling">
209
+ <div class="whitespace"></div>
210
+ <div id="corpus-msg-box"></div>
211
+ <div id="main-corpus-vis">
212
+ <div id="corpus-mat-container"></div>
213
+ <div id="corpus-similar-sentences-div"></div>
214
+ </div>
215
+ </div>
216
+ </div>
217
+
218
+ </div>
219
+ </div>
220
+
221
+ <script src="vendor.js"></script>
222
+ <script src="main.js"></script>
223
+
224
+ </body>
225
+
226
+ </html>
client/dist/img/annotated_instructions2.png ADDED
client/dist/img/exBERT.png ADDED
client/dist/img/exBERT.svg ADDED
client/dist/img/exBERT_favicon.png ADDED
client/dist/img/exBERT_overview.png ADDED
client/dist/img/exbert_teaser_V2.png ADDED
client/dist/img/favicon.png ADDED
client/dist/img/harvardnlp_logo.png ADDED
client/dist/index.html ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <!-- Global site tag (gtag.js) - Google Analytics -->
6
+ <script async src="https://www.googletagmanager.com/gtag/js?id=UA-149275901-1"></script>
7
+ <script>
8
+ window.dataLayer = window.dataLayer || [];
9
+ function gtag() { dataLayer.push(arguments); }
10
+ gtag('js', new Date());
11
+
12
+ gtag('config', 'UA-149275901-2');
13
+ </script>
14
+ <meta charset="UTF-8">
15
+ <title>exBERT</title>
16
+ <!--<link rel="stylesheet" href="bootstrap.min.css">-->
17
+ <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet"
18
+ integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
19
+ <link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/cosmo/bootstrap.min.css" rel="stylesheet"
20
+ integrity="sha384-OiWEn8WwtH+084y4yW2YhhH6z/qTSecHZuk/eiWtnvLtU+Z8lpDsmhOKkex6YARr" crossorigin="anonymous">
21
+ <!-- <link rel="stylesheet" type="text/css" href="css/index.scss">-->
22
+ <link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans:300,400&display=swap" rel="stylesheet">
23
+
24
+
25
+ <link rel="shortcut icon" href="./img/exBERT_favicon.png" type="image/png">
26
+ <style>
27
+ body {
28
+ font-family: 'IBM Plex Sans', sans-serif;
29
+
30
+ }
31
+
32
+ h1,
33
+ h2,
34
+ h3 {
35
+ font-family: inherit;
36
+ }
37
+
38
+ h3 {
39
+ font-weight: normal;
40
+ color: white;
41
+ }
42
+
43
+ a {
44
+ color: black;
45
+ }
46
+
47
+ a:hover {
48
+ color: black;
49
+ font-weight: 500;
50
+ }
51
+ </style>
52
+ <meta name="title" content="exBERT" />
53
+ <meta name="description" content="A visual exploration of BERT's latent space" />
54
+ <link rel="image_src" href="http://lstm.seas.harvard.edu/small_teaser.png" />
55
+ </head>
56
+
57
+ <body>
58
+ <div class="container">
59
+ <div class="page-header">
60
+ <h1>
61
+ <img src="./img/exBERT.png" height="50" />
62
+ - A Visual Analysis of BERT
63
+ </h1>
64
+ <p class="lead">
65
+ <a target="_blank" href="">Benjamin Hoover</a>,
66
+ <a target="_blank" href="http://hendrik.strobelt.com">Hendrik Strobelt</a>,
67
+ <a target="_blank" href="http://scholar.harvard.edu/gehrmann/home">Sebastian Gehrmann</a>
68
+ </p>
69
+ </div>
70
+
71
+ <p>
72
+ Large language models can produce powerful contextual representations that lead to improvements across many
73
+ NLP tasks.
74
+ Since these models are typically guided by a sequence of learned self attention mechanisms and may comprise
75
+ undesired inductive biases, it is paramount to be able to explore what the attention has learned.
76
+ While static analyses of these models lead to targeted insights, interactive tools are more dynamic and can
77
+ help humans better gain an intuition for the model-internal reasoning process.
78
+ </p>
79
+
80
+ <p>
81
+ We present <b>exBERT</b> , an interactive tool named after the popular BERT language model, that provides
82
+ insights into the meaning of the contextual representations by matching a human-specified input to similar
83
+ contexts in a large annotated dataset.
84
+ By aggregating the annotations of the matching similar contexts, <b>exBERT</b> helps intuitively explain
85
+ what each attention-head has learned.
86
+ </p>
87
+
88
+ <p> Large language models can produce powerful contextual representations that lead to improvements across many
89
+ NLP tasks. Though these models can comprise undesired inductive biases, it is challenging to identify what
90
+ information they encode in their learned representations. </p>
91
+
92
+ <p> Since the model-internal reasoning process is often guided by a sequence of learned self-attention
93
+ mechanisms, it is paramount to be able to explore what the attention has learned. While static analyses for
94
+ this can lead to targeted insights, interactive tools can be more dynamic and help humans gain an intuition
95
+ for the model-internal reasoning process. We present exBERT, a tool that helps to gain insights into the
96
+ meaning of the contextual representations. exBERT matches a human-specified input to similar contexts in a
97
+ large annotated dataset. By aggregating these annotations across all similar contexts, exBERT can help to
98
+ explain what each attention-head has learned. </p>
99
+
100
+ <p> Thanks to
101
+ <a target="_blank" href="https://www.parc.com/about-parc/our-people/jesse-vig/">Jesse Vig</a>
102
+ for feedback. Please let us know what you think by commenting below! </p>
103
+
104
+ <div style="height: 20px"></div>
105
+
106
+
107
+ <div class="row">
108
+ <div class="col-md-4">
109
+ <div class="text-center" style="background-color: rgb(81,116,144);">
110
+ <a href="exBERT.html">
111
+ <h3><i class="fa fa-rocket" aria-hidden="true" style="font-size: 80%; "></i> Live Server </h3>
112
+ </a>
113
+ </div>
114
+
115
+
116
+ </div>
117
+ <div class="col-md-4">
118
+ <div class="text-center" style="background-color: rgb(203,122,130);padding: inherit">
119
+ <a href="https://github.com/bhoov/transformer-viz">
120
+ <h3><i class="fa fa-github" aria-hidden="true" style="font-size: 80%;"></i> Source Code </h3>
121
+ </a>
122
+ </div>
123
+ </div>
124
+ <div class="col-md-4">
125
+ <div class="text-center" style="background-color: rgb(152,152,152);padding: inherit">
126
+ <a href="">
127
+ <h3><i class="fa fa-book" aria-hidden="true" style="font-size: 80%;"></i> Pre-Publication </h3>
128
+ </a>
129
+ </div>
130
+ </div>
131
+ </div>
132
+
133
+
134
+ <div class="row">
135
+ <div class="col-md-8 col-md-offset-2">
136
+ <div class='col-sm'>
137
+ <img id='tool-screenshot' src="./img/exBERT_overview.png" alt="Tool screenshot" height="600px">
138
+ </div>
139
+ </div>
140
+ </div>
141
+
142
+ <hr>
143
+
144
+ <div class="row">
145
+ <div class="col-md-4">
146
+ <div class="text-center" style="background-color: rgb(81,116,144);">
147
+ <a href="exBERT.html">
148
+ <h3><i class="fa fa-rocket" aria-hidden="true" style="font-size: 80%; "></i> Live Server </h3>
149
+ </a>
150
+ </div>
151
+
152
+
153
+ </div>
154
+ <div class="col-md-4">
155
+ <div class="text-center" style="background-color: rgb(203,122,130);padding: inherit">
156
+ <a href="https://github.com/bhoov/transformer-viz">
157
+ <h3><i class="fa fa-github" aria-hidden="true" style="font-size: 80%;"></i> Source Code </h3>
158
+ </a>
159
+ </div>
160
+ </div>
161
+ <div class="col-md-4">
162
+ <div class="text-center" style="background-color: rgb(152,152,152);padding: inherit">
163
+ <a href="">
164
+ <h3><i class="fa fa-book" aria-hidden="true" style="font-size: 80%;"></i> Pre-Publication </h3>
165
+ </a>
166
+ </div>
167
+ </div>
168
+ </div>
169
+
170
+
171
+ <div class="vspace-40"></div>
172
+
173
+ <div class="row">
174
+ <div class="col-12 text-center gray-1">
175
+ <p></p>
176
+ <p>We care about your privacy, but know that your activity on the site may be monitored. For more
177
+ information, check out the links below.</p>
178
+ </div>
179
+ </div>
180
+
181
+ <div class="row">
182
+ <div class="col-lg-12 text-center gray-1">
183
+ <a target="_blank" href="http://www.ibm.com/legal/us/en/?lnk=flg-tous-usen" class="gray-1">Terms of
184
+ Use</a> |
185
+ <a target="_blank" href="http://www.ibm.com/privacy/us/en/?lnk=flg-priv-usen" class="gray-1">Privacy</a>
186
+ </div>
187
+ </div>
188
+
189
+
190
+ <hr>
191
+
192
+ <div class="row justify-content-md-center">
193
+ <!-- <div class="col-xs-offset-2 col-lg-4 text-center" style="font-size: 16pt;"> -->
194
+ <div class="col-lg-6 text-center" style="font-size: 16pt;">
195
+ <span style="white-space: nowrap;"><b>IBM</b> Research, Cambridge </span><br>
196
+ <b>MIT-IBM</b> Watson <b>AI Lab</b>
197
+ </div>
198
+ <div class="col-xs-3 text-center">
199
+ <a target="_blank" href="http://nlp.seas.harvard.edu/"><img class="img-responsive"
200
+ src="./img/harvardnlp_logo.png"></a>
201
+ </div>
202
+ </div>
203
+
204
+
205
+
206
+
207
+ <!-- DISQUS THREAD -->
208
+ <div id="disqus_thread"></div>
209
+ <script>
210
+
211
+ /**
212
+ * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
213
+ * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
214
+ /*
215
+ var disqus_config = function () {
216
+ this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
217
+ this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
218
+ };
219
+ */
220
+ (function () { // DON'T EDIT BELOW THIS LINE
221
+ var d = document, s = d.createElement('script');
222
+ s.src = 'https://exbert.disqus.com/embed.js';
223
+ s.setAttribute('data-timestamp', +new Date());
224
+ (d.head || d.body).appendChild(s);
225
+ })();
226
+ </script>
227
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by
228
+ Disqus.</a></noscript>
229
+
230
+ </div>
231
+
232
+
233
+ <!-- <script id="dsq-count-scr" src="//exbert.disqus.com/count.js" async></script> -->
234
+ </body>
235
+
236
+ </html>
client/dist/main.css ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ @font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:300;src:local("IBM Plex Sans Light"),local("IBMPlexSans-Light"),url(7eeb10384e8e1ef96c87f7074cf2ef59.ttf) format("truetype")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;src:local("IBM Plex Sans Regular"),local("IBMPlexSans-Regular"),url(05ca9c06114e79436ea9b5c8d4a7869c.ttf) format("truetype")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;src:local("IBM Plex Sans SemiBold"),local("IBMPlexSans-SemiBold"),url(a849e7649e2005ab4aecfa50d96120e1.ttf) format("truetype")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:700;src:local("IBM Plex Sans Bold"),local("IBMPlexSans-Bold"),url(4171e41154ba857f85c536f167d581ba.ttf) format("truetype")}
2
+ body{background-color:#fff;font-family:IBM Plex Sans,sans-serif;font-weight:400}.sticky{position:fixed}.noscroll{overflow:hidden}.vpartial{max-height:90vh}.scrolling{overflow:auto;max-height:98%}.btn .btn-xs{padding:.25rem .4rem;font-size:.875rem;line-height:.5;border-radius:.2rem}button{-webkit-transition-duration:.4s;transition-duration:.4s;background:transparent;padding:5px;border-radius:5px;background-color:#d3d3d3}button.selected,button:active :focus{background-color:#98b7d9}#loader{border:5px solid #f3f3f3;border-radius:50%;border-top:5px solid #3498db;width:100px;height:100px;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;position:absolute;left:50%;top:20%;display:none}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}svg{vertical-align:top}select{font-size:9pt;font-weight:600;background-color:transparent;padding:8px 6px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:0;outline:0}.navbar{position:absolute;top:0;left:0;width:100%;height:50px;background-color:#faebd7}.navbarContent{margin:10px 20px}.navbarContent span{padding-left:10px}.navbarContent button{margin-left:10px}.navbarTitle{font-size:12pt;font-weight:700}.main_frame{position:fixed;top:55px;overflow-x:hidden;overflow-y:auto}.floating_content{padding:10px;height:94%}.container{width:100%;height:95%;text-align:center;display:inline-block;margin:5px auto}#bottom-margin{height:100px}.content{max-width:960px;margin:auto}.whitespace{height:8vh}#sentence-input{margin-bottom:-30px;margin-right:-30px;margin-left:10px;width:90%}#sentence-input form{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-evenly;align-items:center}#sentence-input form .form-group{flex-grow:3}#sentence-input form .form-group input{width:100%;margin-right:5%}#sentence-input form .padding{flex-grow:0.3}#sentence-input form .btn{flex-grow:1}.input-description{font-weight:800}.connector-controls{display:grid;grid-template-columns:.5fr .5fr}.slide-container{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2;margin:auto;text-align:center;width:75%}.slider{-webkit-appearance:none;width:10px;height:10px;border-radius:5px;background:#d3d3d3;outline:none;opacity:.7;-webkit-transition:.2s;transition:opacity .2s}.slider:hover{opacity:1}.slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:15px;height:15px;border-radius:50%;background:#666;cursor:pointer}#layer-selection{grid-column-start:1;grid-column-end:2;grid-row-start:2;grid-row-end:3}.layer-select{margin-bottom:2em}#atn-container{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:top;margin:0 auto;width:100%;vertical-align:top}#atn-container #left-att-heads{order:1;display:inline-block;vertical-align:top}#atn-container #left-tokens{order:2;text-align:right;vertical-align:top}#atn-container #atn-display{order:3;vertical-align:top}#atn-container #right-tokens{order:4;text-align:left;vertical-align:top}#atn-container #right-att-heads{order:5;vertical-align:top}.att-rect{transition:fill .1s}.token{display:block}.atn-curve{fill:none;stroke:purple}.masked-token{color:rgba(0,0,0,.2)}.unselected{fill:gray}.selected-token{border:3px solid #99c400}.switch{position:relative;display:inline-block;width:60px;height:34px}.switch input{opacity:0;width:0;height:0}.short-slider{cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc}.short-slider,.short-slider:before{position:absolute;-webkit-transition:.4s;transition:.4s}.short-slider:before{content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:#fff}input:checked+.short-slider{background-color:#2196f3}input:focus+.short-slider{box-shadow:0 0 1px #2196f3}input:checked+.short-slider:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translateX(26px)}.short-slider.round{border-radius:34px}.short-slider.round:before{border-radius:50%}#select-all-heads{margin-top:20px;margin-bottom:20px}#corpus-vis{margin:0 auto}#corpus-vis #main-corpus-vis{display:-webkit-flex;display:flex}#corpus-vis #main-corpus-vis #corpus-mat-container{-webkit-flex:initial;flex:initial;vertical-align:top;float:left}#corpus-vis #main-corpus-vis #corpus-mat-container .corpus-mat{display:inline-block;margin-right:.05em;margin-left:.05em}#corpus-vis #main-corpus-vis #corpus-mat-container .offset-0{border:.2em solid #000}#corpus-vis #main-corpus-vis #corpus-mat-container .mat-hover-display{pointer-events:none;display:flex;position:absolute;visibility:hidden;background-color:#c8c8c8;border-radius:8px 8px 1px 8px;margin:auto}#corpus-vis #main-corpus-vis #corpus-mat-container .mat-hover-display p{margin:auto}#corpus-vis #main-corpus-vis #corpus-similar-sentences-div{-webkit-flex:1;flex:1;vertical-align:top;float:left;max-width:80%;max-height:100%}#corpus-vis #main-corpus-vis #corpus-similar-sentences-div .hovered-col{color:orange}#corpus-vis .btn{margin-left:.25em}#corpus-vis .inspector-row{display:block;margin-left:10px;padding-top:.5em;padding-bottom:.5em}#corpus-vis .inspector-cell{display:inline-block;margin-right:3px;text-align:left}#corpus-vis .celltooltip{position:relative;display:inline-block;border-bottom:1px dotted #000}#corpus-vis .celltooltip .tooltiptext{visibility:hidden;width:120px;background-color:#000;color:#fff;text-align:center;padding:5px 0;border-radius:6px;position:absolute}#corpus-vis .celltooltip:hover .tooltiptext{width:120px;bottom:100%;left:50%;margin-left:-60px;visibility:visible}#corpus-vis .celltooltip .tooltiptext:after{content:" ";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#000 transparent transparent}#corpus-vis .matched-cell{border:3px solid #99c400;border-radius:.4em}#corpus-vis .gray-cell{color:rgba(0,0,0,.35)}#corpus-vis .next-cell{color:rgba(228,1,1,.8);-moz-box-shadow:0 0 3px #ccc;-webkit-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc}#histograms{display:block;max-width:100%}#histograms .histogram{display:inline-block;overflow-x:auto}#histograms div{margin-top:10px}#histograms #max-att-histogram .bar{fill:#000}.pos-selector{margin-bottom:40px}body{font-family:IBM Plex Sans}.layerCheckbox{background-color:#d3d3d3;padding-left:8px;padding-right:8px}.layerCheckbox.active{color:#fff;background-color:#6c7067}.main-grid{width:100%;display:grid;grid-template-columns:.18fr .2fr .2fr .04fr .2fr .2fr .18fr;overflow:auto;max-height:100vh}.left-half{grid-column-start:1;grid-column-end:4;margin-left:10px;margin-right:10px}.vpartial-90{max-height:90vh}.vpartial-95{max-height:95vh}.right-half{grid-column-start:5;grid-column-end:9;max-height:98vh}.vertical-separator{border-left:thick solid #42222298;margin:0 auto;margin-top:10px;margin-bottom:10px;border-radius:3px;grid-column-start:4;grid-column-end:5;grid-row-start:1;grid-row-end:5}#vis-break{height:15px}label{margin-left:5px}#header{width:100%;background-color:#d3d3d3;height:40px;margin-bottom:5px}#header .header-logo{height:20px;display:inline-block;margin-left:10px;margin-top:5px;margin-bottom:5px}#header .header-info{font-size:9pt;height:30px;display:inline-block;float:right;margin-right:10px;margin-top:10px}#header #headertext{text-align:center;display:inline-block;font-size:18px;margin-left:30%;margin-top:5px;margin-bottom:5px}.highlighted{background:rgba(152,83,216,.8)}#meta-dropdown,#position-meta-dropdown{margin-bottom:.75em;margin-left:4em}#corpus-control-buttons{margin-bottom:1em;position:fixed relative}#corpus-control-buttons span{margin-left:5px}#selected-heads{margin-bottom:1em}#corpus-selection-description{display:inline-block;margin-right:15px}#corpus-querying,#corpus-querying .btn{display:inline-block}#usage-info{margin-top:10px;color:#575757;font-size:14px}.tick{font-size:18px}#connector-container .mat-hover-display{pointer-events:none;display:block;position:absolute;visibility:hidden;background-color:hsla(0,0%,78%,.93);font-size:14px}#connector-container .mat-hover-display p{margin:4px 1px 1px 4px}.right-token-hover{border-radius:1px 8px 8px 8px;text-align:left}.left-token-hover{border-radius:8px 1px 8px 8px;text-align:right}.next-token{color:rgba(228,1,1,.8);-moz-box-shadow:0 0 3px #ccc;-webkit-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc}
3
+
4
+ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9mb250cy9wbGV4X3NhbnMuY3NzIiwid2VicGFjazovLy8uL2Nzcy9jc3MvYmFzZS5zY3NzIiwid2VicGFjazovLy8uL2Nzcy9jc3MvU2VudGVuY2VJbnB1dC5zY3NzIiwid2VicGFjazovLy8uL2Nzcy9jc3MvQXR0ZW50aW9uQ29ubmVjdG9yQ29udHJvbHMuc2NzcyIsIndlYnBhY2s6Ly8vLi9jc3MvY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yB7XG4gICAgZGlzcGxheTogLXdlYmtpdC1mbGV4O1xuICAgIGRpc3BsYXk6IGZsZXg7XG5cbiAgICAjY29ycHVzLW1hdC1jb250YWluZXIge1xuICAgICAgLXdlYmtpdC1mbGV4OiBpbml0aWFsO1xuICAgICAgZmxleDogaW5pdGlhbDtcbiAgICAgIHZlcnRpY2FsLWFsaWduOiB0b3A7XG4gICAgICBmbG9hdDogbGVmdDtcblxuICAgICAgLmNvcnB1cy1tYXQge1xuICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgICAgIG1hcmdpbi1yaWdodDogMC4wNWVtO1xuICAgICAgICBtYXJnaW4tbGVmdDogMC4wNWVtO1xuICAgICAgfVxuXG4gICAgICAub2Zmc2V0LTAge1xuICAgICAgICBib3JkZXI6IDAuMmVtIHNvbGlkIGJsYWNrO1xuICAgICAgfVxuXG4gICAgICAubWF0LWhvdmVyLWRpc3BsYXkge1xuICAgICAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgICB2aXNpYmlsaXR5OiBoaWRkZW47XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjAwLCAyMDAsIDIwMCwgMSk7XG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDhweCA4cHggMXB4IDhweDtcbiAgICAgICAgbWFyZ2luOiBhdXRvO1xuICAgICAgICBwIHtcbiAgICAgICAgICBtYXJnaW46IGF1dG87XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICAjY29ycHVzLXNpbWlsYXItc2VudGVuY2VzLWRpdiB7XG4gICAgICAtd2Via2l0LWZsZXg6IDE7XG4gICAgICBmbGV4OiAxO1xuICAgICAgdmVydGljYWwtYWxpZ246IHRvcDtcbiAgICAgIGZsb2F0OiBsZWZ0O1xuICAgICAgbWF4LXdpZHRoOiA4MCU7XG4gICAgICBtY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G4gICAgdmlzaWJpbGl0eTogaGlkZGVuO1xuICAgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjAwLCAyMDAsIDIwMCwgMC45Myk7XG4gICAgZm9udC1zaXplOiAxNHB4O1xuICAgIHAge1xuICAgICAgbWFyZ2luOiA0cHggMXB4IDFweCA0cHg7XG4gICAgICAvLyBtYXJnaW46IGF1dG87XG4gICAgfVxuICB9XG59XG5cbi5yaWdodC10b2tlbi1ob3ZlciB7XG4gICAgYm9yZGVyLXJhZGl1czogMXB4IDhweCA4cHggOHB4O1xuICAgIHRleHQtYWxpZ246IGxlZnQ7XG59XG5cbi5sZWZ0LXRva2VuLWhvdmVyIHtcbiAgICBib3JkZXItcmFkaXVzOiA4cHggMXB4IDhweCA4cHg7XG4gICAgdGV4dC1hbGlnbjogcmlnaHQ7XG59XG5cbi5uZXh0LXRva2VuIHtcbiAgY29sb3I6IHJnYmEoMjI4LCAxLCAxLCAwLjgpO1xuICAtbW96LWJveC1zaGFkb3c6IDAgMCAzcHggI2NjYztcbiAgLXdlYmtpdC1ib3gtc2hhZG93OiAwIDAgM3B4ICNjY2M7XG4gIGJveC1zaGFkb3c6IDAgMCAzcHggI2NjYztcbn0iXSwic291cmNlUm9vdCI6IiJ9*/
client/dist/main.js ADDED
The diff for this file is too large to render. See raw diff
 
client/dist/vendor.js ADDED
The diff for this file is too large to render. See raw diff
 
client/src/css/AttentionConnector.css ADDED
@@ -0,0 +1 @@
 
 
1
+ /* No CSS *//*# sourceMappingURL=AttentionConnector.css.map */
client/src/css/AttentionConnector.css.map ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 3,
3
+ "mappings": "",
4
+ "sources": [
5
+ "AttentionConnector.scss"
6
+ ],
7
+ "names": [],
8
+ "file": "AttentionConnector.css"
9
+ }
client/src/css/AttentionConnector.scss ADDED
File without changes
client/src/css/AttentionConnectorControls.css ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .input-description {
2
+ font-weight: 800;
3
+ }
4
+
5
+ .connector-controls {
6
+ display: -ms-grid;
7
+ display: grid;
8
+ -ms-grid-columns: 0.5fr 0.5fr;
9
+ grid-template-columns: 0.5fr 0.5fr;
10
+ }
11
+
12
+ .slide-container {
13
+ -ms-grid-column: 1;
14
+ grid-column-start: 1;
15
+ grid-column-end: 2;
16
+ -ms-grid-row: 1;
17
+ grid-row-start: 1;
18
+ grid-row-end: 2;
19
+ margin: auto;
20
+ text-align: center;
21
+ width: 75%;
22
+ }
23
+
24
+ .slider {
25
+ -webkit-appearance: none;
26
+ width: 10px;
27
+ height: 10px;
28
+ border-radius: 5px;
29
+ background: #d3d3d3;
30
+ outline: none;
31
+ opacity: 0.7;
32
+ -webkit-transition: .2s;
33
+ -webkit-transition: opacity .2s;
34
+ transition: opacity .2s;
35
+ }
36
+
37
+ .slider:hover {
38
+ opacity: 1;
39
+ }
40
+
41
+ .slider::-webkit-slider-thumb {
42
+ -webkit-appearance: none;
43
+ appearance: none;
44
+ width: 15px;
45
+ height: 15px;
46
+ border-radius: 50%;
47
+ background: #666666;
48
+ cursor: pointer;
49
+ }
50
+
51
+ #layer-selection {
52
+ -ms-grid-column: 1;
53
+ grid-column-start: 1;
54
+ grid-column-end: 2;
55
+ -ms-grid-row: 2;
56
+ grid-row-start: 2;
57
+ grid-row-end: 3;
58
+ }
59
+
60
+ .layer-select {
61
+ margin-bottom: 2em;
62
+ }
63
+
64
+ #atn-container {
65
+ display: -webkit-box;
66
+ display: -ms-flexbox;
67
+ display: flex;
68
+ -webkit-box-orient: horizontal;
69
+ -webkit-box-direction: normal;
70
+ -ms-flex-direction: row;
71
+ flex-direction: row;
72
+ -ms-flex-wrap: nowrap;
73
+ flex-wrap: nowrap;
74
+ -webkit-box-pack: center;
75
+ -ms-flex-pack: center;
76
+ justify-content: center;
77
+ -webkit-box-align: center;
78
+ -ms-flex-align: center;
79
+ align-items: center;
80
+ margin: 0 auto;
81
+ width: 100%;
82
+ vertical-align: top;
83
+ }
84
+
85
+ #atn-container #left-att-heads {
86
+ -webkit-box-ordinal-group: 2;
87
+ -ms-flex-order: 1;
88
+ order: 1;
89
+ display: inline-block;
90
+ vertical-align: top;
91
+ }
92
+
93
+ #atn-container #left-tokens {
94
+ -webkit-box-ordinal-group: 3;
95
+ -ms-flex-order: 2;
96
+ order: 2;
97
+ text-align: right;
98
+ vertical-align: top;
99
+ }
100
+
101
+ #atn-container #atn-display {
102
+ -webkit-box-ordinal-group: 4;
103
+ -ms-flex-order: 3;
104
+ order: 3;
105
+ vertical-align: top;
106
+ }
107
+
108
+ #atn-container #right-tokens {
109
+ -webkit-box-ordinal-group: 5;
110
+ -ms-flex-order: 4;
111
+ order: 4;
112
+ text-align: left;
113
+ vertical-align: top;
114
+ }
115
+
116
+ #atn-container #right-att-heads {
117
+ -webkit-box-ordinal-group: 6;
118
+ -ms-flex-order: 5;
119
+ order: 5;
120
+ vertical-align: top;
121
+ }
122
+
123
+ .att-rect {
124
+ -webkit-transition: fill 0.1s;
125
+ transition: fill 0.1s;
126
+ }
127
+
128
+ .token {
129
+ display: block;
130
+ }
131
+
132
+ .atn-curve {
133
+ fill: none;
134
+ stroke: purple;
135
+ }
136
+
137
+ .masked-token {
138
+ color: rgba(0, 0, 0, 0.2);
139
+ }
140
+
141
+ .unselected {
142
+ fill: gray;
143
+ }
144
+
145
+ .selected-token {
146
+ border-style: solid;
147
+ border-width: 3px;
148
+ border-color: #99c400;
149
+ }
150
+
151
+ /* The switch - the box around the slider */
152
+ .switch {
153
+ position: relative;
154
+ display: inline-block;
155
+ width: 60px;
156
+ height: 34px;
157
+ /* Hide default HTML checkbox */
158
+ }
159
+
160
+ .switch input {
161
+ opacity: 0;
162
+ width: 0;
163
+ height: 0;
164
+ }
165
+
166
+ /* The slider */
167
+ .short-slider {
168
+ position: absolute;
169
+ cursor: pointer;
170
+ top: 0;
171
+ left: 0;
172
+ right: 0;
173
+ bottom: 0;
174
+ background-color: #ccc;
175
+ -webkit-transition: .4s;
176
+ transition: .4s;
177
+ }
178
+
179
+ .short-slider:before {
180
+ position: absolute;
181
+ content: "";
182
+ height: 26px;
183
+ width: 26px;
184
+ left: 4px;
185
+ bottom: 4px;
186
+ background-color: white;
187
+ -webkit-transition: .4s;
188
+ transition: .4s;
189
+ }
190
+
191
+ input:checked + .short-slider {
192
+ background-color: #2196F3;
193
+ }
194
+
195
+ input:focus + .short-slider {
196
+ -webkit-box-shadow: 0 0 1px #2196F3;
197
+ box-shadow: 0 0 1px #2196F3;
198
+ }
199
+
200
+ input:checked + .short-slider:before {
201
+ -webkit-transform: translateX(26px);
202
+ transform: translateX(26px);
203
+ }
204
+
205
+ /* Rounded sliders */
206
+ .short-slider.round {
207
+ border-radius: 34px;
208
+ }
209
+
210
+ .short-slider.round:before {
211
+ border-radius: 50%;
212
+ }
213
+
214
+ #select-all-heads {
215
+ margin-top: 20px;
216
+ margin-bottom: 20px;
217
+ }
218
+ /*# sourceMappingURL=AttentionConnectorControls.css.map */
client/src/css/AttentionConnectorControls.css.map ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 3,
3
+ "mappings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AAC;CACT;;AAGF,gBAAgB;AAChB,AAAA,aAAa,CAAC;EACb,QAAQ,EAAE,QAAQ;EAClB,MAAM,EAAE,OAAO;EACf,GAAG,EAAE,CAAC;EACN,IAAI,EAAE,CAAC;EACP,KAAK,EAAE,CAAC;EACR,MAAM,EAAE,CAAC;EACT,gBAAgB,EAAE,IAAI;EACtB,kBAAkB,EAAE,GAAG;EACvB,UAAU,EAAE,GAAG;CAaf;;AAtBD,AAWC,aAXY,AAWX,OAAO,CAAC;EACR,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,EAAE;EACX,MAAM,EAAE,IAAI;EACZ,KAAK,EAAE,IAAI;EACX,IAAI,EAAE,GAAG;EACT,MAAM,EAAE,GAAG;EACX,gBAAgB,EAAE,KAAK;EACvB,kBAAkB,EAAE,GAAG;EACvB,UAAU,EAAE,GAAG;CACf;;AAGF,AAAA,KAAK,AAAA,QAAQ,GAAG,aAAa,CAAC;EAC7B,gBAAgB,EAAE,OAAO;CACzB;;AAED,AAAA,KAAK,AAAA,MAAM,GAAG,aAAa,CAAC;EAC3B,UAAU,EAAE,eAAe;CAC3B;;AAED,AAAA,KAAK,AAAA,QAAQ,GAAG,aAAa,AAAA,OAAO,CAAC;EACpC,iBAAiB,EAAE,gBAAgB;EACnC,aAAa,EAAE,gBAAgB;EAC/B,SAAS,EAAE,gBAAgB;CAC3B;;AAED,qBAAqB;AACrB,AAAA,aAAa,AAAA,MAAM,CAAC;EACnB,aAAa,EAAE,IAAI;CACnB;;AAED,AAAA,aAAa,AAAA,MAAM,AAAA,OAAO,CAAC;EAC1B,aAAa,EAAE,GAAG;CAClB;;AAED,AAAA,iBAAiB,CAAA;EAChB,UAAU,EAAE,IAAI;EAChB,aAAa,EAAE,IAAI;CACnB",
4
+ "sources": [
5
+ "AttentionConnectorControls.scss"
6
+ ],
7
+ "names": [],
8
+ "file": "AttentionConnectorControls.css"
9
+ }
client/src/css/AttentionConnectorControls.scss ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .input-description {
2
+ font-weight: 800
3
+ }
4
+
5
+ .connector-controls {
6
+ display: grid;
7
+ grid-template-columns: 0.5fr 0.5fr;
8
+ }
9
+
10
+ .slide-container {
11
+ grid-column-start: 1;
12
+ grid-column-end: 2;
13
+ grid-row-start: 1;
14
+ grid-row-end: 2;
15
+ margin: auto;
16
+ text-align: center;
17
+ width: 75%;
18
+ }
19
+
20
+ .slider {
21
+ -webkit-appearance: none;
22
+ width: 10px;
23
+ height: 10px;
24
+ border-radius: 5px;
25
+ background: #d3d3d3;
26
+ outline: none;
27
+ opacity: 0.7;
28
+ -webkit-transition: .2s;
29
+ transition: opacity .2s;
30
+ }
31
+
32
+ .slider:hover {
33
+ opacity: 1;
34
+ }
35
+
36
+ .slider::-webkit-slider-thumb {
37
+ -webkit-appearance: none;
38
+ appearance: none;
39
+ width: 15px;
40
+ height: 15px;
41
+ border-radius: 50%;
42
+ background: #666666;
43
+ cursor: pointer;
44
+ }
45
+
46
+ #layer-selection {
47
+ grid-column-start: 1;
48
+ grid-column-end: 2;
49
+ grid-row-start: 2;
50
+ grid-row-end: 3;
51
+
52
+ }
53
+ .layer-select {
54
+ margin-bottom: 2em;
55
+ }
56
+
57
+ #atn-container {
58
+ display: flex;
59
+ flex-direction: row;
60
+ flex-wrap: nowrap;
61
+ justify-content: center;
62
+ align-items: top;
63
+
64
+ margin: 0 auto;
65
+ width: 100%;
66
+ vertical-align: top;
67
+
68
+ #left-att-heads {
69
+ order:1;
70
+ display: inline-block;
71
+ vertical-align: top;
72
+ }
73
+
74
+ #left-tokens {
75
+ order: 2;
76
+ text-align: right;
77
+ vertical-align: top;
78
+ }
79
+
80
+
81
+ #atn-display {
82
+ order: 3;
83
+ vertical-align: top;
84
+ }
85
+
86
+ #right-tokens {
87
+ order: 4;
88
+ text-align: left;
89
+ vertical-align: top;
90
+ }
91
+
92
+ #right-att-heads {
93
+ order: 5;
94
+ vertical-align: top;
95
+ }
96
+
97
+ }
98
+
99
+ .att-rect {
100
+ transition: fill 0.1s;
101
+ }
102
+
103
+ .token {
104
+ display: block;
105
+ }
106
+
107
+ .atn-curve {
108
+ fill: none;
109
+ // stroke-width: 3;
110
+ stroke: purple;
111
+ }
112
+
113
+ .masked-token {
114
+ color: rgba(0,0,0,0.2)
115
+ }
116
+
117
+ .unselected {
118
+ fill: gray;
119
+ }
120
+
121
+ .selected-token {
122
+ border-style: solid;
123
+ border-width: 3px;
124
+ border-color: rgb(153, 196, 0);
125
+ }
126
+
127
+ /* The switch - the box around the slider */
128
+ .switch {
129
+ position: relative;
130
+ display: inline-block;
131
+ width: 60px;
132
+ height: 34px;
133
+
134
+ /* Hide default HTML checkbox */
135
+ input {
136
+ opacity: 0;
137
+ width: 0;
138
+ height: 0;
139
+ }
140
+ }
141
+
142
+ /* The slider */
143
+ .short-slider {
144
+ position: absolute;
145
+ cursor: pointer;
146
+ top: 0;
147
+ left: 0;
148
+ right: 0;
149
+ bottom: 0;
150
+ background-color: #ccc;
151
+ -webkit-transition: .4s;
152
+ transition: .4s;
153
+
154
+ &:before {
155
+ position: absolute;
156
+ content: "";
157
+ height: 26px;
158
+ width: 26px;
159
+ left: 4px;
160
+ bottom: 4px;
161
+ background-color: white;
162
+ -webkit-transition: .4s;
163
+ transition: .4s;
164
+ }
165
+ }
166
+
167
+ input:checked + .short-slider {
168
+ background-color: #2196F3;
169
+ }
170
+
171
+ input:focus + .short-slider {
172
+ box-shadow: 0 0 1px #2196F3;
173
+ }
174
+
175
+ input:checked + .short-slider:before {
176
+ -webkit-transform: translateX(26px);
177
+ -ms-transform: translateX(26px);
178
+ transform: translateX(26px);
179
+ }
180
+
181
+ /* Rounded sliders */
182
+ .short-slider.round {
183
+ border-radius: 34px;
184
+ }
185
+
186
+ .short-slider.round:before {
187
+ border-radius: 50%;
188
+ }
189
+
190
+ #select-all-heads{
191
+ margin-top: 20px;
192
+ margin-bottom: 20px;
193
+ }
client/src/css/CorpusVis.css ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #corpus-vis {
2
+ margin: 0 auto;
3
+ /* Tooltip container */
4
+ /* Tooltip text */
5
+ /* Show the tooltip text when you mouse over the tooltip container */
6
+ /* Add little arrow to box */
7
+ }
8
+
9
+ #corpus-vis #main-corpus-vis {
10
+ display: -webkit-box;
11
+ display: -ms-flexbox;
12
+ display: flex;
13
+ }
14
+
15
+ #corpus-vis #main-corpus-vis #corpus-mat-container {
16
+ -webkit-box-flex: initial;
17
+ -ms-flex: initial;
18
+ flex: initial;
19
+ vertical-align: top;
20
+ float: left;
21
+ }
22
+
23
+ #corpus-vis #main-corpus-vis #corpus-mat-container .corpus-mat {
24
+ display: inline-block;
25
+ margin-right: 0.05em;
26
+ margin-left: 0.05em;
27
+ }
28
+
29
+ #corpus-vis #main-corpus-vis #corpus-mat-container .offset-0 {
30
+ border: 0.2em solid black;
31
+ }
32
+
33
+ #corpus-vis #main-corpus-vis #corpus-mat-container .mat-hover-display {
34
+ display: -webkit-box;
35
+ display: -ms-flexbox;
36
+ display: flex;
37
+ position: absolute;
38
+ visibility: hidden;
39
+ background-color: #c8c8c8;
40
+ border-radius: 8px 8px 1px 8px;
41
+ margin: auto;
42
+ }
43
+
44
+ #corpus-vis #main-corpus-vis #corpus-mat-container .mat-hover-display p {
45
+ margin: auto;
46
+ }
47
+
48
+ #corpus-vis #main-corpus-vis #corpus-similar-sentences-div {
49
+ -webkit-box-flex: 1;
50
+ -ms-flex: 1;
51
+ flex: 1;
52
+ vertical-align: top;
53
+ float: left;
54
+ max-width: 80%;
55
+ max-height: 100%;
56
+ }
57
+
58
+ #corpus-vis #main-corpus-vis #corpus-similar-sentences-div .hovered-col {
59
+ color: orange;
60
+ }
61
+
62
+ #corpus-vis .btn {
63
+ margin-left: 0.25em;
64
+ }
65
+
66
+ #corpus-vis .inspector-row {
67
+ display: block;
68
+ margin-left: 10px;
69
+ padding-top: 0.5em;
70
+ padding-bottom: 0.5em;
71
+ }
72
+
73
+ #corpus-vis .inspector-cell {
74
+ display: inline-block;
75
+ margin-right: 3px;
76
+ text-align: left;
77
+ }
78
+
79
+ #corpus-vis .celltooltip {
80
+ position: relative;
81
+ display: inline-block;
82
+ border-bottom: 1px dotted black;
83
+ /* If you want dots under the hoverable text */
84
+ }
85
+
86
+ #corpus-vis .celltooltip .tooltiptext {
87
+ visibility: hidden;
88
+ width: 120px;
89
+ background-color: black;
90
+ color: #fff;
91
+ text-align: center;
92
+ padding: 5px 0;
93
+ border-radius: 6px;
94
+ /* Position the tooltip text - see examples below! */
95
+ position: absolute;
96
+ }
97
+
98
+ #corpus-vis .celltooltip:hover .tooltiptext {
99
+ width: 120px;
100
+ bottom: 100%;
101
+ left: 50%;
102
+ margin-left: -60px;
103
+ /* Use half of the width (120/2 = 60), to center the tooltip */
104
+ visibility: visible;
105
+ }
106
+
107
+ #corpus-vis .celltooltip .tooltiptext::after {
108
+ content: " ";
109
+ position: absolute;
110
+ top: 100%;
111
+ /* At the bottom of the tooltip */
112
+ left: 50%;
113
+ margin-left: -5px;
114
+ border-width: 5px;
115
+ border-style: solid;
116
+ border-color: black transparent transparent transparent;
117
+ }
118
+
119
+ #corpus-vis .matched-cell {
120
+ border-style: solid;
121
+ border-color: rgba(128, 0, 128, 0.7);
122
+ border-width: 3px;
123
+ border-radius: 0.4em;
124
+ }
125
+ /*# sourceMappingURL=CorpusVis.css.map */
client/src/css/CorpusVis.css.map ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 3,
3
+ "mappings": "AAAA,AAAA,WAAW,CAAC;EACR,MAAM,EAAE,MAAM;EAmEZ,uBAAuB;EAOvB,kBAAkB;EAclB,qEAAqE;EASrE,6BAA6B;CAwBhC;;AA1HH,AAGI,WAHO,CAGP,gBAAgB,CAAC;EACf,OAAO,EAAE,YAAY;EACrB,OAAO,EAAE,IAAI;CA4Cd;;AAjDL,AAOM,WAPK,CAGP,gBAAgB,CAId,qBAAqB,CAAC;EACpB,YAAY,EAAE,OAAO;EACrB,IAAI,EAAE,OAAO;EACb,cAAc,EAAE,GAAG;EACnB,KAAK,EAAC,IAAI;CAuBX;;AAlCP,AAaQ,WAbG,CAGP,gBAAgB,CAId,qBAAqB,CAMnB,WAAW,CAAC;EACV,OAAO,EAAE,YAAY;EACrB,YAAY,EAAE,MAAM;EACpB,WAAW,EAAE,MAAM;CACpB;;AAjBT,AAmBQ,WAnBG,CAGP,gBAAgB,CAId,qBAAqB,CAYnB,SAAS,CAAC;EACR,MAAM,EAAE,iBAAiB;CAC1B;;AArBT,AAuBQ,WAvBG,CAGP,gBAAgB,CAId,qBAAqB,CAgBnB,kBAAkB,CAAC;EACjB,OAAO,EAAE,IAAI;EACb,QAAQ,EAAE,QAAQ;EAClB,UAAU,EAAE,MAAM;EAClB,gBAAgB,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vFP,AA0FM,WA1FK,CA0FL,YAAY,AAAA,MAAM,CAAC,YAAY,CAAC;EAC9B,KAAK,EAAE,KAAK;EACZ,MAAM,EAAE,IAAI;EACZ,IAAI,EAAE,GAAG;EACT,WAAW,EAAE,KAAK;EAAE,+DAA+D;EACnF,UAAU,EAAE,OAAO;CACpB;;AAhGP,AAmGM,WAnGK,CAmGL,YAAY,CAAC,YAAY,AAAA,OAAO,CAAC;EAC/B,OAAO,EAAE,GAAG;EACZ,QAAQ,EAAE,QAAQ;EAClB,GAAG,EAAE,IAAI;EAAE,kCAAkC;EAC7C,IAAI,EAAE,GAAG;EACT,WAAW,EAAE,IAAI;EACjB,YAAY,EAAE,GAAG;EACjB,YAAY,EAAE,KAAK;EACnB,YAAY,EAAE,yCAAyC;CACxD;;AA5GP,AA8GM,WA9GK,CA8GL,aAAa,CAAC;EACZ,YAAY,EAAE,KAAK;EACnB,YAAY,EAAE,sBAAsB;EACpC,YAAY,EAAE,GAAG;EACjB,aAAa,EAAE,KAAK;CACrB",
4
+ "sources": [
5
+ "CorpusVis.scss"
6
+ ],
7
+ "names": [],
8
+ "file": "CorpusVis.css"
9
+ }
client/src/css/CorpusVis.scss ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #corpus-vis {
2
+ margin: 0 auto;
3
+
4
+ #main-corpus-vis {
5
+ display: -webkit-flex;
6
+ display: flex;
7
+
8
+ #corpus-mat-container {
9
+ -webkit-flex: initial;
10
+ flex: initial;
11
+ vertical-align: top;
12
+ float: left;
13
+
14
+ .corpus-mat {
15
+ display: inline-block;
16
+ margin-right: 0.05em;
17
+ margin-left: 0.05em;
18
+ }
19
+
20
+ .offset-0 {
21
+ border: 0.2em solid black;
22
+ }
23
+
24
+ .mat-hover-display {
25
+ pointer-events: none;
26
+ display: flex;
27
+ position: absolute;
28
+ visibility: hidden;
29
+ background-color: rgba(200, 200, 200, 1);
30
+ border-radius: 8px 8px 1px 8px;
31
+ margin: auto;
32
+ p {
33
+ margin: auto;
34
+ }
35
+ }
36
+ }
37
+
38
+ #corpus-similar-sentences-div {
39
+ -webkit-flex: 1;
40
+ flex: 1;
41
+ vertical-align: top;
42
+ float: left;
43
+ max-width: 80%;
44
+ max-height: 100%;
45
+
46
+ .hovered-col {
47
+ color: orange;
48
+ }
49
+ }
50
+ }
51
+
52
+ .btn {
53
+ margin-left: 0.25em;
54
+ }
55
+
56
+ .inspector-row {
57
+ display: block;
58
+ margin-left: 10px;
59
+ padding-top: 0.5em;
60
+ padding-bottom: 0.5em;
61
+ }
62
+
63
+ .inspector-cell {
64
+ display: inline-block;
65
+ margin-right: 3px;
66
+ text-align: left;
67
+ }
68
+
69
+ /* Tooltip container */
70
+ .celltooltip {
71
+ position: relative;
72
+ display: inline-block;
73
+ border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
74
+ }
75
+
76
+ /* Tooltip text */
77
+ .celltooltip .tooltiptext {
78
+ visibility: hidden;
79
+ width: 120px;
80
+ background-color: black;
81
+ color: #fff;
82
+ text-align: center;
83
+ padding: 5px 0;
84
+ border-radius: 6px;
85
+
86
+ /* Position the tooltip text - see examples below! */
87
+ position: absolute;
88
+ }
89
+
90
+ /* Show the tooltip text when you mouse over the tooltip container */
91
+ .celltooltip:hover .tooltiptext {
92
+ width: 120px;
93
+ bottom: 100%;
94
+ left: 50%;
95
+ margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
96
+ visibility: visible;
97
+ }
98
+
99
+ /* Add little arrow to box */
100
+ .celltooltip .tooltiptext::after {
101
+ content: " ";
102
+ position: absolute;
103
+ top: 100%; /* At the bottom of the tooltip */
104
+ left: 50%;
105
+ margin-left: -5px;
106
+ border-width: 5px;
107
+ border-style: solid;
108
+ border-color: black transparent transparent transparent;
109
+ }
110
+
111
+ .matched-cell {
112
+ border-style: solid;
113
+ border-color: rgb(153, 196, 0);
114
+ border-width: 3px;
115
+ border-radius: 0.4em;
116
+ }
117
+
118
+ .gray-cell {
119
+ color: rgba(0, 0, 0, 0.35);
120
+ }
121
+ .next-cell {
122
+ color: rgba(228, 1, 1, 0.8);
123
+ -moz-box-shadow: 0 0 3px #ccc;
124
+ -webkit-box-shadow: 0 0 3px #ccc;
125
+ box-shadow: 0 0 3px #ccc;
126
+ }
127
+ }
client/src/css/Histograms.css ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #histograms {
2
+ display: block;
3
+ max-width: 100%;
4
+ }
5
+
6
+ #histograms .histogram {
7
+ display: inline-block;
8
+ overflow-x: auto;
9
+ }
10
+
11
+ #histograms div {
12
+ margin-top: 10px;
13
+ }
14
+
15
+ #histograms #max-att-histogram .bar {
16
+ fill: black;
17
+ }
18
+
19
+ .pos-selector {
20
+ margin-bottom: 40px;
21
+ }
22
+ /*# sourceMappingURL=Histograms.css.map */
client/src/css/Histograms.css.map ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 3,
3
+ "mappings": "AAEA,AAAA,WAAW,CAAC;EACR,OAAO,EAAE,KAAK;EACd,SAAS,EAAE,IAAI;CAsBhB;;AAxBH,AAII,WAJO,CAIP,UAAU,CAAC;EACT,OAAO,EAAE,YAAY;EACrB,UAAU,EAAE,IAAI;CACjB;;AAPL,AASI,WATO,CASP,GAAG,CAAC;EACF,UAAU,EAAE,IAAI;CACjB;;AAXL,AAoBM,WApBK,CAmBP,kBAAkB,CAChB,IAAI,CAAC;EACD,IAAI,EAAE,KAAK;CACd;;AAIL,AAAA,aAAa,CAAC;EACZ,aAAa,EAAE,IAAI;CACpB",
4
+ "sources": [
5
+ "Histograms.scss"
6
+ ],
7
+ "names": [],
8
+ "file": "Histograms.css"
9
+ }
client/src/css/Histograms.scss ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ #histograms {
4
+ display: block;
5
+ max-width: 100%;
6
+
7
+ .histogram {
8
+ display: inline-block;
9
+ overflow-x: auto;
10
+ }
11
+
12
+ div {
13
+ margin-top: 10px;
14
+ }
15
+
16
+ #matched-histogram {
17
+ .bar {
18
+
19
+ }
20
+ }
21
+
22
+ #max-att-histogram {
23
+ .bar {
24
+ fill: black;
25
+ }
26
+ }
27
+ }
28
+
29
+ .pos-selector {
30
+ margin-bottom: 40px;
31
+ }
client/src/css/SentenceInput.css ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #sentence-input {
2
+ margin-bottom: -30px;
3
+ margin-right: -30px;
4
+ margin-left: 10px;
5
+ width: 90%;
6
+ }
7
+
8
+ #sentence-input form {
9
+ display: -webkit-box;
10
+ display: -ms-flexbox;
11
+ display: flex;
12
+ -webkit-box-orient: horizontal;
13
+ -webkit-box-direction: normal;
14
+ -ms-flex-direction: row;
15
+ flex-direction: row;
16
+ -ms-flex-wrap: nowrap;
17
+ flex-wrap: nowrap;
18
+ -webkit-box-pack: space-evenly;
19
+ -ms-flex-pack: space-evenly;
20
+ justify-content: space-evenly;
21
+ -webkit-box-align: center;
22
+ -ms-flex-align: center;
23
+ align-items: center;
24
+ }
25
+
26
+ #sentence-input form .form-group {
27
+ -webkit-box-flex: 3;
28
+ -ms-flex-positive: 3;
29
+ flex-grow: 3;
30
+ }
31
+
32
+ #sentence-input form .form-group input {
33
+ width: 100%;
34
+ margin-right: 5%;
35
+ }
36
+
37
+ #sentence-input form .padding {
38
+ -webkit-box-flex: 0.3;
39
+ -ms-flex-positive: 0.3;
40
+ flex-grow: 0.3;
41
+ }
42
+
43
+ #sentence-input form .btn {
44
+ -webkit-box-flex: 1;
45
+ -ms-flex-positive: 1;
46
+ flex-grow: 1;
47
+ }
48
+ /*# sourceMappingURL=SentenceInput.css.map */
client/src/css/SentenceInput.css.map ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 3,
3
+ "mappings": "AACA,AAAA,eAAe,CAAC;EACZ,aAAa,EAAE,KAAK;EACpB,YAAY,EAAE,KAAK;EACnB,WAAW,EAAE,IAAI;EACjB,KAAK,EAAE,GAAG;CA6Bb;;AAjCD,AAMI,eANW,CAMX,IAAI,CAAC;EACD,OAAO,EAAE,IAAI;EACb,cAAc,EAAE,GAAG;EACnB,SAAS,EAAE,MAAM;EACjB,eAAe,EAAE,YAAY;EAC7B,WAAW,EAAE,MAAM;CAqBtB;;AAhCL,AAaQ,eAbO,CAMX,IAAI,CAOA,WAAW,CAAC;EACR,SAAS,EAAE,CAAC;CAOf;;AArBT,AAgBY,eAhBG,CAMX,IAAI,CAOA,WAAW,CAGP,KAAK,CAAC;EAEF,KAAK,EAAE,IAAI;EACX,YAAY,EAAE,EAAE;CACnB;;AApBb,AAuBQ,eAvBO,CAMX,IAAI,CAiBA,QAAQ,CAAC;EACL,SAAS,EAAE,GAAG;CACjB;;AAzBT,AA4BQ,eA5BO,CAMX,IAAI,CAsBA,IAAI,CAAC;EACD,SAAS,EAAE,CAAC;CAEf",
4
+ "sources": [
5
+ "SentenceInput.scss"
6
+ ],
7
+ "names": [],
8
+ "file": "SentenceInput.css"
9
+ }
client/src/css/SentenceInput.scss ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ #sentence-input {
3
+ margin-bottom: -30px;
4
+ margin-right: -30px;
5
+ margin-left: 10px;
6
+ width: 90%;
7
+
8
+ form {
9
+ display: flex;
10
+ flex-direction: row;
11
+ flex-wrap: nowrap;
12
+ justify-content: space-evenly;
13
+ align-items: center;
14
+
15
+ .form-group {
16
+ flex-grow: 3;
17
+
18
+ input {
19
+ // flex-grow: 4;
20
+ width: 100%;
21
+ margin-right: 5%;
22
+ }
23
+ }
24
+
25
+ .padding {
26
+ flex-grow: 0.3;
27
+ }
28
+
29
+
30
+ .btn {
31
+ flex-grow: 1;
32
+ // display: inline-block;
33
+ }
34
+ }
35
+ }
client/src/css/base.css ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body {
2
+ background-color: white;
3
+ font-family: 'IBM Plex Sans', sans-serif;
4
+ font-weight: 400;
5
+ }
6
+
7
+ .sticky {
8
+ position: fixed;
9
+ }
10
+
11
+ .noscroll {
12
+ overflow: hidden;
13
+ }
14
+
15
+ .vpartial {
16
+ max-height: 90vh;
17
+ }
18
+
19
+ .scrolling {
20
+ overflow: auto;
21
+ max-height: 98%;
22
+ }
23
+
24
+ .btn .btn-xs {
25
+ padding: .25rem .4rem;
26
+ font-size: .875rem;
27
+ line-height: .5;
28
+ border-radius: .2rem;
29
+ }
30
+
31
+ button {
32
+ -webkit-transition-duration: 0.4s;
33
+ /* Safari */
34
+ transition-duration: 0.4s;
35
+ background: transparent;
36
+ padding: 5px;
37
+ border-radius: 5px;
38
+ background-color: lightgray;
39
+ }
40
+
41
+ button.selected {
42
+ background-color: #98b7d9;
43
+ }
44
+
45
+ button:active :focus {
46
+ background-color: #98b7d9;
47
+ }
48
+
49
+ #loader {
50
+ border: 5px solid #f3f3f3;
51
+ border-radius: 50%;
52
+ border-top: 5px solid #3498db;
53
+ width: 100px;
54
+ height: 100px;
55
+ -webkit-animation: spin 2s linear infinite;
56
+ /* Safari */
57
+ animation: spin 2s linear infinite;
58
+ position: absolute;
59
+ left: 50%;
60
+ top: 20%;
61
+ display: none;
62
+ }
63
+
64
+ /* Safari */
65
+ @-webkit-keyframes spin {
66
+ 0% {
67
+ -webkit-transform: rotate(0deg);
68
+ }
69
+ 100% {
70
+ -webkit-transform: rotate(360deg);
71
+ }
72
+ }
73
+
74
+ @keyframes spin {
75
+ 0% {
76
+ -webkit-transform: rotate(0deg);
77
+ transform: rotate(0deg);
78
+ }
79
+ 100% {
80
+ -webkit-transform: rotate(360deg);
81
+ transform: rotate(360deg);
82
+ }
83
+ }
84
+
85
+ svg {
86
+ vertical-align: top;
87
+ }
88
+
89
+ select {
90
+ font-size: 9pt;
91
+ font-weight: 600;
92
+ background-color: transparent;
93
+ padding: 8px 6px;
94
+ -webkit-box-sizing: border-box;
95
+ box-sizing: border-box;
96
+ border-radius: 4px;
97
+ border: 0;
98
+ outline: 0;
99
+ }
100
+
101
+ .navbar {
102
+ position: absolute;
103
+ top: 0;
104
+ left: 0;
105
+ width: 100%;
106
+ height: 50px;
107
+ background-color: antiquewhite;
108
+ }
109
+
110
+ .navbarContent {
111
+ margin: 10px 20px;
112
+ }
113
+
114
+ .navbarContent span {
115
+ padding-left: 10px;
116
+ }
117
+
118
+ .navbarContent button {
119
+ margin-left: 10px;
120
+ }
121
+
122
+ .navbarTitle {
123
+ font-size: 12pt;
124
+ font-weight: bold;
125
+ }
126
+
127
+ .main_frame {
128
+ position: fixed;
129
+ top: 55px;
130
+ overflow-x: hidden;
131
+ overflow-y: auto;
132
+ }
133
+
134
+ .floating_content {
135
+ padding: 10px;
136
+ height: 94%;
137
+ }
138
+
139
+ .container {
140
+ width: 100%;
141
+ height: 95%;
142
+ text-align: center;
143
+ display: inline-block;
144
+ margin: 5px auto;
145
+ }
146
+
147
+ #bottom-margin {
148
+ height: 100px;
149
+ }
150
+
151
+ .content {
152
+ max-width: 960px;
153
+ margin: auto;
154
+ }
155
+
156
+ .whitespace {
157
+ height: 8vh;
158
+ }
159
+ /*# sourceMappingURL=base.css.map */
client/src/css/base.css.map ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 3,
3
+ "mappings": "AAAA,AAAA,IAAI,CAAC;EACH,gBAAgB,EAAE,KAAkB;EACpC,WAAW,EAAE,2BAA2B;EACxC,WAAW,EAAE,GAAG;CACjB;;AAED,AAAA,OAAO,CAAC;EACN,QAAQ,EAAE,KAAK;CAChB;;AAED,AAAA,SAAS,CAAC;EACR,QAAQ,EAAE,MAAM;CACjB;;AAED,AAAA,SAAS,CAAC;EACR,UAAU,EAAE,IAAI;CACjB;;AAED,AAAA,UAAU,CAAC;EACT,QAAQ,EAAE,IAAI;EACd,UAAU,EAAE,GAAG;CAChB;;AAED,AACE,IADE,CACF,OAAO,CAAC;EACN,OAAO,EAAI,YAAY;EACvB,SAAS,EAAI,OAAO;EACpB,WAAW,EAAI,EAAE;EACjB,aAAa,EAAG,KAAK;CACtB;;AAGH,AAAA,MAAM,CAAC;EACL,2BAA2B,EAAE,IAAI;EAAE,YAAY;EAC/C,mBAAmB,EAAE,IAAI;EACzB,UAAU,EAAE,WAAW;EACvB,OAAO,EAAE,GAAG;EACZ,aAAa,EAAE,GAAG;EAClB,gBAAgB,EAAE,SAAS;CAK5B;;AAXD,AAQE,MARI,AAQH,SAAS,CAAC;EACT,gBAAgB,EAAE,OAAO;CAC1B;;AAGH,AAAA,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255);
3
+ font-family: 'IBM Plex Sans', sans-serif;
4
+ font-weight: 400;
5
+ }
6
+
7
+ .sticky {
8
+ position: fixed;
9
+ }
10
+
11
+ .noscroll {
12
+ overflow: hidden;
13
+ }
14
+
15
+ .vpartial {
16
+ max-height: 90vh;
17
+ }
18
+
19
+ .scrolling {
20
+ overflow: auto;
21
+ max-height: 98%;
22
+ }
23
+
24
+ .btn {
25
+ .btn-xs {
26
+ padding : .25rem .4rem;
27
+ font-size : .875rem;
28
+ line-height : .5;
29
+ border-radius : .2rem;
30
+ }
31
+ }
32
+
33
+ button {
34
+ -webkit-transition-duration: 0.4s; /* Safari */
35
+ transition-duration: 0.4s;
36
+ background: transparent;
37
+ padding: 5px;
38
+ border-radius: 5px;
39
+ background-color: lightgray;
40
+
41
+ &.selected {
42
+ background-color: #98b7d9;
43
+ }
44
+ }
45
+
46
+ button:active :focus {
47
+ background-color: #98b7d9;
48
+ }
49
+
50
+ #loader {
51
+ border: 5px solid #f3f3f3;
52
+ border-radius: 50%;
53
+ border-top: 5px solid #3498db;
54
+ width: 100px;
55
+ height: 100px;
56
+ -webkit-animation: spin 2s linear infinite; /* Safari */
57
+ animation: spin 2s linear infinite;
58
+ position: absolute;
59
+ left: 50%;
60
+ top: 20%;
61
+ display: none;
62
+ }
63
+
64
+ /* Safari */
65
+ @-webkit-keyframes spin {
66
+ 0% {
67
+ -webkit-transform: rotate(0deg);
68
+ }
69
+ 100% {
70
+ -webkit-transform: rotate(360deg);
71
+ }
72
+ }
73
+
74
+ @keyframes spin {
75
+ 0% {
76
+ transform: rotate(0deg);
77
+ }
78
+ 100% {
79
+ transform: rotate(360deg);
80
+ }
81
+ }
82
+
83
+ svg {
84
+ vertical-align: top;
85
+ }
86
+
87
+ select {
88
+ font-size: 9pt;
89
+ font-weight: 600;
90
+
91
+ //background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10px' height='10px'><polyline points='0,0 10,0 5,10'/></svg>");
92
+ background-color: transparent;
93
+ //background-repeat: no-repeat;
94
+ //background-position: right 5px top 9px;
95
+ //background-size: 7px 7px;
96
+ //padding: 5px 15px 5px 5px;
97
+ padding: 8px 6px;
98
+ //width: auto;
99
+ //font-size:16px;
100
+ //font-weight: bold;
101
+ //text-align:center;
102
+ //text-shadow:0 -1px 0 rgba(0, 0, 0, 0.25);
103
+ -webkit-box-sizing: border-box;
104
+ -moz-box-sizing: border-box;
105
+ box-sizing: border-box;
106
+ border-radius: 4px;
107
+ border: 0;
108
+ outline: 0;
109
+ }
110
+ .navbar {
111
+ position: absolute;
112
+ top: 0;
113
+ left: 0;
114
+ width: 100%;
115
+ height: 50px;
116
+ background-color: antiquewhite;
117
+ //padding: 10px 10px 10px 30px;
118
+ }
119
+
120
+ .navbarContent {
121
+ margin: 10px 20px;
122
+
123
+ span {
124
+ padding-left: 10px;
125
+ }
126
+
127
+ button {
128
+ margin-left: 10px;
129
+ }
130
+ }
131
+
132
+ .navbarTitle {
133
+ font-size: 12pt;
134
+ //margin: 5pt;
135
+ font-weight: bold;
136
+ }
137
+
138
+ .main_frame {
139
+ position: fixed;
140
+ top: 55px;
141
+ //margin: 0px 50px 0px 50px;
142
+ //background: #ffffff;
143
+ overflow-x: hidden;
144
+ overflow-y: auto;
145
+ }
146
+
147
+ .floating_content {
148
+ padding: 10px;
149
+ height: 94%;
150
+ }
151
+
152
+ .container {
153
+ width: 100%;
154
+ height: 95%;
155
+ text-align: center;
156
+ display: inline-block;
157
+ margin: 5px auto;
158
+ }
159
+
160
+ #bottom-margin {
161
+ height: 100px;
162
+ }
163
+
164
+ .content {
165
+ max-width: 960px;
166
+ margin: auto;
167
+ }
168
+
169
+ .whitespace {
170
+ height: 8vh;
171
+ }
client/src/css/index.css ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ .gray-1 {
2
+ color: #7d7d7d;
3
+ }
4
+
5
+ .vspace-40 {
6
+ height: 40px;
7
+ }
8
+ /*# sourceMappingURL=index.css.map */
client/src/css/index.css.map ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 3,
3
+ "mappings": "AAAA,AAAA,OAAO,CAAC;EACL,KAAK,EAAE,OAAkB;CAC3B;;AAED,AAAA,UAAU,CAAC;EACP,MAAM,EAAE,IAAI;CACf",
4
+ "sources": [
5
+ "index.scss"
6
+ ],
7
+ "names": [],
8
+ "file": "index.css"
9
+ }
client/src/css/index.scss ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ .gray-1 {
2
+ color: rgb(125, 125, 125);
3
+ }
4
+
5
+ .vspace-40 {
6
+ height: 40px;
7
+ }
client/src/css/main.css ADDED
@@ -0,0 +1,722 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url(/Users/[email protected]/Projects/exbert/client/src/fonts/plex_sans.css);
2
+ body {
3
+ background-color: white;
4
+ font-family: 'IBM Plex Sans', sans-serif;
5
+ font-weight: 400;
6
+ }
7
+
8
+ .sticky {
9
+ position: fixed;
10
+ }
11
+
12
+ .noscroll {
13
+ overflow: hidden;
14
+ }
15
+
16
+ .vpartial {
17
+ max-height: 90vh;
18
+ }
19
+
20
+ .scrolling {
21
+ overflow: auto;
22
+ max-height: 98%;
23
+ }
24
+
25
+ .btn .btn-xs {
26
+ padding: .25rem .4rem;
27
+ font-size: .875rem;
28
+ line-height: .5;
29
+ border-radius: .2rem;
30
+ }
31
+
32
+ button {
33
+ -webkit-transition-duration: 0.4s;
34
+ /* Safari */
35
+ transition-duration: 0.4s;
36
+ background: transparent;
37
+ padding: 5px;
38
+ border-radius: 5px;
39
+ background-color: lightgray;
40
+ }
41
+
42
+ button.selected {
43
+ background-color: #98b7d9;
44
+ }
45
+
46
+ button:active :focus {
47
+ background-color: #98b7d9;
48
+ }
49
+
50
+ #loader {
51
+ border: 5px solid #f3f3f3;
52
+ border-radius: 50%;
53
+ border-top: 5px solid #3498db;
54
+ width: 100px;
55
+ height: 100px;
56
+ -webkit-animation: spin 2s linear infinite;
57
+ /* Safari */
58
+ animation: spin 2s linear infinite;
59
+ position: absolute;
60
+ left: 50%;
61
+ top: 20%;
62
+ display: none;
63
+ }
64
+
65
+ /* Safari */
66
+ @-webkit-keyframes spin {
67
+ 0% {
68
+ -webkit-transform: rotate(0deg);
69
+ }
70
+ 100% {
71
+ -webkit-transform: rotate(360deg);
72
+ }
73
+ }
74
+
75
+ @keyframes spin {
76
+ 0% {
77
+ -webkit-transform: rotate(0deg);
78
+ transform: rotate(0deg);
79
+ }
80
+ 100% {
81
+ -webkit-transform: rotate(360deg);
82
+ transform: rotate(360deg);
83
+ }
84
+ }
85
+
86
+ svg {
87
+ vertical-align: top;
88
+ }
89
+
90
+ select {
91
+ font-size: 9pt;
92
+ font-weight: 600;
93
+ background-color: transparent;
94
+ padding: 8px 6px;
95
+ -webkit-box-sizing: border-box;
96
+ box-sizing: border-box;
97
+ border-radius: 4px;
98
+ border: 0;
99
+ outline: 0;
100
+ }
101
+
102
+ .navbar {
103
+ position: absolute;
104
+ top: 0;
105
+ left: 0;
106
+ width: 100%;
107
+ height: 50px;
108
+ background-color: antiquewhite;
109
+ }
110
+
111
+ .navbarContent {
112
+ margin: 10px 20px;
113
+ }
114
+
115
+ .navbarContent span {
116
+ padding-left: 10px;
117
+ }
118
+
119
+ .navbarContent button {
120
+ margin-left: 10px;
121
+ }
122
+
123
+ .navbarTitle {
124
+ font-size: 12pt;
125
+ font-weight: bold;
126
+ }
127
+
128
+ .main_frame {
129
+ position: fixed;
130
+ top: 55px;
131
+ overflow-x: hidden;
132
+ overflow-y: auto;
133
+ }
134
+
135
+ .floating_content {
136
+ padding: 10px;
137
+ height: 94%;
138
+ }
139
+
140
+ .container {
141
+ width: 100%;
142
+ height: 95%;
143
+ text-align: center;
144
+ display: inline-block;
145
+ margin: 5px auto;
146
+ }
147
+
148
+ #bottom-margin {
149
+ height: 100px;
150
+ }
151
+
152
+ .content {
153
+ max-width: 960px;
154
+ margin: auto;
155
+ }
156
+
157
+ .whitespace {
158
+ height: 8vh;
159
+ }
160
+
161
+ #sentence-input {
162
+ margin-bottom: -30px;
163
+ margin-right: -30px;
164
+ margin-left: 10px;
165
+ width: 90%;
166
+ }
167
+
168
+ #sentence-input form {
169
+ display: -webkit-box;
170
+ display: -ms-flexbox;
171
+ display: flex;
172
+ -webkit-box-orient: horizontal;
173
+ -webkit-box-direction: normal;
174
+ -ms-flex-direction: row;
175
+ flex-direction: row;
176
+ -ms-flex-wrap: nowrap;
177
+ flex-wrap: nowrap;
178
+ -webkit-box-pack: space-evenly;
179
+ -ms-flex-pack: space-evenly;
180
+ justify-content: space-evenly;
181
+ -webkit-box-align: center;
182
+ -ms-flex-align: center;
183
+ align-items: center;
184
+ }
185
+
186
+ #sentence-input form .form-group {
187
+ -webkit-box-flex: 3;
188
+ -ms-flex-positive: 3;
189
+ flex-grow: 3;
190
+ }
191
+
192
+ #sentence-input form .form-group input {
193
+ width: 100%;
194
+ margin-right: 5%;
195
+ }
196
+
197
+ #sentence-input form .padding {
198
+ -webkit-box-flex: 0.3;
199
+ -ms-flex-positive: 0.3;
200
+ flex-grow: 0.3;
201
+ }
202
+
203
+ #sentence-input form .btn {
204
+ -webkit-box-flex: 1;
205
+ -ms-flex-positive: 1;
206
+ flex-grow: 1;
207
+ }
208
+
209
+ .input-description {
210
+ font-weight: 800;
211
+ }
212
+
213
+ .connector-controls {
214
+ display: -ms-grid;
215
+ display: grid;
216
+ -ms-grid-columns: 0.5fr 0.5fr;
217
+ grid-template-columns: 0.5fr 0.5fr;
218
+ }
219
+
220
+ .slide-container {
221
+ -ms-grid-column: 1;
222
+ grid-column-start: 1;
223
+ grid-column-end: 2;
224
+ -ms-grid-row: 1;
225
+ grid-row-start: 1;
226
+ grid-row-end: 2;
227
+ margin: auto;
228
+ text-align: center;
229
+ width: 75%;
230
+ }
231
+
232
+ .slider {
233
+ -webkit-appearance: none;
234
+ width: 10px;
235
+ height: 10px;
236
+ border-radius: 5px;
237
+ background: #d3d3d3;
238
+ outline: none;
239
+ opacity: 0.7;
240
+ -webkit-transition: .2s;
241
+ -webkit-transition: opacity .2s;
242
+ transition: opacity .2s;
243
+ }
244
+
245
+ .slider:hover {
246
+ opacity: 1;
247
+ }
248
+
249
+ .slider::-webkit-slider-thumb {
250
+ -webkit-appearance: none;
251
+ appearance: none;
252
+ width: 15px;
253
+ height: 15px;
254
+ border-radius: 50%;
255
+ background: #666666;
256
+ cursor: pointer;
257
+ }
258
+
259
+ #layer-selection {
260
+ -ms-grid-column: 1;
261
+ grid-column-start: 1;
262
+ grid-column-end: 2;
263
+ -ms-grid-row: 2;
264
+ grid-row-start: 2;
265
+ grid-row-end: 3;
266
+ }
267
+
268
+ .layer-select {
269
+ margin-bottom: 2em;
270
+ }
271
+
272
+ #atn-container {
273
+ display: -webkit-box;
274
+ display: -ms-flexbox;
275
+ display: flex;
276
+ -webkit-box-orient: horizontal;
277
+ -webkit-box-direction: normal;
278
+ -ms-flex-direction: row;
279
+ flex-direction: row;
280
+ -ms-flex-wrap: nowrap;
281
+ flex-wrap: nowrap;
282
+ -webkit-box-pack: center;
283
+ -ms-flex-pack: center;
284
+ justify-content: center;
285
+ -webkit-box-align: center;
286
+ -ms-flex-align: center;
287
+ align-items: center;
288
+ margin: 0 auto;
289
+ width: 100%;
290
+ vertical-align: top;
291
+ }
292
+
293
+ #atn-container #left-att-heads {
294
+ -webkit-box-ordinal-group: 2;
295
+ -ms-flex-order: 1;
296
+ order: 1;
297
+ display: inline-block;
298
+ vertical-align: top;
299
+ }
300
+
301
+ #atn-container #left-tokens {
302
+ -webkit-box-ordinal-group: 3;
303
+ -ms-flex-order: 2;
304
+ order: 2;
305
+ text-align: right;
306
+ vertical-align: top;
307
+ }
308
+
309
+ #atn-container #atn-display {
310
+ -webkit-box-ordinal-group: 4;
311
+ -ms-flex-order: 3;
312
+ order: 3;
313
+ vertical-align: top;
314
+ }
315
+
316
+ #atn-container #right-tokens {
317
+ -webkit-box-ordinal-group: 5;
318
+ -ms-flex-order: 4;
319
+ order: 4;
320
+ text-align: left;
321
+ vertical-align: top;
322
+ }
323
+
324
+ #atn-container #right-att-heads {
325
+ -webkit-box-ordinal-group: 6;
326
+ -ms-flex-order: 5;
327
+ order: 5;
328
+ vertical-align: top;
329
+ }
330
+
331
+ .att-rect {
332
+ -webkit-transition: fill 0.1s;
333
+ transition: fill 0.1s;
334
+ }
335
+
336
+ .token {
337
+ display: block;
338
+ }
339
+
340
+ .atn-curve {
341
+ fill: none;
342
+ stroke: purple;
343
+ }
344
+
345
+ .masked-token {
346
+ color: rgba(0, 0, 0, 0.2);
347
+ }
348
+
349
+ .unselected {
350
+ fill: gray;
351
+ }
352
+
353
+ .selected-token {
354
+ border-style: solid;
355
+ border-width: 3px;
356
+ border-color: #99c400;
357
+ }
358
+
359
+ /* The switch - the box around the slider */
360
+ .switch {
361
+ position: relative;
362
+ display: inline-block;
363
+ width: 60px;
364
+ height: 34px;
365
+ /* Hide default HTML checkbox */
366
+ }
367
+
368
+ .switch input {
369
+ opacity: 0;
370
+ width: 0;
371
+ height: 0;
372
+ }
373
+
374
+ /* The slider */
375
+ .short-slider {
376
+ position: absolute;
377
+ cursor: pointer;
378
+ top: 0;
379
+ left: 0;
380
+ right: 0;
381
+ bottom: 0;
382
+ background-color: #ccc;
383
+ -webkit-transition: .4s;
384
+ transition: .4s;
385
+ }
386
+
387
+ .short-slider:before {
388
+ position: absolute;
389
+ content: "";
390
+ height: 26px;
391
+ width: 26px;
392
+ left: 4px;
393
+ bottom: 4px;
394
+ background-color: white;
395
+ -webkit-transition: .4s;
396
+ transition: .4s;
397
+ }
398
+
399
+ input:checked + .short-slider {
400
+ background-color: #2196F3;
401
+ }
402
+
403
+ input:focus + .short-slider {
404
+ -webkit-box-shadow: 0 0 1px #2196F3;
405
+ box-shadow: 0 0 1px #2196F3;
406
+ }
407
+
408
+ input:checked + .short-slider:before {
409
+ -webkit-transform: translateX(26px);
410
+ transform: translateX(26px);
411
+ }
412
+
413
+ /* Rounded sliders */
414
+ .short-slider.round {
415
+ border-radius: 34px;
416
+ }
417
+
418
+ .short-slider.round:before {
419
+ border-radius: 50%;
420
+ }
421
+
422
+ #select-all-heads {
423
+ margin-top: 20px;
424
+ margin-bottom: 20px;
425
+ }
426
+
427
+ #corpus-vis {
428
+ margin: 0 auto;
429
+ /* Tooltip container */
430
+ /* Tooltip text */
431
+ /* Show the tooltip text when you mouse over the tooltip container */
432
+ /* Add little arrow to box */
433
+ }
434
+
435
+ #corpus-vis #main-corpus-vis {
436
+ display: -webkit-box;
437
+ display: -ms-flexbox;
438
+ display: flex;
439
+ }
440
+
441
+ #corpus-vis #main-corpus-vis #corpus-mat-container {
442
+ -webkit-box-flex: initial;
443
+ -ms-flex: initial;
444
+ flex: initial;
445
+ vertical-align: top;
446
+ float: left;
447
+ }
448
+
449
+ #corpus-vis #main-corpus-vis #corpus-mat-container .corpus-mat {
450
+ display: inline-block;
451
+ margin-right: 0.05em;
452
+ margin-left: 0.05em;
453
+ }
454
+
455
+ #corpus-vis #main-corpus-vis #corpus-mat-container .offset-0 {
456
+ border: 0.2em solid black;
457
+ }
458
+
459
+ #corpus-vis #main-corpus-vis #corpus-mat-container .mat-hover-display {
460
+ display: -webkit-box;
461
+ display: -ms-flexbox;
462
+ display: flex;
463
+ position: absolute;
464
+ visibility: hidden;
465
+ background-color: #c8c8c8;
466
+ border-radius: 8px 8px 1px 8px;
467
+ margin: auto;
468
+ }
469
+
470
+ #corpus-vis #main-corpus-vis #corpus-mat-container .mat-hover-display p {
471
+ margin: auto;
472
+ }
473
+
474
+ #corpus-vis #main-corpus-vis #corpus-similar-sentences-div {
475
+ -webkit-box-flex: 1;
476
+ -ms-flex: 1;
477
+ flex: 1;
478
+ vertical-align: top;
479
+ float: left;
480
+ max-width: 80%;
481
+ max-height: 100%;
482
+ }
483
+
484
+ #corpus-vis #main-corpus-vis #corpus-similar-sentences-div .hovered-col {
485
+ color: orange;
486
+ }
487
+
488
+ #corpus-vis .btn {
489
+ margin-left: 0.25em;
490
+ }
491
+
492
+ #corpus-vis .inspector-row {
493
+ display: block;
494
+ margin-left: 10px;
495
+ padding-top: 0.5em;
496
+ padding-bottom: 0.5em;
497
+ }
498
+
499
+ #corpus-vis .inspector-cell {
500
+ display: inline-block;
501
+ margin-right: 3px;
502
+ text-align: left;
503
+ }
504
+
505
+ #corpus-vis .celltooltip {
506
+ position: relative;
507
+ display: inline-block;
508
+ border-bottom: 1px dotted black;
509
+ /* If you want dots under the hoverable text */
510
+ }
511
+
512
+ #corpus-vis .celltooltip .tooltiptext {
513
+ visibility: hidden;
514
+ width: 120px;
515
+ background-color: black;
516
+ color: #fff;
517
+ text-align: center;
518
+ padding: 5px 0;
519
+ border-radius: 6px;
520
+ /* Position the tooltip text - see examples below! */
521
+ position: absolute;
522
+ }
523
+
524
+ #corpus-vis .celltooltip:hover .tooltiptext {
525
+ width: 120px;
526
+ bottom: 100%;
527
+ left: 50%;
528
+ margin-left: -60px;
529
+ /* Use half of the width (120/2 = 60), to center the tooltip */
530
+ visibility: visible;
531
+ }
532
+
533
+ #corpus-vis .celltooltip .tooltiptext::after {
534
+ content: " ";
535
+ position: absolute;
536
+ top: 100%;
537
+ /* At the bottom of the tooltip */
538
+ left: 50%;
539
+ margin-left: -5px;
540
+ border-width: 5px;
541
+ border-style: solid;
542
+ border-color: black transparent transparent transparent;
543
+ }
544
+
545
+ #corpus-vis .matched-cell {
546
+ border-style: solid;
547
+ border-color: rgba(128, 0, 128, 0.7);
548
+ border-width: 3px;
549
+ border-radius: 0.4em;
550
+ }
551
+
552
+ #histograms {
553
+ display: block;
554
+ max-width: 100%;
555
+ }
556
+
557
+ #histograms .histogram {
558
+ display: inline-block;
559
+ overflow-x: auto;
560
+ }
561
+
562
+ #histograms div {
563
+ margin-top: 10px;
564
+ }
565
+
566
+ #histograms #max-att-histogram .bar {
567
+ fill: black;
568
+ }
569
+
570
+ .pos-selector {
571
+ margin-bottom: 40px;
572
+ }
573
+
574
+ body {
575
+ font-family: 'IBM Plex Sans';
576
+ }
577
+
578
+ .layerCheckbox {
579
+ background-color: lightgrey;
580
+ padding-left: 8px;
581
+ padding-right: 8px;
582
+ }
583
+
584
+ .layerCheckbox.active {
585
+ color: #fff;
586
+ background-color: #6c7067;
587
+ }
588
+
589
+ .main-grid {
590
+ width: 100%;
591
+ display: -ms-grid;
592
+ display: grid;
593
+ -ms-grid-columns: 0.18fr 0.2fr 0.2fr 0.04fr 0.2fr 0.2fr 0.18fr;
594
+ grid-template-columns: 0.18fr 0.2fr 0.2fr 0.04fr 0.2fr 0.2fr 0.18fr;
595
+ overflow: auto;
596
+ max-height: 100vh;
597
+ }
598
+
599
+ .left-half {
600
+ -ms-grid-column: 1;
601
+ grid-column-start: 1;
602
+ grid-column-end: 4;
603
+ margin-left: 10px;
604
+ margin-right: 10px;
605
+ }
606
+
607
+ .vpartial-90 {
608
+ max-height: 90vh;
609
+ }
610
+
611
+ .vpartial-95 {
612
+ max-height: 95vh;
613
+ }
614
+
615
+ .right-half {
616
+ -ms-grid-column: 5;
617
+ grid-column-start: 5;
618
+ grid-column-end: 9;
619
+ max-height: 98vh;
620
+ }
621
+
622
+ .vertical-separator {
623
+ border-left: thick solid #42222298;
624
+ margin: 0 auto;
625
+ margin-top: 10px;
626
+ margin-bottom: 10px;
627
+ border-radius: 3px;
628
+ -ms-grid-column: 4;
629
+ grid-column-start: 4;
630
+ grid-column-end: 5;
631
+ -ms-grid-row: 1;
632
+ grid-row-start: 1;
633
+ grid-row-end: 5;
634
+ }
635
+
636
+ #vis-break {
637
+ height: 15px;
638
+ }
639
+
640
+ label {
641
+ margin-left: 5px;
642
+ }
643
+
644
+ #header {
645
+ width: 100%;
646
+ background-color: lightgray;
647
+ height: 40px;
648
+ margin-bottom: 5px;
649
+ }
650
+
651
+ #header .header-logo {
652
+ height: 20px;
653
+ display: inline-block;
654
+ margin-left: 10px;
655
+ margin-top: 5px;
656
+ margin-bottom: 5px;
657
+ }
658
+
659
+ #header .header-info {
660
+ font-size: 9pt;
661
+ height: 30px;
662
+ display: inline-block;
663
+ float: right;
664
+ margin-right: 10px;
665
+ margin-top: 10px;
666
+ }
667
+
668
+ #header #headertext {
669
+ text-align: center;
670
+ display: inline-block;
671
+ font-size: 18px;
672
+ margin-left: 30%;
673
+ margin-top: 5px;
674
+ margin-bottom: 5px;
675
+ }
676
+
677
+ .highlighted {
678
+ background: rgba(152, 83, 216, 0.8);
679
+ }
680
+
681
+ #meta-dropdown {
682
+ margin-bottom: 0.75em;
683
+ margin-left: 4em;
684
+ }
685
+
686
+ #position-meta-dropdown {
687
+ margin-bottom: 0.75em;
688
+ margin-left: 4em;
689
+ }
690
+
691
+ #corpus-control-buttons {
692
+ margin-bottom: 1em;
693
+ position: fixed relative;
694
+ }
695
+
696
+ #corpus-control-buttons span {
697
+ margin-left: 5px;
698
+ }
699
+
700
+ #selected-heads {
701
+ margin-bottom: 1em;
702
+ }
703
+
704
+ #corpus-selection-description {
705
+ display: inline-block;
706
+ margin-right: 15px;
707
+ }
708
+
709
+ #corpus-querying {
710
+ display: inline-block;
711
+ }
712
+
713
+ #corpus-querying .btn {
714
+ display: inline-block;
715
+ }
716
+
717
+ #usage-info {
718
+ margin-top: 10px;
719
+ color: #575757;
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AAY;EACrB,YAAY,EAAE,IAAI;CACnB;;AAED,AAAA,gBAAgB,CAAC;EACf,OAAO,EAAE,YAAY;CAItB;;AALD,AAEE,gBAFc,CAEd,IAAI,CAAC;EACH,OAAO,EAAE,YAAY;CACtB;;AAGH,AAAA,WAAW,CAAC;EACV,UAAU,EAAE,IAAI;EAChB,KAAK,EAAE,OAAe;EACtB,SAAS,EAAE,IAAI;CAChB",
4
+ "sources": [
5
+ "main.scss",
6
+ "palette.scss",
7
+ "base.scss",
8
+ "SentenceInput.scss",
9
+ "AttentionConnectorControls.scss",
10
+ "CorpusVis.scss",
11
+ "Histograms.scss"
12
+ ],
13
+ "names": [],
14
+ "file": "main.css"
15
+ }
client/src/css/main.scss ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import "palette.scss";
2
+ //@import "LatoLight.scss";
3
+ @import "../fonts/plex_sans.css";
4
+ @import "base";
5
+ @import "SentenceInput";
6
+ @import "AttentionConnectorControls";
7
+ @import "CorpusVis";
8
+ @import "Histograms";
9
+
10
+ body {
11
+ font-family: 'IBM Plex Sans';
12
+ }
13
+
14
+ .layerCheckbox {
15
+ background-color: lightgrey;
16
+ padding-left: 8px;
17
+ padding-right: 8px;
18
+
19
+ &.active{
20
+ color: #fff;
21
+ background-color: #6c7067;
22
+ }
23
+ }
24
+
25
+ .main-grid {
26
+ width: 100%;
27
+ display: grid;
28
+ grid-template-columns: 0.18fr 0.2fr 0.2fr 0.04fr 0.2fr 0.2fr 0.18fr;
29
+ overflow: auto;
30
+ max-height: 100vh;
31
+ }
32
+
33
+ .left-half {
34
+ grid-column-start: 1;
35
+ grid-column-end: 4;
36
+ margin-left: 10px;
37
+ margin-right: 10px;
38
+ }
39
+
40
+ .vpartial-90 {
41
+ max-height: 90vh;
42
+ }
43
+
44
+ .vpartial-95 {
45
+ max-height: 95vh;
46
+ }
47
+
48
+ .right-half {
49
+ grid-column-start: 5;
50
+ grid-column-end: 9;
51
+ max-height: 98vh;
52
+ }
53
+
54
+ .vertical-separator {
55
+ border-left: thick solid #42222298;
56
+ margin: 0 auto;
57
+ margin-top: 10px;
58
+ margin-bottom: 10px;
59
+ border-radius: 3px;
60
+ grid-column-start: 4;
61
+ grid-column-end: 5;
62
+ grid-row-start: 1;
63
+ grid-row-end: 5;
64
+ }
65
+
66
+ #vis-break {
67
+ height: 15px;
68
+ }
69
+
70
+ label {
71
+ margin-left: 5px;
72
+ }
73
+
74
+ // header {
75
+ // font-size: 2em;
76
+ // }
77
+
78
+ #header {
79
+ width: 100%;
80
+ background-color: lightgray;
81
+ height: 40px;
82
+ margin-bottom: 5px;
83
+
84
+ .header-logo{
85
+ height: 20px;
86
+ display:inline-block;
87
+ margin-left: 10px;
88
+ margin-top: 5px;
89
+ margin-bottom: 5px;
90
+ }
91
+ .header-info{
92
+ font-size: 9pt;
93
+ height: 30px;
94
+ display:inline-block;
95
+ float:right;
96
+ margin-right: 10px;
97
+ margin-top: 10px;
98
+ //margin-bottom: 5px;
99
+ }
100
+
101
+
102
+ #headertext{
103
+ text-align: center ;
104
+ display: inline-block;
105
+ font-size: 18px;
106
+ margin-left: 30%;
107
+ margin-top: 5px;
108
+ margin-bottom: 5px;
109
+ }
110
+ }
111
+
112
+ .highlighted {
113
+ background: rgba(152, 83, 216, 0.8);
114
+ }
115
+
116
+ #meta-dropdown {
117
+ margin-bottom: 0.75em;
118
+ margin-left: 4em;
119
+ }
120
+
121
+ #position-meta-dropdown {
122
+ margin-bottom: 0.75em;
123
+ margin-left: 4em;
124
+ }
125
+
126
+
127
+ #corpus-control-buttons {
128
+ margin-bottom: 1em;
129
+ position: fixed relative;
130
+ span {
131
+ margin-left:5px;
132
+ }
133
+ }
134
+
135
+ #selected-heads {
136
+ margin-bottom: 1em;
137
+ }
138
+
139
+ #corpus-selection-description {
140
+ display: inline-block;
141
+ margin-right: 15px;
142
+ }
143
+
144
+ #corpus-querying {
145
+ display: inline-block;
146
+ .btn {
147
+ display: inline-block;
148
+ }
149
+ }
150
+
151
+ #usage-info {
152
+ margin-top: 10px;
153
+ color: rgb(87, 87, 87);
154
+ font-size: 14px;
155
+ }
156
+
157
+ .tick {
158
+ font-size: 18px;
159
+ }
160
+
161
+ #connector-container {
162
+ .mat-hover-display{
163
+ pointer-events: none;
164
+ display: block;
165
+ position: absolute;
166
+ visibility: hidden;
167
+ background-color: rgba(200, 200, 200, 0.93);
168
+ font-size: 14px;
169
+ p {
170
+ margin: 4px 1px 1px 4px;
171
+ // margin: auto;
172
+ }
173
+ }
174
+ }
175
+
176
+ .right-token-hover {
177
+ border-radius: 1px 8px 8px 8px;
178
+ text-align: left;
179
+ }
180
+
181
+ .left-token-hover {
182
+ border-radius: 8px 1px 8px 8px;
183
+ text-align: right;
184
+ }
185
+
186
+ .next-token {
187
+ color: rgba(228, 1, 1, 0.8);
188
+ -moz-box-shadow: 0 0 3px #ccc;
189
+ -webkit-box-shadow: 0 0 3px #ccc;
190
+ box-shadow: 0 0 3px #ccc;
191
+ }
client/src/css/palette.css ADDED
@@ -0,0 +1 @@
 
 
1
+ /* No CSS *//*# sourceMappingURL=palette.css.map */
client/src/css/palette.css.map ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 3,
3
+ "mappings": "",
4
+ "sources": [
5
+ "palette.scss"
6
+ ],
7
+ "names": [],
8
+ "file": "palette.css"
9
+ }
client/src/css/palette.scss ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $highlight-color: #ffe3b3;
2
+ $highlight-color-L2: #ffc466;
3
+ $highlight-color-L3: #ffad33;
4
+ $selected-color: #98b7d9;
5
+ $deselected-color: #bebebe;
6
+ $border-color: black;
7
+ $edge-color: gray;
8
+ $component-head-color: rgba(152, 183, 217, 0.51);
9
+ $page-background-color: white;
10
+
11
+ $encoder-color: #98b7d9;
12
+ $decoder-color: #f5de93;
13
+ $attn-color: #6c7067;
14
+
15
+ $pivot-color: #4e9c57;
16
+ $compare-color: #9c6d9b;
17
+
18
+ $add-color: #b4e876;
19
+ $delete-color: #ff8566;
client/src/customTypings/d3.d.ts ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as d3 from 'd3'
2
+ import {BaseType, Selection} from "d3";
3
+
4
+ declare module 'd3-selection' {
5
+ export interface Selection<
6
+ GElement extends BaseType,
7
+ Datum,
8
+ PElement extends BaseType,
9
+ PDatum>
10
+ {
11
+ toggleClass: (name:string) => Selection<GElement, Datum, PElement, PDatum>
12
+ clear: () => Selection<GElement, Datum, PElement, PDatum>
13
+ show: () => Selection<GElement, Datum, PElement, PDatum>
14
+ hide: () => Selection<GElement, Datum, PElement, PDatum>
15
+ toggle: () => Selection<GElement, Datum, PElement, PDatum>
16
+ after: (tagName:string) => Selection<GElement, Datum, PElement, PDatum>
17
+ before: (tagName:string) => Selection<GElement, Datum, PElement, PDatum>
18
+ }
19
+
20
+ export const NoType: any;
21
+ }
client/src/exBERT.html ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <script async src="https://www.googletagmanager.com/gtag/js?id=UA-149275901-1"></script>
6
+ <script>
7
+ window.dataLayer = window.dataLayer || [];
8
+ function gtag() { dataLayer.push(arguments); }
9
+ gtag('js', new Date());
10
+
11
+ gtag('config', 'UA-149275901-2');
12
+ </script>
13
+ <meta charset="UTF-8">
14
+ <meta name="viewport" content="width=device-width, initial-scale=1">
15
+ <title>exBERT</title>
16
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
17
+ integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
18
+ <link rel="stylesheet" type="text/css" href="main.css">
19
+ <link rel="shortcut icon" href="./img/exBERT_favicon.png" type="image/png">
20
+ </head>
21
+
22
+ <body style="font-size: 16px;">
23
+ <div class="section-header" id="header">
24
+ <div class="header-logo">
25
+ <a href="/"><img src="./img/exBERT.png" alt="exBERT Logo" height="30px"></a>
26
+ </div>
27
+ <div id="headertext">
28
+ An Explorable BERT
29
+ </div>
30
+
31
+ <div class="header-info">
32
+ IBM Research & HarvardNLP
33
+ </div>
34
+
35
+ </div>
36
+
37
+ <div class="main-grid">
38
+ <div class="left-half vpartial-95 scrolling">
39
+
40
+ <div class="text-center">
41
+
42
+ <div id="sentence-input">
43
+ <form>
44
+ <div class="form-group">
45
+ <label for="form-sentence-a"> Input Sentence </label>
46
+ <input id="form-sentence-a" type="text" name="sent-a-input"> </p>
47
+ </div>
48
+ <div class="padding"></div>
49
+ <button class="btn btn-primary" id="update-sentence" type="button">Update</button>
50
+ </form>
51
+ </div>
52
+ <hr />
53
+
54
+ <div id="connector-container">
55
+
56
+ <div class="connector-controls">
57
+ <div class="left-control-half">
58
+ <div id="model-selection">
59
+ <label for="model-options">Select model: </label>
60
+ <select id="model-option-selector" name="model-options"></select>
61
+ </div>
62
+ <div class="slide-container">
63
+ <div>
64
+ <label for="my-range">
65
+ Display top <span id="my-range-value">…</span>% of attention
66
+ </label>
67
+ <input type="range" min="0" max="100" value="70" class="slider" id="my-range"> <br>
68
+ </div>
69
+ </div>
70
+
71
+ <div id="layer-selection">
72
+ <div class="input-description">
73
+ Layer:
74
+ </div>
75
+
76
+ <div class="layer-select btn-group btn-group-toggle" data-toggle="buttons"
77
+ id="layer-select"> </div>
78
+ </div>
79
+ <div id="cls-toggle">
80
+ <div class="input-description">
81
+ Hide Special Tokens
82
+ </div>
83
+
84
+ <label class="switch">
85
+ <input type="checkbox" checked='checked'>
86
+ <span class="short-slider round"></span>
87
+ </label>
88
+ </div>
89
+ </div>
90
+
91
+ <div class="head-control">
92
+ <div id="selected-head-display">
93
+ <div class="input-description">
94
+ Selected heads:
95
+ </div>
96
+ <div id="selected-heads"></div>
97
+ </div>
98
+
99
+ <div class="select-input" id="head-all-or-none">
100
+ <button id="select-all-heads">Select all heads</button>
101
+ <button id="select-no-heads">Unselect all heads</button>
102
+ </div>
103
+
104
+ <div id="usage-info">
105
+ <p> You focus on one token by <b>click</b>.<br />
106
+ You can mask any token by <b>double click</b>.</p>
107
+ <p>You can select and de-select a head by a <b>click</b> on the heatmap columns</p>
108
+
109
+ </div>
110
+ </div>
111
+
112
+ </div>
113
+
114
+ <div id=vis-break></div>
115
+
116
+
117
+ <div class="text-center" id="atn-container">
118
+ <div id="head-info-box"></div>
119
+ <svg id="left-att-heads"></svg>
120
+ <div id="left-tokens"></div>
121
+ <svg id="atn-display"></svg>
122
+ <div id="right-tokens"></div>
123
+ <svg id="right-att-heads"></svg>
124
+ </div>
125
+
126
+ </div>
127
+
128
+ <!-- Part II of HTML -->
129
+ <hr />
130
+
131
+ <div id="corpus-selection-description">
132
+ <header>
133
+ <!-- Search <span class="inline-select" id="corpus-select">corpus</span> -->
134
+ Search <select id="corpus-select"></select>
135
+ </header>
136
+ </div>
137
+
138
+ <div id="corpus-querying">
139
+ <form>
140
+ <button class="btn btn-primary" id="search-contexts" type="button">by Context</button>
141
+ <button class="btn btn-primary" id="search-embeddings" type="button">by Embedding</button>
142
+ </form>
143
+ </div>
144
+
145
+ <div id="histograms">
146
+ <div id="matched-histogram">
147
+ <svg class="histogram" id="matched-histogram-container"></svg>
148
+ <div class="pos-selector">
149
+ <span id="match-kind">Matched</span> Word Summary:
150
+ <div id="matched-meta-select" class="btn-group btn-group-toggle" data-toggle="buttons">
151
+ <label class="btn btn-secondary active" value="pos">
152
+ <input type="radio" name="options" id="option1" autocomplete="off" value="pos"> POS
153
+ </label>
154
+ <label class="btn btn-secondary" value="dep">
155
+ <input type="radio" name="options" id="option2" autocomplete="off"> DEP
156
+ </label>
157
+ <label class="btn btn-secondary" value="is_ent">
158
+ <input type="radio" name="options" id="option3" autocomplete="off"> ENT
159
+ </label>
160
+ </div>
161
+ </div>
162
+ </div>
163
+
164
+ <div id="max-att-histogram">
165
+ <svg class="histogram" id="max-att-histogram-container"></svg>
166
+ <div class="pos-selector">
167
+ Max Attention Summary:
168
+
169
+ <div id="max-att-meta-select" class="btn-group btn-group-toggle" data-toggle="buttons">
170
+ <label class="btn btn-secondary active" value="pos">
171
+ <input type="radio" name="options" autocomplete="off" value="pos"> POS
172
+ </label>
173
+ <label class="btn btn-secondary" value="dep">
174
+ <input type="radio" name="options" autocomplete="off"> DEP
175
+ </label>
176
+ <label class="btn btn-secondary" value="is_ent">
177
+ <input type="radio" name="options" autocomplete="off"> ENT
178
+ </label>
179
+ <label class="btn btn-secondary" value="offset">
180
+ <input type="radio" name="options" autocomplete="off"> OFFSET
181
+ </label>
182
+ </div>
183
+ <!-- <select name="position-meta-dropdown" id="position-meta-dropdown">
184
+ <option value="offset">OFFSET</option>
185
+ </select> -->
186
+ </div>
187
+ </div>
188
+ </div>
189
+ </div>
190
+
191
+ </div>
192
+
193
+ <div class="vertical-separator"></div>
194
+
195
+
196
+ <div class="right-half">
197
+ <div id="corpus-vis">
198
+ <div id="corpus-control-buttons">
199
+ <button class="btn btn-xs btn-secondary" id="minus-left" type="button">+</button>
200
+ <button class="btn btn-xs btn-danger" id="kill-left" type="button">-</button>
201
+ <span>&larr;||&rarr;</span>
202
+ <button class="btn btn-xs btn-danger" id="kill-right" type="button">-</button>
203
+ <button class="btn btn-xs btn-secondary" id="plus-right" type="button">+</button>
204
+ <button class="btn btn-xs btn-info" id="mat-refresh" type="button">&#8635;</button>
205
+ </div>
206
+
207
+
208
+ <div class="vpartial-90 scrolling">
209
+ <div class="whitespace"></div>
210
+ <div id="corpus-msg-box"></div>
211
+ <div id="main-corpus-vis">
212
+ <div id="corpus-mat-container"></div>
213
+ <div id="corpus-similar-sentences-div"></div>
214
+ </div>
215
+ </div>
216
+ </div>
217
+
218
+ </div>
219
+ </div>
220
+
221
+ <script src="vendor.js"></script>
222
+ <script src="main.js"></script>
223
+
224
+ </body>
225
+
226
+ </html>