splade / doc.md
Sean MacAvaney
update
68730a3
### Document Encoding
The document encoder works similarly to the query encoder: it is a `D→D` (document rewriting, doc-to-doc) transformer, and can be used in pipelines accordingly.
It maps a document's text into a dictionary with terms from the document re-weighted and weighted expansion terms added.
<div class="pipeline">
<div class="df" title="Document Frame">D</div>
<div class="transformer attn" title="SPLADE Indexing Transformer">SPLADE</div>
<div class="df" title="Document Frame">D</div>
</div>