← home
Github: datasets/trec_arabic.py

ir_datasets: TREC Arabic

Index
  1. trec-arabic
  2. trec-arabic/ar2001
  3. trec-arabic/ar2002

Data Access Information

To use this dataset, you need a copy of the source corpus, provided by the the Linguistic Data Consortium. The specific resource needed is LDC2001T55.

Many organizations already have a subscription to the LDC, so access to the collection can be as easy as confirming the data usage agreement and downloading the corpus. Check with your library for access details.

The source file is: arabic_newswire_a_LDC2001T55.tgz.

ir_datasets expects this file to be copied/linked as ~/.ir_datasets/trec-arabic/corpus.tgz.


"trec-arabic"

A collection of news articles in Arabic, used for multi-lingual evaluation in TREC 2001 and TREC 2002.

Document collection from LDC2001T55.

docsCitation

Language: ar

Document type:
TrecDoc: (namedtuple)
  1. doc_id: str
  2. text: str
  3. marked_up_doc: str

Examples:

Python APICLIPyTerrier
import ir_datasets
dataset = ir_datasets.load("trec-arabic")
for doc in dataset.docs_iter():
    doc # namedtuple<doc_id, text, marked_up_doc>

You can find more details about the Python API here.


"trec-arabic/ar2001"

Arabic benchmark from TREC 2001.

queriesdocsqrelsCitation

Language: ar

Query type:
TrecQuery: (namedtuple)
  1. query_id: str
  2. title: str
  3. description: str
  4. narrative: str

Examples:

Python APICLIPyTerrier
import ir_datasets
dataset = ir_datasets.load("trec-arabic/ar2001")
for query in dataset.queries_iter():
    query # namedtuple<query_id, title, description, narrative>

You can find more details about the Python API here.


"trec-arabic/ar2002"

Arabic benchmark from TREC 2002.

queriesdocsqrelsCitation

Language: ar

Query type:
TrecQuery: (namedtuple)
  1. query_id: str
  2. title: str
  3. description: str
  4. narrative: str

Examples:

Python APICLIPyTerrier
import ir_datasets
dataset = ir_datasets.load("trec-arabic/ar2002")
for query in dataset.queries_iter():
    query # namedtuple<query_id, title, description, narrative>

You can find more details about the Python API here.