hanhainebula commited on
Commit
6ff4f74
1 Parent(s): e8440aa

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +7 -4
README.md CHANGED
@@ -7,7 +7,7 @@ This respository introduces how to reproduce the `Dense`, `Sparse`, and `Dense+S
7
  ```bash
8
  # Install Java (Linux)
9
  apt update
10
- apt install openjdk-11-jdk
11
 
12
  # Install Pyserini
13
  pip install pyserini
@@ -31,10 +31,13 @@ conda install -c conda-forge faiss-gpu
31
  ## MIRACL topics and qrels
32
  git clone https://huggingface.co/datasets/miracl/miracl
33
  mv miracl/*/*/* topics-and-qrels
34
-
35
  git lfs install
36
  git clone https://huggingface.co/datasets/hanhainebula/bge-m3_miracl_2cr
37
 
 
 
 
38
 
39
  # Unzip
40
  languages=(ar bn en es fa fi fr hi id ja ko ru sw te th zh de yo)
@@ -64,7 +67,7 @@ python -m pyserini.search.faiss \
64
  --encoder-class auto \
65
  --encoder BAAI/bge-m3 \
66
  --pooling cls --l2-norm \
67
- --topics topics-and-qrels/miracl-v1.0-${lang}-dev.tsv \
68
  --index bge-m3_miracl_2cr/dense/${lang} \
69
  --output bge-m3_miracl_2cr/dense/runs/${lang}.txt \
70
  --hits 1000
@@ -124,7 +127,7 @@ python -m pyserini.search.faiss \
124
  --encoder-class auto \
125
  --encoder BAAI/bge-m3 \
126
  --pooling cls --l2-norm \
127
- --topics topics-and-qrels/miracl-v1.0-${lang}-dev.tsv \
128
  --index bge-m3_miracl_2cr/dense/${lang} \
129
  --output bge-m3_miracl_2cr/dense/runs/${lang}.txt \
130
  --hits 1000
 
7
  ```bash
8
  # Install Java (Linux)
9
  apt update
10
+ apt install openjdk-21-jdk
11
 
12
  # Install Pyserini
13
  pip install pyserini
 
31
  ## MIRACL topics and qrels
32
  git clone https://huggingface.co/datasets/miracl/miracl
33
  mv miracl/*/*/* topics-and-qrels
34
+ ## Dense and Sparse Index
35
  git lfs install
36
  git clone https://huggingface.co/datasets/hanhainebula/bge-m3_miracl_2cr
37
 
38
+ cat bge-m3_miracl_2cr/dense/en.tar.gz.part_* > bge-m3_miracl_2cr/dense/en.tar.gz
39
+ cat bge-m3_miracl_2cr/dense/de.tar.gz.part_* > bge-m3_miracl_2cr/dense/de.tar.gz
40
+
41
 
42
  # Unzip
43
  languages=(ar bn en es fa fi fr hi id ja ko ru sw te th zh de yo)
 
67
  --encoder-class auto \
68
  --encoder BAAI/bge-m3 \
69
  --pooling cls --l2-norm \
70
+ --topics topics-and-qrels/topics.miracl-v1.0-${lang}-dev.tsv \
71
  --index bge-m3_miracl_2cr/dense/${lang} \
72
  --output bge-m3_miracl_2cr/dense/runs/${lang}.txt \
73
  --hits 1000
 
127
  --encoder-class auto \
128
  --encoder BAAI/bge-m3 \
129
  --pooling cls --l2-norm \
130
+ --topics topics-and-qrels/topics.miracl-v1.0-${lang}-dev.tsv \
131
  --index bge-m3_miracl_2cr/dense/${lang} \
132
  --output bge-m3_miracl_2cr/dense/runs/${lang}.txt \
133
  --hits 1000