diff --git a/application/Makefile b/application/Makefile
index af9ec77da..74de5cdf6 100644
--- a/application/Makefile
+++ b/application/Makefile
@@ -1,7 +1,7 @@
.PHONY: help setup run-develop build-docker clean
-VERSION_APPLICATION=0.0.96
-VERSION_GRPC=0.0.96
+VERSION_APPLICATION=0.0.97
+VERSION_GRPC=0.0.97
.DEFAULT: help
help:
diff --git a/application/src/tira/endpoints/data_api.py b/application/src/tira/endpoints/data_api.py
index c8fdf6d89..4cb21d429 100644
--- a/application/src/tira/endpoints/data_api.py
+++ b/application/src/tira/endpoints/data_api.py
@@ -1,5 +1,9 @@
import logging
import json
+import textwrap
+
+from django.core.exceptions import BadRequest
+
from tira.forms import *
import tira.tira_model as model
from tira.checks import check_permissions, check_resources_exist, check_conditional_permissions
@@ -434,36 +438,142 @@ def add_registration(request, context, task_id, vm_id):
return JsonResponse({'status': 0, "message": f"Encountered an exception: {e}"}, status=HTTPStatus.INTERNAL_SERVER_ERROR)
+def expand_links(component):
+ links = [*component.get('links', [])]
+ ir_datasets_id = component.get('ir_datasets_id', None)
+ if ir_datasets_id:
+ if '/' in ir_datasets_id:
+ base = ir_datasets_id.split('/')[0]
+ fragment = f'#{ir_datasets_id}'
+ else:
+ base = ir_datasets_id
+ fragment = ''
+
+ links.append({
+ 'display_name': 'ir_datasets',
+ 'href': f'https://ir-datasets.com/{base}.html{fragment}',
+ 'target': '_blank',
+ })
+
+ tirex_submission_id = component.get('tirex_submission_id', None)
+ if tirex_submission_id:
+ links.append({
+ 'display_name': 'Submission in TIREx',
+ 'href': f'/submissions/{tirex_submission_id}',
+ })
+
+ if links:
+ component['links'] = links
+
+ return component
+
+
+def flatten_components(components):
+ flattened_components = []
+ for identifier, data in components.items():
+ component = {'identifier': identifier, **data}
+
+ if 'components' in component:
+ component['components'] = flatten_components(data['components'])
+
+ if 'tirex_submission_id' in data:
+ component['tirex_submission_id'] = data['tirex_submission_id']
+
+ flattened_components.append(expand_links(component))
+
+ return flattened_components
+
+
@add_context
def tirex_components(request, context):
- context['tirex_components'] = settings.TIREX_COMPONENTS
+ context['tirex_components'] = flatten_components(settings.TIREX_COMPONENTS)
return JsonResponse({'status': 0, 'context': context})
-def get_snippet_to_run_components(request):
- all_components = settings.TIREX_COMPONENTS
- component_ids = request.GET.get('components', 'false')
+def flatten_tirex_components_to_id(obj, t=None):
+ ret = {}
- # All links with display_name == "Submission in TIREx" have the ID of the component in their link, its a bit ugly, but at the moment we need to extract the ID from there.
- # E.g., the ID from the URL "/submissions/ir-benchmarks/ows/query-segmentation-hyp-a" would be ir-benchmarks/ows/query-segmentation-hyp-a
+ if type(obj) != dict:
+ return ret
- # Also Ugly: we need to determine which type of processor (query processor, document processor, etc) something is by using its top-level category, e.g., "Query Processing".
+ if 'tirex_submission_id' in obj:
+ assert obj['tirex_submission_id'] not in ret
+ obj['type'] = t
+ ret[obj['tirex_submission_id']] = obj
- # I think it makes sense to build a small method that uses the settings.TIREX_COMPONENTS as input and produces a mapping form component ID (the thing below "Submission in TIREx") to the properties, e.g., query processor true or false, etc.
+ for k, v in obj.items():
+ for i, j in flatten_tirex_components_to_id(v, t if t else k).items():
+ ret[i] = j
- # I think we can hard code everything against ROBUST04, we can switch this later.
- dataset_initialization = 'dataset = pt.get_dataset("irds:disks45/nocr/trec-robust-2004")\n'
+ return ret
- additional_variables = ''
- # If we have a query processor, we need to add an additional variable "topics"
- # just for this hard coded example:
- current_component_is_query_processor = True
- if current_component_is_query_processor:
- additional_variables += "topics = dataset.get_topics(variant='title')\n"
+TIREX_ID_TO_COMPONENT = flatten_tirex_components_to_id(settings.TIREX_COMPONENTS)
+
+
+def get_snippet_to_run_components(request):
+ component_key = request.GET.get('component')
+
+ if component_key not in TIREX_ID_TO_COMPONENT:
+ return JsonResponse({'status': 1, 'message': f'Component "{component_key}" not found.'})
+
+ component = TIREX_ID_TO_COMPONENT[component_key]
+ component_type = component['type']
+ dataset_initialization = textwrap.dedent('''
+ # You can replace Robust04 with other datasets
+ dataset = pt.get_dataset("irds:disks45/nocr/trec-robust-2004")
+ ''').strip()
+ snippet = ''
+
+ if component_type == 'dataset':
+ dataset_initialization = ''
+ ir_datasets_id = component.get('ir_datasets_id')
+ if ir_datasets_id:
+ snippet = f'''
+ dataset = pt.get_dataset('irds:{ir_datasets_id}')
+
+ indexer = pt.IterDictIndexer('./index')
+ indexref = indexer.index(dataset.get_corpus_iter())
+ '''
+ else:
+ snippet = f'''
+ def get_corpus_iter():
+ # Iterate over the {component['display_name']} corpus
+ corpus = ...
+ for doc in corpus:
+ yield {{'docno': doc.docno, 'text': doc.content}}
+
+ indexer = pt.IterDictIndexer('./index')
+ indexref = indexer.index(get_corpus_iter())
+ '''
+ elif component_type == 'document_processing':
+ tirex_submission_id = component.get('tirex_submission_id')
+ if tirex_submission_id:
+ snippet = f'''
+ transformed_docs = tira.pt.transform_documents('{tirex_submission_id}', dataset)
+ '''
+ elif component_type == 'query_processing':
+ tirex_submission_id = component.get('tirex_submission_id')
+ if tirex_submission_id:
+ snippet = f'''
+ topics = dataset.get_topics(variant='title')
+ transformed_queries = tira.pt.transform_queries('{tirex_submission_id}', topics)
+ '''
+ elif component_type in ('retrieval', 'reranking'):
+ tirex_submission_id = component.get('tirex_submission_id')
+ if tirex_submission_id:
+ snippet = f'''
+ run = tira.pt.from_retriever_submission('{tirex_submission_id}', dataset=dataset_id)
+ '''
+ elif component_type == 'dataset':
+ pass
+ else:
+ JsonResponse({'status': 1, 'message': f'Component type "{component_type}" does not exist...'})
- component_definitions = "tira.pt.transform_queries('ir-benchmarks/ows/query-segmentation-hyb-i', dataset)\n"
+ if snippet:
+ snippet = textwrap.dedent(snippet).strip()
- snippet = (dataset_initialization + additional_variables + component_definitions).strip()
+ if dataset_initialization:
+ snippet = dataset_initialization + '\n' + snippet
return JsonResponse({'status': 0, 'context': {'snippet': snippet}})
diff --git a/application/src/tira/frontend-vuetify/src/IrComponents.vue b/application/src/tira/frontend-vuetify/src/IrComponents.vue
index 7c7cb05b2..1d908f5c4 100644
--- a/application/src/tira/frontend-vuetify/src/IrComponents.vue
+++ b/application/src/tira/frontend-vuetify/src/IrComponents.vue
@@ -40,15 +40,16 @@
{{ link.display_name }}
-
+
- Show code
+ Show code
-
+
+
@@ -85,6 +86,7 @@ import {compareArrays, extractComponentTypesFromCurrentUrl, extractFocusTypesFro
import CodeSnippet from "@/components/CodeSnippet.vue";
interface Component {
+ identifier: string;
display_name: string;
components?: Component[];
links?: { display_name: string; href: string; target: string }[];
@@ -103,8 +105,9 @@ export default {
max_width: 1500,
loading: true,
tirex_components: [
- {'display_name': 'loading', 'components': [{'display_name': 'loading'}], 'links': [{'display_name': '.', 'href': '.', 'target': '.'}]},
+ {'identifier': 'loading', 'display_name': 'loading', 'components': [{'identifier': 'loading', 'display_name': 'loading'}], 'links': [{'display_name': '.', 'href': '.', 'target': '.'}], 'tirex_submission_id': null},
],
+ code: '',
colors: {
'Dataset': 'green', 'Document Processing': 'yellow-lighten-1',
'Query Processing': 'yellow-darken-4', 'Retrieval': 'cyan-lighten-1',
@@ -148,6 +151,11 @@ export default {
return componentSet;
},
+ fetch_code(index: number, i: number) {
+ this.code = ''
+ get('/api/tirex-snippet?component='+ this.vectorizedComponents[index][i].tirex_submission_id)
+ .then((message) => {this.code = message['context']['snippet']})
+ },
colorOfComponent(c:string) : string {
return this.colors[c] ?? "grey"
},
@@ -172,8 +180,8 @@ export default {
is_collapsed(component:any) {
return !this.computed_expanded_entries.includes(component.display_name)
},
- filtered_sub_components(component:any) : {display_name: string, subItems: number, pos: number, links: any[], focus_type: string|undefined|null, component_type: string|undefined|null}[] {
- let ret: {display_name: string, subItems: number, pos: number, links: any[], focus_type: string|undefined|null, component_type: string|undefined|null}[] = []
+ filtered_sub_components(component:any) : {display_name: string, subItems: number, pos: number, links: any[], focus_type: string|undefined|null, component_type: string|undefined|null, tirex_submission_id: string|undefined|null}[] {
+ let ret: {display_name: string, subItems: number, pos: number, links: any[], focus_type: string|undefined|null, component_type: string|undefined|null, tirex_submission_id: string|undefined|null}[] = []
if (this.is_collapsed(component) || !component['components']) {
return ret
@@ -188,6 +196,7 @@ export default {
'links': c.hasOwnProperty('links') ? c['links'] : null,
'focus_type': c.hasOwnProperty('focus_type') ? c['focus_type'] : null,
'component_type': c.hasOwnProperty('component_type') ? c['component_type'] : null,
+ 'tirex_submission_id': c['tirex_submission_id']
})
for (let sub_c of this.filtered_sub_components(c)) {
@@ -198,6 +207,7 @@ export default {
'links': sub_c['links'],
'focus_type': sub_c.hasOwnProperty('focus_type') ? sub_c['focus_type'] : null,
'component_type': sub_c.hasOwnProperty('component_type') ? sub_c['component_type'] : null,
+ 'tirex_submission_id': sub_c['tirex_submission_id']
})
}
}
@@ -284,8 +294,7 @@ export default {
ret = ret.concat(terms[i]);
}
}
-
- }
+ }
return ret
},
@@ -306,7 +315,7 @@ export default {
let c = this.tirex_components[i]
// we set row 0, aka the headers
- ret[0][i] = {'display_name': c.display_name, 'links': c.links, 'collapsed': this.is_collapsed(c), 'subItems':this.countSubItems(c), 'hide': false}
+ ret[0][i] = {'display_name': c.display_name, 'links': c.links, 'collapsed': this.is_collapsed(c), 'subItems':this.countSubItems(c), 'hide': false, 'tirex_submission_id': ''}
// we loop through each categories subcomponents and enrich them with information needed for the grid display
for (let subcomponent of this.filtered_sub_components(c)) {
@@ -320,7 +329,7 @@ export default {
'links': subcomponent.links,
'collapsed': this.is_collapsed(subcomponent),
'hide': this.hide_component(subcomponent),
- 'code': "this will show example code for executing this components method"
+ 'tirex_submission_id': subcomponent['tirex_submission_id'] || null
}
}
}
diff --git a/application/src/tira/urls.py b/application/src/tira/urls.py
index b37ec8bc3..3414d5c3a 100644
--- a/application/src/tira/urls.py
+++ b/application/src/tira/urls.py
@@ -107,6 +107,7 @@
path('api/registration/add_registration//', data_api.add_registration, name='add_registration'),
path('api/submissions-for-task///', data_api.submissions_for_task, name="submissions_for_task"),
path('api/tirex-components', data_api.tirex_components, name='tirex_components'),
+ path('api/tirex-snippet', data_api.get_snippet_to_run_components, name='get_snippet_to_run_components'),
path('api/snippets-for-tirex-components', data_api.get_snippet_to_run_components, name='get_snippet_to_run_components'),
path('api/re-ranking-datasets/', data_api.reranking_datasets, name='reranking_datasets'),
path('api/submissions-of-user/', data_api.submissions_of_user, name='submissions_of_user'),
diff --git a/application/src/tirex-components.yml b/application/src/tirex-components.yml
index d3d8fd281..49493d21b 100644
--- a/application/src/tirex-components.yml
+++ b/application/src/tirex-components.yml
@@ -1,181 +1,196 @@
-- display_name: Dataset
+dataset:
+ display_name: Dataset
links:
- display_name: Tutorial Post-hoc Analysis of Test Collections with ir_datasets
href: https://github.com/webis-de/ir-pad/blob/public/tutorials/tutorial-01-ir-datasets.ipynb
target: _blank
components:
- - display_name: Args.me
+ args_me:
+ display_name: Args.me
component_type: [TIREx]
links:
- display_name: Dataset Description
href: https://webis.de/data/args-me-corpus.html
target: _blank
components:
- - display_name: Touché 2020 Task 1
+ touche_task_1:
+ display_name: Touché 2020 Task 1
component_type: [TIREx]
- - display_name: Touché 2021 Task 1
+ touche_task_2:
+ display_name: Touché 2021 Task 1
component_type: [TIREx]
- - display_name: Antique
+ antique:
+ display_name: Antique
component_type: [TIREx]
- links:
- - display_name: ir_datastes
- href: https://ir-datasets.com/antique.html
- target: _blank
+ ir_datasets_id: antique
- - display_name: Web Search
+ web_search:
+ display_name: Web Search
component_type: [TIREx]
components:
- - display_name: ClueWeb09
+ clueweb09:
+ display_name: ClueWeb09
component_type: [TIREx]
links:
- display_name: Dataset Description
href: https://lemurproject.org/clueweb09.php/
target: _blank
components:
- - display_name: TREC Web Track 2010
+ trec_web_2009:
+ display_name: TREC Web Track 2009
component_type: [TIREx]
- links:
- - display_name: ir_datastes
- href: https://ir-datasets.com/clueweb09.html#clueweb09/en/trec-web-2009
- target: _blank
- - display_name: TREC Web Track 2010
+ ir_datasets_id: clueweb09/en/trec-web-2009
+ trec_web_2010:
+ display_name: TREC Web Track 2010
component_type: [TIREx]
- links:
- - display_name: ir_datastes
- href: https://ir-datasets.com/clueweb09.html#clueweb09/en/trec-web-2010
- target: _blank
- - display_name: TREC Web Track 2011
+ ir_datasets_id: clueweb09/en/trec-web-2010
+ trec_web_2011:
+ display_name: TREC Web Track 2011
component_type: [TIREx]
- links:
- - display_name: ir_datastes
- href: https://ir-datasets.com/clueweb09.html#clueweb09/en/trec-web-2011
- target: _blank
- - display_name: TREC Web Track 2012
+ ir_datasets_id: clueweb09/en/trec-web-2011
+ trec_web_2012:
+ display_name: TREC Web Track 2012
component_type: [TIREx]
- links:
- - display_name: ir_datastes
- href: https://ir-datasets.com/clueweb09.html#clueweb09/en/trec-web-2012
- - display_name: ClueWeb12
+ ir_datasets_id: clueweb09/en/trec-web-2012
+ clueweb12:
+ display_name: ClueWeb12
component_type: [TIREx]
links:
- display_name: Dataset Description
href: https://lemurproject.org/clueweb12.php/
target: _blank
components:
- - display_name: TREC Web Track 2013
+ trec_web_2013:
+ display_name: TREC Web Track 2013
component_type: [TIREx]
- links:
- - display_name: ir_datastes
- href: https://ir-datasets.com/clueweb12.html#clueweb12/trec-web-2013
- target: _blank
- - display_name: TREC Web Track 2014
+ ir_datasets_id: clueweb12/trec-web-2013
+ trec_web_2014:
+ display_name: TREC Web Track 2014
component_type: [TIREx]
- links:
- - display_name: ir_datastes
- href: https://ir-datasets.com/clueweb12.html#clueweb12/trec-web-2014
- target: _blank
- - display_name: Touché 2020 (Task 2)
+ ir_datasets_id: clueweb12/trec-web-2014
+ touche_2020_2:
+ display_name: Touché 2020 (Task 2)
component_type: [TIREx]
- links:
- - display_name: ir_datastes
- href: https://ir-datasets.com/clueweb12.html#clueweb12/touche-2020-task-2
- target: _blank
- - display_name: Touché 2021 (Task 2)
+ ir_datasets_id: clueweb12/touche-2020-task-2
+ touche_2021_2:
+ display_name: Touché 2021 (Task 2)
component_type: [TIREx]
- links:
- - display_name: ir_datastes
- href: https://ir-datasets.com/clueweb12.html#clueweb12/touche-2021-task-2
- target: _blank
- - display_name: ClueWeb22
+ ir_datasets_id: clueweb12/touche-2021-task-2
+ clueweb22:
+ display_name: ClueWeb22
component_type: [TIREx]
links:
- display_name: Dataset Description
href: https://lemurproject.org/clueweb22.php/
target: _blank
components:
- - display_name: Touché 2023 (Task 1)
+ touche_2023_1:
+ display_name: Touché 2023 (Task 1)
component_type: [TIREx]
links:
- display_name: Task Page
href: https://touche.webis.de/clef23/touche23-web/argument-retrieval-for-controversial-questions.html
target: _blank
- - display_name: Touché 2023 (Task 2)
+ touche_2023_2:
+ display_name: Touché 2023 (Task 2)
component_type: [TIREx]
links:
- display_name: Task Page
href: https://touche.webis.de/clef23/touche23-web/evidence-retrieval-for-causal-questions.html
target: _blank
- - display_name: GOV
+ gov:
+ display_name: GOV
component_type: [TIREx]
- - display_name: GOV2
+ gov2:
+ display_name: GOV2
component_type: [TIREx]
- - display_name: LongEval
+ longeval:
+ display_name: LongEval
component_type: [TIREx]
links:
- display_name: Dataset Description
href: https://dl.acm.org/doi/abs/10.1145/3539618.3591921
target: _blank
components:
- - display_name: LongEval 2023
+ longeval_2023:
+ display_name: LongEval 2023
component_type: [TIREx]
links:
- display_name: Task Page
href: https://clef-longeval-2023.github.io/
target: _blank
- - display_name: LongEval 2024
+ longeval_2024:
+ display_name: LongEval 2024
component_type: [TIREx]
links:
- display_name: Task Page
href: https://clef-longeval.github.io/
target: _blank
- - display_name: Medical Search
+ medical_search:
+ display_name: Medical Search
component_type: [TIREx]
components:
- - display_name: CORD-19
+ cord_19:
+ display_name: CORD-19
component_type: [TIREx]
- - display_name: MEDLINE
+ medline:
+ display_name: MEDLINE
component_type: [TIREx]
- - display_name: NFCorpus
+ nfcorpus:
+ display_name: NFCorpus
component_type: [TIREx]
- - display_name: MS MARCO
+ ms_marco:
+ display_name: MS MARCO
component_type: [TIREx]
components:
- - display_name: Deep Learning 19
+ deep_learning_19:
+ display_name: Deep Learning 19
component_type: [TIREx]
- - display_name: Deep Learning 20
+ deep_learning_20:
+ display_name: Deep Learning 20
component_type: [TIREx]
- - display_name: News Search
+ news_search:
+ display_name: News Search
component_type: [TIREx]
components:
- - display_name: WaPo
+ wapo:
+ display_name: WaPo
component_type: [TIREx]
- - display_name: Disks4+5
+ disks_4_5:
+ display_name: Disks4+5
component_type: [TIREx]
components:
- - display_name: Robust04
+ robust04:
+ display_name: Robust04
component_type: [TIREx]
- - display_name: TREC 7
+ trec7:
+ display_name: TREC 7
component_type: [TIREx]
- - display_name: TREC 8
+ trec8:
+ display_name: TREC 8
component_type: [TIREx]
- - display_name: Tip-of-the-Tongue
+ tip_of_the_tongue:
+ display_name: Tip-of-the-Tongue
component_type: [TIREx]
links:
- display_name: Task Overview
href: https://trec-tot.github.io/
target: _blank
- - display_name: Vaswani
+ vaswani:
+ display_name: Vaswani
component_type: [TIREx]
-- display_name: Document Processing
+document_processing:
+ display_name: Document Processing
components:
- - display_name: Keyphrase Extraction
+ keyphrase_extraction:
+ display_name: Keyphrase Extraction
component_type: [TIREx, Tutorial]
focus_type: [Precision]
links:
@@ -183,34 +198,38 @@
href: https://github.com/OpenWebSearch/wows-code/blob/main/ecir24/post-hoc-notebooks/keyphrase-extraction.ipynb
target: _blank
components:
- - display_name: RSPE-TF
+ rspe_tf:
+ display_name: RSPE-TF
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/OpenWebSearch/wows-code/blob/main/ecir24/post-hoc-notebooks/keyphrase-extraction.ipynb
target: _blank
- - display_name: RSPE-FO
+ rspe_fo:
+ display_name: RSPE-FO
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/OpenWebSearch/wows-code/blob/main/ecir24/post-hoc-notebooks/keyphrase-extraction.ipynb
target: _blank
- - display_name: BCE-TF
+ bce_tf:
+ display_name: BCE-TF
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/OpenWebSearch/wows-code/blob/main/ecir24/post-hoc-notebooks/keyphrase-extraction.ipynb
target: _blank
- - display_name: BCE-FO
+ bce_fo:
+ display_name: BCE-FO
component_type: [TIREx, Tutorial]
+ tirex_submission_id: ir-benchmarks/ows/bce-fo
links:
- display_name: Tutorial
href: https://github.com/OpenWebSearch/wows-code/blob/main/ecir24/post-hoc-notebooks/keyphrase-extraction.ipynb
target: _blank
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/ows/bce-fo
- - display_name: Health Classification
+ health_classification:
+ display_name: Health Classification
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
@@ -220,7 +239,8 @@
href: https://webis.de/publications.html?q=health#schlatt_2022a
target: _blank
- - display_name: Stemming
+ stemming:
+ display_name: Stemming
focus_type: [Recall]
component_type: [Tutorial]
links:
@@ -228,21 +248,24 @@
href: https://github.com/webis-de/ir-pad/blob/public/tutorials/tutorial-02-stopword-lists.ipynb
target: _blank
components:
- - display_name: PorterStemmer
+ porter_stemmer:
+ display_name: PorterStemmer
focus_type: [Recall]
component_type: [Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/blob/public/tutorials/tutorial-03-stemming.ipynb
target: _blank
- - display_name: KrovetzStemmer
+ krovetz_stemmer:
+ display_name: KrovetzStemmer
focus_type: [Recall]
component_type: [Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/blob/public/tutorials/tutorial-03-stemming.ipynb
target: _blank
- - display_name: Lemmatization
+ lemmatization:
+ display_name: Lemmatization
focus_type: [Recall]
component_type: [Tutorial]
links:
@@ -250,7 +273,8 @@
href: https://github.com/webis-de/ir-pad/blob/public/tutorials/tutorial-04-lemmatization.ipynb
target: _blank
- - display_name: Stopword Removal
+ stopword_removal:
+ display_name: Stopword Removal
focus_type: [Precision]
component_type: [Tutorial]
links:
@@ -258,9 +282,11 @@
href: https://github.com/webis-de/ir-pad/blob/public/tutorials/tutorial-02-stopword-lists.ipynb
target: _blank
-- display_name: Query Processing
+query_processing:
+ display_name: Query Processing
components:
- - display_name: Query Expansion
+ query_expansion:
+ display_name: Query Expansion
component_type: [Tutorial]
focus_type: [Recall]
links:
@@ -271,7 +297,8 @@
href: https://pyterrier.readthedocs.io/en/latest/rewrite.html
target: _blank
- - display_name: Query Segmentation
+ query_segmentation:
+ display_name: Query Segmentation
focus_type: [Precision]
component_type: [TIREx, Tutorial]
links:
@@ -282,35 +309,38 @@
href: https://github.com/webis-de/query-segmentation
target: _blank
components:
- - display_name: hyp-a
+ hyb_a:
+ display_name: hyb-a
focus_type: [Precision]
component_type: [TIREx, Tutorial]
+ tirex_submission_id: ir-benchmarks/ows/query-segmentation-hyb-a
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-segmentation-in-progress-by-maik
target: _blank
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/ows/query-segmentation-hyp-a
-
- - display_name: hyp-b
+
+ hyb_b:
+ display_name: hyb-b
focus_type: [Precision]
component_type: [TIREx, Tutorial]
+ tirex_submission_id: ir-benchmarks/ows/query-segmentation-hyb-b
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-segmentation-in-progress-by-maik
target: _blank
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/ows/query-segmentation-hyp-b
- - display_name: hyp-i
+ hyb_i:
+ display_name: hyp-i
focus_type: [Precision]
component_type: [TIREx, Tutorial]
+ tirex_submission_id: ir-benchmarks/ows/query-segmentation-hyb-i
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-segmentation-in-progress-by-maik
target: _blank
- - display_name: wt-snp
+ wt_snp:
+ display_name: wt-snp
focus_type: [Precision]
component_type: [TIREx, Tutorial]
links:
@@ -318,7 +348,8 @@
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-segmentation-in-progress-by-maik
target: _blank
- - display_name: wiki
+ wiki:
+ display_name: wiki
focus_type: [Precision]
component_type: [TIREx, Tutorial]
links:
@@ -326,7 +357,8 @@
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-segmentation-in-progress-by-maik
target: _blank
- - display_name: naive
+ naive:
+ display_name: naive
focus_type: [Precision]
component_type: [TIREx, Tutorial]
links:
@@ -334,7 +366,8 @@
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-segmentation-in-progress-by-maik
target: _blank
- - display_name: Query Performance Prediction (QPP)
+ query_performance_prediction:
+ display_name: Query Performance Prediction (QPP)
component_type: [TIREx, Tutorial]
links:
- display_name: qpptk
@@ -344,80 +377,93 @@
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
components:
- - display_name: avg-idf
+ avg_idf:
+ display_name: avg-idf
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: avg-scq
+ avg_scq:
+ display_name: avg-scq
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: avg-var
+ avg_var:
+ display_name: avg-var
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: clarity
+ clarity:
+ display_name: clarity
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: max-idf
+ max_idf:
+ display_name: max-idf
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: max-scq
+ max_scq:
+ display_name: max-scq
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: max-var
+ max_var:
+ display_name: max-var
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: nqc
+ nqc:
+ display_name: nqc
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: scq
+ scq:
+ display_name: scq
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: smv
+ smv:
+ display_name: smv
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: var
+ var:
+ display_name: var
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: wig
+ wig:
+ display_name: wig
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
href: https://github.com/webis-de/ir-pad/tree/public/tutorials#tutorial-8-query-performance-prediction-in-progress-by-maik
target: _blank
- - display_name: Health Classification
+ health_classification:
+ display_name: Health Classification
component_type: [TIREx, Tutorial]
links:
- display_name: Tutorial
@@ -427,317 +473,286 @@
href: https://webis.de/publications.html?q=health#schlatt_2022a
target: _blank
-- display_name: Retrieval
+retrieval:
+ display_name: Retrieval
components:
- - display_name: Bi-Encoder
+ bi_encoder:
+ display_name: Bi-Encoder
component_type: [TIREx]
components:
- - display_name: TBD 1
+ tbd_1:
+ display_name: TBD 1
component_type: [TIREx]
- - display_name: TBD 2
+ tbd_2:
+ display_name: TBD 2
component_type: [TIREx]
- - display_name: TBD 3
+ tbd_3:
+ display_name: TBD 3
component_type: [TIREx]
- - display_name: Late Interaction
+ late_interaction:
+ display_name: Late Interaction
component_type: [TIREx]
components:
- - display_name: ColBERT
+ colbert:
+ display_name: ColBERT
component_type: [TIREx, Tutorial]
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/ColBERT Re-Rank (tira-ir-starter-pyterrier)
links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/ColBERT Re-Rank (tira-ir-starter-pyterrier)
- display_name: Paper
href: https://ir.webis.de/anthology/2020.sigirconf_conference-2020.12/
target: _blank
- display_name: Tutorial
href: https://github.com/terrier-org/ecir2021tutorial/blob/main/notebooks/notebook4.3.ipynb
target: _blank
- - display_name: Lexical Retrieval
+ lexical_retrieval:
+ display_name: Lexical Retrieval
component_type: [TIREx]
components:
- - display_name: ChatNoir
+ chatnoir:
+ display_name: ChatNoir
component_type: [TIREx]
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/Chatnoir
links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/Chatnoir
- display_name: Demo
href: https://www.chatnoir.eu/
target: _blank
- - display_name: BM25
+ bm25:
+ display_name: BM25
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/BM25(tira-ir-starter-pyterrier)
- - display_name: DFIC
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/BM25(tira-ir-starter-pyterrier)
+ dfic:
+ display_name: DFIC
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DFIC(tira-ir-starter-pyterrier)
- - display_name: DFIZ
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DFIC(tira-ir-starter-pyterrier)
+ dfiz:
+ display_name: DFIZ
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DFIZ(tira-ir-starter-pyterrier)
- - display_name: DFR BM25
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DFIZ(tira-ir-starter-pyterrier)
+ dfr_bm25:
+ display_name: DFR BM25
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DFR_BM25(tira-ir-starter-pyterrier)
- - display_name: DFRee
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DFR_BM25(tira-ir-starter-pyterrier)
+ dfree:
+ display_name: DFRee
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DFRee(tira-ir-starter-pyterrier)
- - display_name: DFReeKLIM
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DFRee(tira-ir-starter-pyterrier)
+ dfreeklim:
+ display_name: DFReeKLIM
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DFReeKLIM(tira-ir-starter-pyterrier)
- - display_name: Dirichlet LM
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DFReeKLIM(tira-ir-starter-pyterrier)
+ dirichlet_lm:
+ display_name: Dirichlet LM
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DirichletLM(tira-ir-starter-pyterrier)
- - display_name: DLH
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DirichletLM(tira-ir-starter-pyterrier)
+ dlh:
+ display_name: DLH
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DLH(tira-ir-starter-pyterrier)
- - display_name: DPH
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DLH(tira-ir-starter-pyterrier)
+ dph:
+ display_name: DPH
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DPH(tira-ir-starter-pyterrier)
- - display_name: Hiemstra LM
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DPH(tira-ir-starter-pyterrier)
+ hiemstra_lm:
+ display_name: Hiemstra LM
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/Hiemstra_LM(tira-ir-starter-pyterrier)
- - display_name: IFB2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/Hiemstra_LM(tira-ir-starter-pyterrier)
+ ifb2:
+ display_name: IFB2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/IFB2(tira-ir-starter-pyterrier)
- - display_name: In-expB2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/IFB2(tira-ir-starter-pyterrier)
+ in_expb2:
+ display_name: In-expB2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/In_expB2(tira-ir-starter-pyterrier)
- - display_name: In-expC2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/In_expB2(tira-ir-starter-pyterrier)
+ in_expc2:
+ display_name: In-expC2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/In_expC2(tira-ir-starter-pyterrier)
- - display_name: InB2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/In_expC2(tira-ir-starter-pyterrier)
+ inb2:
+ display_name: InB2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/InB2(tira-ir-starter-pyterrier)
- - display_name: InL2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/InB2(tira-ir-starter-pyterrier)
+ inl2:
+ display_name: InL2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/InL2(tira-ir-starter-pyterrier)
- - display_name: Js-KLs
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/InL2(tira-ir-starter-pyterrier)
+ js_kls:
+ display_name: Js-KLs
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/Js_KLs(tira-ir-starter-pyterrier)
- - display_name: LGD
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/Js_KLs(tira-ir-starter-pyterrier)
+ lgd:
+ display_name: LGD
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/LGD(tira-ir-starter-pyterrier)
- - display_name: PL2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/LGD(tira-ir-starter-pyterrier)
+ pl2:
+ display_name: PL2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/PL2(tira-ir-starter-pyterrier)
- - display_name: TF-IDF
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/PL2(tira-ir-starter-pyterrier)
+ tf_idf:
+ display_name: TF-IDF
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/TF_IDF(tira-ir-starter-pyterrier)
- - display_name: XSqrA-M
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/TF_IDF(tira-ir-starter-pyterrier)
+ xsqra_m:
+ display_name: XSqrA-M
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/XSqrA_M(tira-ir-starter-pyterrier)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/XSqrA_M(tira-ir-starter-pyterrier)
-- display_name: Re-Ranking
+reranking:
+ display_name: Re-Ranking
components:
- - display_name: Cross-Encoder
+ cross_encoder:
+ display_name: Cross-Encoder
component_type: [TIREx]
components:
- - display_name: monoBERT
+ monobert:
+ display_name: monoBERT
component_type: [TIREx]
components:
- - display_name: monoBERT-small (MS MARCO, 50k steps)
+ monobert_small_50k:
+ display_name: monoBERT-small (MS MARCO, 50k steps)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/MonoBERT Small (tira-ir-starter-gygaggle)
- - display_name: monoBERT-small (MS MARCO, 10k steps)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/MonoBERT Small (tira-ir-starter-gygaggle)
+ monobert_small_10k:
+ display_name: monoBERT-small (MS MARCO, 10k steps)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/MonoBERT Small-MS-MARCO-10k (tira-ir-starter-gygaggle)
- - display_name: monoBERT-base (MS MARCO, 50k steps)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/MonoBERT Small-MS-MARCO-10k (tira-ir-starter-gygaggle)
+ monobert_base_50k:
+ display_name: monoBERT-base (MS MARCO, 50k steps)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/MonoBERT Base (tira-ir-starter-gygaggle)
- - display_name: monoBERT-large (MS MARCO, 50k steps)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/MonoBERT Base (tira-ir-starter-gygaggle)
+ monobert_large_50k:
+ display_name: monoBERT-large (MS MARCO, 50k steps)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/MonoBERT Large (tira-ir-starter-gygaggle)
- - display_name: monoBERT-large (MS MARCO, 10k steps)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/MonoBERT Large (tira-ir-starter-gygaggle)
+ monobert_large_10k:
+ display_name: monoBERT-large (MS MARCO, 10k steps)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/MonoBERT Large-MS-MARCO-10k (tira-ir-starter-gygaggle)
- - display_name: monoBERT-large (MS MARCO, original model)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/MonoBERT Large-MS-MARCO-10k (tira-ir-starter-gygaggle)
+ monobert_large_original:
+ display_name: monoBERT-large (MS MARCO, original model)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/MonoBERT Large-Finetune-Only (tira-ir-starter-gygaggle)
- - display_name: monoT5
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/MonoBERT Large-Finetune-Only (tira-ir-starter-gygaggle)
+ monot5:
+ display_name: monoT5
component_type: [TIREx]
components:
- - display_name: monoT5-3b (MS MARCO, 50k steps)
+ monot5_3b:
+ display_name: monoT5-3b (MS MARCO, 50k steps)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/MonoT5 3b (tira-ir-starter-gygaggle)
- - display_name: monoT5-base (MS MARCO, 50k steps)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/MonoT5 3b (tira-ir-starter-gygaggle)
+ monot5_base:
+ display_name: monoT5-base (MS MARCO, 50k steps)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/MonoT5 Base (tira-ir-starter-gygaggle)
- - display_name: monoT5-large (MS MARCO, 50k steps)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/MonoT5 Base (tira-ir-starter-gygaggle)
+ monot5_large:
+ display_name: monoT5-large (MS MARCO, 50k steps)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/MonoT5 Large (tira-ir-starter-gygaggle)
- - display_name: duoT5
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/MonoT5 Large (tira-ir-starter-gygaggle)
+ duot5:
+ display_name: duoT5
component_type: [TIREx]
components:
- - display_name: duoT5-base (MS MARCO, 50k steps, top-25)
+ duot5_base_50k:
+ display_name: duoT5-base (MS MARCO, 50k steps, top-25)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DuoT5 Top-25 (tira-ir-starter-pyterrier)
- - display_name: duoT5-3b (MS MARCO, 50k steps, top-25)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DuoT5 Top-25 (tira-ir-starter-pyterrier)
+ duot5_3b:
+ display_name: duoT5-3b (MS MARCO, 50k steps, top-25)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DuoT5 3b-ms-marco Top-25 (tira-ir-starter-pyterrier)
- - display_name: duoT5-base (MS MARCO, 10k steps, top-25)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DuoT5 3b-ms-marco Top-25 (tira-ir-starter-pyterrier)
+ duot5_base:
+ display_name: duoT5-base (MS MARCO, 10k steps, top-25)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DuoT5 base-10k-ms-marco Top-25 (tira-ir-starter-pyterrier)
- - display_name: Bi-Encoder
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DuoT5 base-10k-ms-marco Top-25 (tira-ir-starter-pyterrier)
+ bi_encoder:
+ display_name: Bi-Encoder
component_type: [TIREx]
components:
- - display_name: ANCE
+ ance:
+ display_name: ANCE
component_type: [TIREx]
components:
- - display_name: ANCE RoBERTa-base (MS MARCO, cosine-similarity)
+ ance_roberta_base_cos:
+ display_name: ANCE RoBERTa-base (MS MARCO, cosine-similarity)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/ANCE Base Cosine (tira-ir-starter-beir)
- - display_name: ANCE RoBERTa-base (MS MARCO, dot-product)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/ANCE Base Cosine (tira-ir-starter-beir)
+ ance_roberta_base_dot:
+ display_name: ANCE RoBERTa-base (MS MARCO, dot-product)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/ANCE Base Dot (tira-ir-starter-beir)
- - display_name: SBERT
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/ANCE Base Dot (tira-ir-starter-beir)
+ sbert:
+ display_name: SBERT
component_type: [TIREx]
components:
- - display_name: SBERT BERT-base (MS MARCO, dot-product, v5)
+ sbert_bert:
+ display_name: SBERT BERT-base (MS MARCO, dot-product, v5)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT msmarco-bert-base-dot-v5 (tira-ir-starter-beir)
- - display_name: SBERT DistilBERT-base (MS MARCO, cosine-similarity, v5)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT msmarco-bert-base-dot-v5 (tira-ir-starter-beir)
+ sbert_distilbert_cos_v5:
+ display_name: SBERT DistilBERT-base (MS MARCO, cosine-similarity, v5)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT msmarco-distilbert-cos-v5 (tira-ir-starter-beir)
- - display_name: SBERT DistilBERT-base (MS MARCO, dot-product, v5)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT msmarco-distilbert-cos-v5 (tira-ir-starter-beir)
+ sbert_distilbert_dot_v5:
+ display_name: SBERT DistilBERT-base (MS MARCO, dot-product, v5)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT msmarco-distilbert-dot-v5 (tira-ir-starter-beir)
- - display_name: SBERT DistilBERT-base (MS MARCO, cosine-similarity, v3)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT msmarco-distilbert-dot-v5 (tira-ir-starter-beir)
+ sbert_distilbert_cos_v3:
+ display_name: SBERT DistilBERT-base (MS MARCO, cosine-similarity, v3)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT msmarco-distilbert-base-v3-cos (tira-ir-starter-beir)
- - display_name: SBERT DistilBERT-base (MS MARCO, dot-product, v3)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT msmarco-distilbert-base-v3-cos (tira-ir-starter-beir)
+ sbert_distilbert_dot_v3:
+ display_name: SBERT DistilBERT-base (MS MARCO, dot-product, v3)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT msmarco-distilbert-base-v3-dot (tira-ir-starter-beir)
- - display_name: SBERT MiniLM-L6 (MS MARCO, cosine-similarity, v5)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT msmarco-distilbert-base-v3-dot (tira-ir-starter-beir)
+ sbert_minilm_l6:
+ display_name: SBERT MiniLM-L6 (MS MARCO, cosine-similarity, v5)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT msmarco-MiniLM-L6-cos-v5 (tira-ir-starter-beir)
- - display_name: SBERT MiniLM-L12 (MS MARCO, cosine-similarity, v5)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT msmarco-MiniLM-L6-cos-v5 (tira-ir-starter-beir)
+ sbert_minilm_l12:
+ display_name: SBERT MiniLM-L12 (MS MARCO, cosine-similarity, v5)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT msmarco-MiniLM-L12-cos-v5 (tira-ir-starter-beir)
- - display_name: SBERT DistilBERT (Multi-QA, cosine-similarity, v1)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT msmarco-MiniLM-L12-cos-v5 (tira-ir-starter-beir)
+ sbert_distilbert_multiqa_cos:
+ display_name: SBERT DistilBERT (Multi-QA, cosine-similarity, v1)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT multi-qa-distilbert-cos-v1 (tira-ir-starter-beir)
- - display_name: SBERT DistilBERT (Multi-QA, dot-product, v1)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT multi-qa-distilbert-cos-v1 (tira-ir-starter-beir)
+ sbert_distilbert_multiqa_dot:
+ display_name: SBERT DistilBERT (Multi-QA, dot-product, v1)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT multi-qa-distilbert-dot-v1 (tira-ir-starter-beir)
- - display_name: SBERT MiniLM-L6 (Multi-QA, cosine-similarity, v1)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT multi-qa-distilbert-dot-v1 (tira-ir-starter-beir)
+ sbert_minilm_l6_multiqa_cos:
+ display_name: SBERT MiniLM-L6 (Multi-QA, cosine-similarity, v1)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT multi-qa-MiniLM-L6-cos-v1 (tira-ir-starter-beir)
- - display_name: SBERT MiniLM-L6 (Multi-QA, dot-product, v1)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT multi-qa-MiniLM-L6-cos-v1 (tira-ir-starter-beir)
+ sbert_minilm_l6_multiqa_dot:
+ display_name: SBERT MiniLM-L6 (Multi-QA, dot-product, v1)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT multi-qa-MiniLM-L6-dot-v1 (tira-ir-starter-beir)
- - display_name: SBERT MPNet-base (Multi-QA, cosine-similarity, v1)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT multi-qa-MiniLM-L6-dot-v1 (tira-ir-starter-beir)
+ sbert_mpnet:
+ display_name: SBERT MPNet-base (Multi-QA, cosine-similarity, v1)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/SBERT multi-qa-mpnet-base-cos-v1 (tira-ir-starter-beir)
- - display_name: TAS-B
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/SBERT multi-qa-mpnet-base-cos-v1 (tira-ir-starter-beir)
+ tas_b:
+ display_name: TAS-B
component_type: [TIREx]
components:
- - display_name: TAS-B DistilBERT-base (MS MARCO, cosine-similarity)
+ tas_b_distilbert_cos:
+ display_name: TAS-B DistilBERT-base (MS MARCO, cosine-similarity)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/TASB msmarco-distilbert-base-cos (tira-ir-starter-beir)
- - display_name: TAS-B DistilBERT-base (MS MARCO, dot-product)
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/TASB msmarco-distilbert-base-cos (tira-ir-starter-beir)
+ tas_b_distilbert_dot:
+ display_name: TAS-B DistilBERT-base (MS MARCO, dot-product)
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/TASB msmarco-distilbert-base-dot (tira-ir-starter-beir)
- - display_name: Late Interaction
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/TASB msmarco-distilbert-base-dot (tira-ir-starter-beir)
+ late_interaction:
+ display_name: Late Interaction
component_type: [TIREx]
components:
- - display_name: ColBERT
+ colbert:
+ display_name: ColBERT
component_type: [TIREx, Tutorial]
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/ColBERT Re-Rank (tira-ir-starter-pyterrier)
links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/ColBERT Re-Rank (tira-ir-starter-pyterrier)
- display_name: Paper
href: https://ir.webis.de/anthology/2020.sigirconf_conference-2020.12/
target: _blank
@@ -745,117 +760,100 @@
href: https://github.com/terrier-org/ecir2021tutorial/blob/main/notebooks/notebook4.3.ipynb
target: _blank
- - display_name: Lexical Re-Ranking
+ lexical_reranking:
+ display_name: Lexical Re-Ranking
component_type: [TIREx]
components:
- - display_name: BM25
+ bm25:
+ display_name: BM25
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/BM25 Re-Rank (tira-ir-starter-pyterrier)
- - display_name: DFIC
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/BM25 Re-Rank (tira-ir-starter-pyterrier)
+ dfic:
+ display_name: DFIC
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DFIC Re-Rank (tira-ir-starter-pyterrier)
- - display_name: DFIZ
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DFIC Re-Rank (tira-ir-starter-pyterrier)
+ dfiz:
+ display_name: DFIZ
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DFIZ Re-Rank (tira-ir-starter-pyterrier)
- - display_name: DFR BM25
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DFIZ Re-Rank (tira-ir-starter-pyterrier)
+ dfr_bm25:
+ display_name: DFR BM25
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DFR_BM25 Re-Rank (tira-ir-starter-pyterrier)
- - display_name: DFRee
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DFR_BM25 Re-Rank (tira-ir-starter-pyterrier)
+ dfree:
+ display_name: DFRee
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DFRee Re-Rank (tira-ir-starter-pyterrier)
- - display_name: DFReeKLIM
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DFRee Re-Rank (tira-ir-starter-pyterrier)
+ dfreeklim:
+ display_name: DFReeKLIM
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DFReeKLIM Re-Rank (tira-ir-starter-pyterrier)
- - display_name: Dirichlet LM
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DFReeKLIM Re-Rank (tira-ir-starter-pyterrier)
+ dirichlet_lm:
+ display_name: Dirichlet LM
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DirichletLM Re-Rank (tira-ir-starter-pyterrier)
- - display_name: DLH
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DirichletLM Re-Rank (tira-ir-starter-pyterrier)
+ dlh:
+ display_name: DLH
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DLH Re-Rank (tira-ir-starter-pyterrier)
- - display_name: DPH
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DLH Re-Rank (tira-ir-starter-pyterrier)
+ dph:
+ display_name: DPH
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/DPH Re-Rank (tira-ir-starter-pyterrier)
- - display_name: Hiemstra LM
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/DPH Re-Rank (tira-ir-starter-pyterrier)
+ hiemstra_lm:
+ display_name: Hiemstra LM
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/Hiemstra_LM Re-Rank (tira-ir-starter-pyterrier)
- - display_name: IFB2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/Hiemstra_LM Re-Rank (tira-ir-starter-pyterrier)
+ ifb2:
+ display_name: IFB2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/IFB2 Re-Rank (tira-ir-starter-pyterrier)
- - display_name: In-expB2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/IFB2 Re-Rank (tira-ir-starter-pyterrier)
+ in_expb2:
+ display_name: In-expB2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/In_expB2 Re-Rank (tira-ir-starter-pyterrier)
- - display_name: In-expC2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/In_expB2 Re-Rank (tira-ir-starter-pyterrier)
+ in_expc2:
+ display_name: In-expC2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/In_expC2 Re-Rank (tira-ir-starter-pyterrier)
- - display_name: InB2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/In_expC2 Re-Rank (tira-ir-starter-pyterrier)
+ inb2:
+ display_name: InB2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/InB2 Re-Rank (tira-ir-starter-pyterrier)
- - display_name: InL2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/InB2 Re-Rank (tira-ir-starter-pyterrier)
+ inl2:
+ display_name: InL2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/InL2 Re-Rank (tira-ir-starter-pyterrier)
- - display_name: Js-KLs
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/InL2 Re-Rank (tira-ir-starter-pyterrier)
+ js_kls:
+ display_name: Js-KLs
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/Js_KLs Re-Rank (tira-ir-starter-pyterrier)
- - display_name: LGD
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/Js_KLs Re-Rank (tira-ir-starter-pyterrier)
+ lgd:
+ display_name: LGD
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/LGD Re-Rank (tira-ir-starter-pyterrier)
- - display_name: PL2
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/LGD Re-Rank (tira-ir-starter-pyterrier)
+ pl2:
+ display_name: PL2
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/PL2 Re-Rank (tira-ir-starter-pyterrier)
- - display_name: TF-IDF
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/PL2 Re-Rank (tira-ir-starter-pyterrier)
+ tf_idf:
+ display_name: TF-IDF
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/TF_IDF Re-Rank (tira-ir-starter-pyterrier)
- - display_name: XSqrA-M
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/TF_IDF Re-Rank (tira-ir-starter-pyterrier)
+ xsqra_m:
+ display_name: XSqrA-M
component_type: [TIREx]
- links:
- - display_name: Submission in TIREx
- href: /submissions/ir-benchmarks/tira-ir-starter/XSqrA_M Re-Rank (tira-ir-starter-pyterrier)
- - display_name: Rank Fusion
+ tirex_submission_id: ir-benchmarks/tira-ir-starter/XSqrA_M Re-Rank (tira-ir-starter-pyterrier)
+ rank_fusion:
+ display_name: Rank Fusion
component_type: [Code]
links:
- display_name: Ranx
href: https://github.com/AmenRa/ranx
target: _blank
-- display_name: Evaluation
+evaluation:
+ display_name: Evaluation
links:
- display_name: IR-Measures Paper
href: https://link.springer.com/chapter/10.1007/978-3-030-99739-7_38
@@ -867,7 +865,8 @@
href: https://github.com/webis-de/ir-pad/blob/public/tutorials/tutorial-01-ir-datasets.ipynb
target: _blank
components:
- - display_name: Bpref
+ bpref:
+ display_name: Bpref
component_type: [TIREx]
links:
- display_name: IR-Measures Explorer
@@ -882,7 +881,8 @@
- display_name: Criticism of Bpref
href: https://ir.webis.de/anthology/2007.sigirconf_conference-2007.12/
target: _blank
- - display_name: C/W/L
+ cwl:
+ display_name: C/W/L
links:
- display_name: Paper
href: https://ir.webis.de/anthology/2018.sigirconf_conference-2018.63/
@@ -893,7 +893,8 @@
- display_name: C/W/L Implementation
href: https://github.com/ireval/cwl
target: _blank
- - display_name: MAP
+ map:
+ display_name: MAP
component_type: [TIREx]
links:
- display_name: IR-Measures Explorer
@@ -908,7 +909,8 @@
- display_name: Defense of MRR
href: https://ir.webis.de/anthology/2020.sigirjournals_journal-ir0anthology0volumeA54A1.11/
target: _blank
- - display_name: MRR
+ mrr:
+ display_name: MRR
component_type: [TIREx]
links:
- display_name: IR-Measures Explorer
@@ -920,7 +922,8 @@
- display_name: Criticism of MRR
href: https://ir.webis.de/anthology/2017.sigirjournals_journal-ir0anthology0volumeA51A3.3/
target: _blank
- - display_name: nDCG
+ ndcg:
+ display_name: nDCG
component_type: [TIREx]
links:
- display_name: IR-Measures Explorer
@@ -932,7 +935,8 @@
- display_name: Paper
href: https://ir.webis.de/anthology/2002.tois_journal-ir0anthology0volumeA20A4.2/
target: _blank
- - display_name: Precision@k
+ precision:
+ display_name: Precision@k
component_type: [TIREx]
links:
- display_name: IR-Measures Explorer
@@ -941,7 +945,8 @@
- display_name: Reverse IR-Measures Demo
href: https://demo.ir-measur.es/reverse
target: _blank
- - display_name: Recall@k
+ recall:
+ display_name: Recall@k
component_type: [TIREx]
links:
- display_name: IR-Measures Explorer
@@ -950,7 +955,8 @@
- display_name: Reverse IR-Measures Demo
href: https://demo.ir-measur.es/reverse
target: _blank
- - display_name: Reproducibility
+ reproducibility:
+ display_name: Reproducibility
component_type: [Code]
links:
- display_name: repro_eval
diff --git a/application/test/api_access_matrix.py b/application/test/api_access_matrix.py
index 44ae5336f..695346db9 100644
--- a/application/test/api_access_matrix.py
+++ b/application/test/api_access_matrix.py
@@ -100,6 +100,17 @@
ORGANIZER_WRONG_TASK: 200,
},
),
+ route_to_test(
+ url_pattern='api/tirex-snippet',
+ params=None,
+ group_to_expected_status_code={
+ ADMIN: 200,
+ GUEST: 200,
+ PARTICIPANT: 200,
+ ORGANIZER: 200,
+ ORGANIZER_WRONG_TASK: 200,
+ },
+ ),
route_to_test(
url_pattern='api/snippets-for-tirex-components',
params=None,
diff --git a/application/test/settings_test.py b/application/test/settings_test.py
index 74d1cb167..978c95da0 100644
--- a/application/test/settings_test.py
+++ b/application/test/settings_test.py
@@ -318,7 +318,7 @@ def logger_config(log_dir: Path):
}
}
-TIREX_COMPONENTS = {}
+TIREX_COMPONENTS = yaml.load(open(BASE_DIR / 'src' / 'tirex-components.yml').read(), Loader=yaml.FullLoader)
GIT_CI_AVAILABLE_RESOURCES = {
'small-resources': {'cores': 1, 'ram': 10, 'gpu': 0, 'data': 'no', 'description': 'Small (1 CPU Cores, 10GB of RAM)', 'key': 'small-resources'}
diff --git a/application/test/tirex_components_snippet_rendering_tests/__init__.py b/application/test/tirex_components_snippet_rendering_tests/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/application/test/tirex_components_snippet_rendering_tests/test_snippet_generation_for_single_components.py b/application/test/tirex_components_snippet_rendering_tests/test_snippet_generation_for_single_components.py
new file mode 100644
index 000000000..d01663990
--- /dev/null
+++ b/application/test/tirex_components_snippet_rendering_tests/test_snippet_generation_for_single_components.py
@@ -0,0 +1,53 @@
+from django.test import TestCase
+from utils_for_testing import method_for_url_pattern, mock_request
+import json
+
+url = 'api/snippets-for-tirex-components'
+snippet_function = method_for_url_pattern(url)
+
+
+class TestSnippetGenerationForSingleComponents(TestCase):
+
+ def test_for_single_query_component_hyb_i(self):
+ # Arrange
+ expected_snippet = '''# You can replace Robust04 with other datasets
+dataset = pt.get_dataset("irds:disks45/nocr/trec-robust-2004")
+topics = dataset.get_topics(variant=\'title\')
+transformed_queries = tira.pt.transform_queries(\'ir-benchmarks/ows/query-segmentation-hyb-i\', topics)'''
+ request = mock_request('', url)
+ request.GET['component'] = 'ir-benchmarks/ows/query-segmentation-hyb-i'
+
+ # Act
+ actual = snippet_function(request)
+ actual_json = json.loads(actual.content.decode())
+ self.assertEquals(0, actual_json['status'])
+ self.assertEquals(expected_snippet, actual_json['context']['snippet'])
+
+ def test_for_single_query_component_hyb_b(self):
+ # Arrange
+ expected_snippet = '''# You can replace Robust04 with other datasets
+dataset = pt.get_dataset("irds:disks45/nocr/trec-robust-2004")
+topics = dataset.get_topics(variant=\'title\')
+transformed_queries = tira.pt.transform_queries(\'ir-benchmarks/ows/query-segmentation-hyb-b\', topics)'''
+ request = mock_request('', url)
+ request.GET['component'] = 'ir-benchmarks/ows/query-segmentation-hyb-b'
+
+ # Act
+ actual = snippet_function(request)
+ actual_json = json.loads(actual.content.decode())
+ self.assertEquals(0, actual_json['status'])
+ self.assertEquals(expected_snippet, actual_json['context']['snippet'])
+
+ def test_for_single_document_processor_bce_fo(self):
+ # Arrange
+ expected_snippet = '''# You can replace Robust04 with other datasets
+dataset = pt.get_dataset("irds:disks45/nocr/trec-robust-2004")
+transformed_docs = tira.pt.transform_documents('ir-benchmarks/ows/bce-fo', dataset)'''
+ request = mock_request('', url)
+ request.GET['component'] = 'ir-benchmarks/ows/bce-fo'
+
+ # Act
+ actual = snippet_function(request)
+ actual_json = json.loads(actual.content.decode())
+ self.assertEquals(0, actual_json['status'])
+ self.assertEquals(expected_snippet, actual_json['context']['snippet'])