parquet-converter commited on
Commit
d7522ff
1 Parent(s): 9355249

Update parquet files

Browse files
README.md DELETED
@@ -1,64 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - machine-generated
4
- language:
5
- - fa
6
- - ru
7
- - zh
8
- language_creators:
9
- - machine-generated
10
- multilinguality:
11
- - multilingual
12
- pretty_name: NeuMARCO
13
- size_categories:
14
- - 1M<n<10M
15
- source_datasets:
16
- - extended|irds/msmarco-passage
17
- tags: []
18
- task_categories:
19
- - text-retrieval
20
- ---
21
-
22
- # Dataset Card for NeuMARCO
23
-
24
- ## Dataset Description
25
-
26
- - **Website:** https://neuclir.github.io/
27
-
28
- ### Dataset Summary
29
-
30
- This is the dataset created for TREC 2022 NeuCLIR Track. The collection consists of documents from [`msmarco-passage`](https://ir-datasets.com/msmarco-passage) translated into
31
- Chinese, Persian, and Russian.
32
-
33
- ### Languages
34
-
35
- - Chinese
36
- - Persian
37
- - Russian
38
-
39
- ## Dataset Structure
40
-
41
- ### Data Instances
42
-
43
- | Split | Documents |
44
- |-----------------|----------:|
45
- | `fas` (Persian) | 8.8M |
46
- | `rus` (Russian) | 8.8M |
47
- | `zho` (Chinese) | 8.8M |
48
-
49
- ### Data Fields
50
- - `doc_id`: unique identifier for this document
51
- - `text`: translated passage text
52
-
53
- ## Dataset Usage
54
-
55
- Using 🤗 Datasets:
56
-
57
- ```python
58
- from datasets import load_dataset
59
-
60
- dataset = load_dataset('neuclir/neumarco')
61
- dataset['fas'] # Persian passages
62
- dataset['rus'] # Russian passages
63
- dataset['zho'] # Chinese passages
64
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/neumarco.tar.gz → default/neumarco-fas-00000-of-00010.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:28f434b1234587599547ea0cdf95b923289ccf015739d820e3563db89a7be866
3
- size 3723728998
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e87be7979e7230b69427c7dfd5b41f425a7b4dcf4981c6d828bafda9d31124c
3
+ size 216688067
default/neumarco-fas-00001-of-00010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ece61aef49c7954ec404b737a7a6e6ddfb7ec8d9575687c16103bea94247585c
3
+ size 215658708
default/neumarco-fas-00002-of-00010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:134c8a1875112aa196b1e757e66fe5ecc16870933015b5578ddeef702802895a
3
+ size 217978024
default/neumarco-fas-00003-of-00010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf3b6618b1a7c7cd7ce396c26bf45162cb4ccc6ed25903639d8e1175bbb978a5
3
+ size 218960536
default/neumarco-fas-00004-of-00010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a035b29526ab17cecb680344f8a10fafab55e66a29c22879fe363c5b3f8d5cb
3
+ size 218206898
default/neumarco-fas-00005-of-00010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d93fa806bf4234741900541b4feb18a6edf37b2890f80dd9a774443b795304e8
3
+ size 218548085
default/neumarco-fas-00006-of-00010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91e048259e0a1938a53a0e5a349aab771a09fd982de969a62f7b6ebc45682ae2
3
+ size 212450119
default/neumarco-fas-00007-of-00010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:016a46a0d9d25ec1e722867bcc17c2d7917c41c54f99f7ca8b8fd6489e8113cb
3
+ size 209517861
default/neumarco-fas-00008-of-00010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:008753f49505c1c9ebdfdb7b6109c96e8683f6d9cc01acdb8c048e8897a86a74
3
+ size 224885871
default/neumarco-fas-00009-of-00010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2516f88481ccd1d9680d60cad440b3b6e94af21e4b5fd63badd20b58076b6e2d
3
+ size 215335423
default/neumarco-rus-00000-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97fd4677ff1b59f5c846989e7dbc392cac19d2da5ed1a8d60eefa414c0d6a13b
3
+ size 222209919
default/neumarco-rus-00001-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a29e7259bcaa2ff0199f1f74f7a2ea06d2d9be87980a5aa07f599f26d0d0f33e
3
+ size 220967230
default/neumarco-rus-00002-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8899b8cd881d0099b33444cfb5aa6f075cb36569540323e471f77d6cc2c8a60
3
+ size 221824657
default/neumarco-rus-00003-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8b887223138b520287f3c74c848c7eee76b57972fb8eed0996c53e31a0c6862
3
+ size 225998304
default/neumarco-rus-00004-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f842bf1627f682c215c3fca9eeb5d6a3b731a66158fb0846b4468459e7a321f2
3
+ size 224614230
default/neumarco-rus-00005-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8015c31fe41ced0b72c85d8737b6f8a4a144a85e08d47b8dd5070adf04592bb
3
+ size 224500348
default/neumarco-rus-00006-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae82af74c9334ae02c77f917e23cf09a4df312d384e4ce5d5c892eca166c2d77
3
+ size 224880462
default/neumarco-rus-00007-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c8022dbc146a0f1580a090f296f49bd8d1943739b5d71f7a3a3dc7a999d5a33
3
+ size 217226193
default/neumarco-rus-00008-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29141ec8e3b2d0c8402838e306266bbaddf4c6f5d731696065264c43cd7620fc
3
+ size 213537249
default/neumarco-rus-00009-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a8ae1bf5e41a86085600a23cfec18a76417dbda427cc2e2998cf63aee9240f7
3
+ size 229093710
default/neumarco-rus-00010-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edaa5eb8618ba2d7fa03f34c450a565c31adffe893e4a0fe8afd573d8c66427e
3
+ size 231624132
default/neumarco-rus-00011-of-00012.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e26aa0fe855c57bea7920092ce792707de8e6bbc69cca43975aa7f0dd9a7561
3
+ size 92140351
default/neumarco-zho-00000-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:827077ae94c29d1e35442b458260597f13397e5690fa654e486e0a9384f6c7eb
3
+ size 292122894
default/neumarco-zho-00001-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efe4a1b9466ecc130b7601408f8890a5a53c6b1f792ff900b77392c1a203a27e
3
+ size 294796972
default/neumarco-zho-00002-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1235302907ce9f84742bbed72611334453675b17d46962e33b558396d259adb1
3
+ size 295293931
default/neumarco-zho-00003-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6720ca06cb0397c4bc95fa9dfd46245ab255be4be69550da2b15931ff1c99d83
3
+ size 285871058
default/neumarco-zho-00004-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3557c8730117d6c3586b3a1ecc494d71c2ab2000d2c6cf0536d816099825f654
3
+ size 297672670
default/neumarco-zho-00005-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79ed8f9dbdb307b08ff91f31c02a663db8c9d87bef4fe029294d053077a29aac
3
+ size 155191546
neumarco.py DELETED
@@ -1,41 +0,0 @@
1
- import tarfile
2
- import os
3
- import datasets
4
-
5
- _URLS = {
6
- "neumarco": "https://huggingface.co/datasets/neuclir/neumarco/resolve/main/data/neumarco.tar.gz"
7
- }
8
-
9
- class Neumarco(datasets.GeneratorBasedBuilder):
10
- VERSION = datasets.Version("1.0.0")
11
-
12
- def _info(self):
13
- return datasets.DatasetInfo(
14
- features=datasets.Features({
15
- "doc_id": datasets.Value("string"),
16
- "text": datasets.Value("string"),
17
- }),
18
- )
19
-
20
- def _split_generators(self, dl_manager):
21
- paths = dl_manager.download(_URLS)
22
- return [
23
- datasets.SplitGenerator(
24
- name=lang,
25
- gen_kwargs={
26
- "filepath": paths['neumarco'],
27
- "tarpath": f'eng-{lang}/msmarco.collection.20210731-scale21-sockeye2-tm1.tsv'
28
- })
29
- for lang in ['fas', 'rus', 'zho']
30
- ]
31
-
32
- def _generate_examples(self, filepath, tarpath):
33
- with tarfile.open(filepath, 'r|gz') as tarf:
34
- for fileinfo in tarf:
35
- if fileinfo.name != tarpath:
36
- continue
37
- with tarf.extractfile(fileinfo) as f:
38
- for key, line in enumerate(f):
39
- doc_id, text = line.decode('utf8').rstrip('\n').split('\t')
40
- yield key, {'doc_id': doc_id, 'text': text}
41
- break