File size: 953 Bytes
39e8c59
07ae31a
adbdb15
9d4fe0b
299606a
39e8c59
 
 
 
45473be
 
39e8c59
3d64ac2
cf494b2
adbdb15
 
 
cf494b2
 
 
 
c2a3101
cf494b2
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
title: PyTerrier Doc2Query
emoji: πŸ•
colorFrom: green
colorTo: green
sdk: gradio
sdk_version: 3.7
app_file: app.py
pinned: false
models:
- macavaney/doc2query-t5-base-msmarco
---
# πŸ• PyTerrier: [Doc2Query](https://cs.uwaterloo.ca/~jimmylin/publications/Nogueira_Lin_2019_docTTTTTquery-v2.pdf) and [Doc2Query−−](https://arxiv.org/abs/2301.03266)

This is a demonstration of [PyTerrier's Doc2Query package](https://github.com/terrierteam/pyterrier_doc2query). Doc2Query generates
queries for a document, which can then be appended to a document's text before indexing to boost important terms and add missing terms.

Doc2Query functions as a `D→D` (document-to-document) transformer and can be used in pipelines accordingly.

<div class="pipeline">
  <div class="df" title="Document Frame">D</div>
  <div class="transformer attn" title="Doc2Query Transformer">Doc2Query</div>
  <div class="df" title="Document Frame">D</div>
</div>