macavaney commited on
Commit
b3c7de6
·
verified ·
1 Parent(s): 2de9c0a

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +10 -18
  2. artifact.tar.lz4 +2 -2
  3. artifact.tar.lz4.json +1 -1
README.md CHANGED
@@ -3,6 +3,8 @@
3
  tags:
4
  - pyterrier
5
  - pyterrier-artifact
 
 
6
  task_categories:
7
  - text-retrieval
8
  viewer: false
@@ -12,43 +14,33 @@ viewer: false
12
 
13
  ## Description
14
 
15
- Terrier index for Climate-Fever
16
 
17
  ## Usage
18
 
19
  ```python
20
  # Load the artifact
21
  import pyterrier as pt
22
- index = pt.Artifact.from_hf('pyterrier/climate-fever.terrier')
23
- index.bm25()
24
  ```
25
 
26
  ## Benchmarks
27
 
28
- | name | nDCG@10 | R@1000 |
29
- |:-------|----------:|---------:|
30
- | bm25 | 0.1354 | 0.5844 |
31
- | dph | 0.1693 | 0.6394 |
32
 
33
  ## Reproduction
34
 
35
  ```python
36
- import pyterrier as pt
37
- from tqdm import tqdm
38
- import pandas as pd
39
- import ir_datasets
40
- from pyterrier_pisa import PisaIndex
41
- dataset = ir_datasets.load('beir/climate-fever')
42
- meta_docno_len = dataset.metadata()['docs']['fields']['doc_id']['max_len']
43
- indexer = pt.IterDictIndexer("./climate-fever.terrier", meta={'docno': meta_docno_len, 'text': 4096})
44
- docs = ({'docno': d.doc_id, 'text': d.default_text()} for d in tqdm(dataset.docs))
45
- indexer.index(docs)
46
  ```
47
 
48
  ## Metadata
49
 
50
  ```
51
  {
52
- "package_hint": "pyterrier"
 
 
53
  }
54
  ```
 
3
  tags:
4
  - pyterrier
5
  - pyterrier-artifact
6
+ - pyterrier-artifact.sparse_index
7
+ - pyterrier-artifact.sparse_index.terrier
8
  task_categories:
9
  - text-retrieval
10
  viewer: false
 
14
 
15
  ## Description
16
 
17
+ *TODO: What is the artifact?*
18
 
19
  ## Usage
20
 
21
  ```python
22
  # Load the artifact
23
  import pyterrier as pt
24
+ artifact = pt.Artifact.from_hf('pyterrier/climate-fever.terrier')
25
+ # TODO: Show how you use the artifact
26
  ```
27
 
28
  ## Benchmarks
29
 
30
+ *TODO: Provide benchmarks for the artifact.*
 
 
 
31
 
32
  ## Reproduction
33
 
34
  ```python
35
+ # TODO: Show how you constructed the artifact.
 
 
 
 
 
 
 
 
 
36
  ```
37
 
38
  ## Metadata
39
 
40
  ```
41
  {
42
+ "type": "sparse_index",
43
+ "format": "terrier",
44
+ "package_hint": "python-terrier"
45
  }
46
  ```
artifact.tar.lz4 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:385efc69baa70fb3a5dac9812a5dc5f705de673212af5281a23a04bbd7ea5254
3
- size 3019757722
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf8a8f9cea2c4204b43b99624082c4e878ae73226f07e287e12b3ec04792cc1d
3
+ size 3019757765
artifact.tar.lz4.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ad623be13cedae20fb1c835c11c42a70fc630203e596d61a6b73eaa1dccb3626
3
  size 904
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:736c5d5fe6b2a222ec763e923e05a5ba729a254e1ff6907fa04c6b242ae9db8c
3
  size 904