Sean MacAvaney commited on
Commit
1e7bc58
1 Parent(s): 9cfff32
Files changed (2) hide show
  1. README.md +24 -0
  2. app.py +2 -1
README.md CHANGED
@@ -73,6 +73,30 @@ pinned: false
73
  .pipeline {
74
  text-align: center;
75
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  </style>
77
 
78
  This is a demonstration of [PyTerrier's SPLADE package](https://github.com/cmacdonald/pyt_splade). The SPLADE model encodes queries and documents
 
73
  .pipeline {
74
  text-align: center;
75
  }
76
+ .artefact {
77
+ width: 32px;
78
+ line-height: 32px;
79
+ background: #eee;
80
+ display: inline-block;
81
+ box-sizing: content-box;
82
+ cursor: help;
83
+ margin: 0 -25px;
84
+ z-index: 1;
85
+ opacity: 0.5;
86
+ position: relative;
87
+ color: #333;
88
+ text-align: center;
89
+ border: 3px double #888;
90
+ border-radius: 50%
91
+ }
92
+ .artefact:hover {
93
+ opacity: 1;
94
+ }
95
+ .transformer .artefact {
96
+ bottom: -12px;
97
+ left: 50%;
98
+ margin-left: -16px;
99
+ }
100
  </style>
101
 
102
  This is a demonstration of [PyTerrier's SPLADE package](https://github.com/cmacdonald/pyt_splade). The SPLADE model encodes queries and documents
app.py CHANGED
@@ -196,6 +196,7 @@ When you use the document encoder in an indexing pipeline, the rewritting docume
196
  <div class="transformer" title="SPLADE Indexing Transformer">SPLADE</div>
197
  <div class="df" title="Document Frame">D</div>
198
  <div class="transformer boring" title="Indexer">Indexer</div>
 
199
  </div>
200
 
201
  ```python
@@ -219,7 +220,7 @@ and then performs retrieval:
219
  <div class="df" title="Query Frame">Q</div>
220
  <div class="transformer" title="SPLADE Query Transformer">SPLADE</div>
221
  <div class="df" title="Query Frame">Q</div>
222
- <div class="transformer boring" title="Term Frequency Transformer">TF Retriever</div>
223
  <div class="df" title="Result Frame">R</div>
224
  </div>
225
 
 
196
  <div class="transformer" title="SPLADE Indexing Transformer">SPLADE</div>
197
  <div class="df" title="Document Frame">D</div>
198
  <div class="transformer boring" title="Indexer">Indexer</div>
199
+ <div class="artefact" title="SPLADE Index">IDX</div>
200
  </div>
201
 
202
  ```python
 
220
  <div class="df" title="Query Frame">Q</div>
221
  <div class="transformer" title="SPLADE Query Transformer">SPLADE</div>
222
  <div class="df" title="Query Frame">Q</div>
223
+ <div class="transformer boring" title="Term Frequency Transformer">TF Retriever <div class="artefact" title="SPLADE Index">IDX</div></div>
224
  <div class="df" title="Result Frame">R</div>
225
  </div>
226