Update ReadME
Browse files
README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
-
## Dataset Structure Overview
|
5 |
M-BEIR dataset comprises two main components: Query Data and Candidate Pool.
|
6 |
Each of these sections consists of structured entries in JSONL format (JSON Lines), meaning each line is a valid JSON object. Below is a detailed breakdown of the components and their respective fields:
|
7 |
|
@@ -26,3 +26,33 @@ The Candidate Pool contains potential matching documents for the queries. Each l
|
|
26 |
- Candidate Image Path (`img_path`): The file path to the candidate document's image.
|
27 |
- Candidate Modality (`modality`): The modality type of the candidate (e.g., text, image or text,image).
|
28 |
- Source Content (`src_content`): Additional content from the original dataset, presented as a string by json.dumps().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
+
## **Dataset Structure Overview**
|
5 |
M-BEIR dataset comprises two main components: Query Data and Candidate Pool.
|
6 |
Each of these sections consists of structured entries in JSONL format (JSON Lines), meaning each line is a valid JSON object. Below is a detailed breakdown of the components and their respective fields:
|
7 |
|
|
|
26 |
- Candidate Image Path (`img_path`): The file path to the candidate document's image.
|
27 |
- Candidate Modality (`modality`): The modality type of the candidate (e.g., text, image or text,image).
|
28 |
- Source Content (`src_content`): Additional content from the original dataset, presented as a string by json.dumps().
|
29 |
+
|
30 |
+
## **How to Use**
|
31 |
+
### Downloading the M-BEIR Dataset
|
32 |
+
Download the dataset files directly from the page.
|
33 |
+
|
34 |
+
### Decompressing M-BEIR Images
|
35 |
+
After downloading, you will need to decompress the image files. Follow these steps in your terminal:
|
36 |
+
```bash
|
37 |
+
# Navigate to the M-BEIR directory
|
38 |
+
cd path/to/M-BEIR
|
39 |
+
|
40 |
+
# Combine the split tar.gz files into one
|
41 |
+
sh -c 'cat mbeir_images.tar.gz.part-00 mbeir_images.tar.gz.part-01 mbeir_images.tar.gz.part-02 mbeir_images.tar.gz.part-03 > mbeir_images.tar.gz'
|
42 |
+
|
43 |
+
# Extract the images from the tar.gz file
|
44 |
+
tar -xzf mbeir_images.tar.gz
|
45 |
+
```
|
46 |
+
|
47 |
+
## **Citation**
|
48 |
+
|
49 |
+
Please cite our paper if you use our data, model or code.
|
50 |
+
|
51 |
+
```
|
52 |
+
@article{wei2023uniir,
|
53 |
+
title={UniIR: Training and Benchmarking Universal Multimodal Information Retrievers},
|
54 |
+
author={Wei, Cong and Chen, Yang and Chen, Haonan and Hu, Hexiang and Zhang, Ge and Fu, Jie and Ritter, Alan and Chen, Wenhu},
|
55 |
+
journal={arXiv preprint arXiv:2311.17136},
|
56 |
+
year={2023}
|
57 |
+
}
|
58 |
+
```
|