five

pyterrier/nq.pisa

收藏
Hugging Face2024-10-08 更新2025-04-26 收录
下载链接:
https://hf-mirror.com/datasets/pyterrier/nq.pisa
下载链接
链接失效反馈
官方服务:
资源简介:
--- # pretty_name: "" # Example: "MS MARCO Terrier Index" tags: - pyterrier - pyterrier-artifact - pyterrier-artifact.sparse_index - pyterrier-artifact.sparse_index.pisa task_categories: - text-retrieval viewer: false --- # nq.pisa ## Description A PISA index for the NQ (Natural Questions) dataset ## Usage ```python # Load the artifact import pyterrier as pt index = pt.Artifact.from_hf('pyterrier/nq.pisa') index = pt.bm25() # returns a BM25 retriever ``` ## Benchmarks | name | nDCG@10 | R@1000 | |:-------|----------:|---------:| | bm25 | 0.3071 | 0.8977 | | dph | 0.2988 | 0.8947 | ## Reproduction ```python import pyterrier as pt from tqdm import tqdm import ir_datasets from pyterrier_pisa import PisaIndex index = PisaIndex("nq.pisa", threads=16) dataset = ir_datasets.load('beir/nq') docs = ({'docno': d.doc_id, 'text': d.default_text()} for d in tqdm(dataset.docs)) index.index(docs) ``` ## Metadata ``` { "type": "sparse_index", "format": "pisa", "package_hint": "pyterrier-pisa", "stemmer": "porter2" } ```
提供机构:
pyterrier
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作