retrieve / README.md
Sean MacAvaney
initial commit
70f85dc
---
title: PyTerrier Retrieve
emoji: πŸ•
colorFrom: green
colorTo: green
sdk: gradio
sdk_version: 3.7
app_file: app.py
pinned: false
---
# πŸ• PyTerrier: Retrieve
This is a demonstration of [PyTerrier's TerrierRetrieve transformer](https://pyterrier.readthedocs.io/en/latest/terrier-retrieval.html).
TerrierRetrieve functions as a `Q→R` (retrieval, query-to-result) transformer and can be used in pipelines accordingly. For example, you can
pipe the results to a transformer such as `get_text` to load the text associated with the document:
<div class="pipeline">
<div class="df" title="Query Frame">Q</div>
<div class="transformer attn" title="PisaRetrieve Transformer">TerrierRetrieve</div>
<div class="df" title="Result Frame">R</div>
<div class="transformer" title="get_text Transformer">get_text</div>
<div class="df" title="Result Frame">R</div>
</div>