Upload folder using huggingface_hub
Browse files- README.md +10 -18
- artifact.tar.lz4 +2 -2
- 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 |
-
|
| 16 |
|
| 17 |
## Usage
|
| 18 |
|
| 19 |
```python
|
| 20 |
# Load the artifact
|
| 21 |
import pyterrier as pt
|
| 22 |
-
|
| 23 |
-
|
| 24 |
```
|
| 25 |
|
| 26 |
## Benchmarks
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|:-------|----------:|---------:|
|
| 30 |
-
| bm25 | 0.4914 | 0.9922 |
|
| 31 |
-
| dph | 0.4319 | 0.99 |
|
| 32 |
|
| 33 |
## Reproduction
|
| 34 |
|
| 35 |
```python
|
| 36 |
-
|
| 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/arguana')
|
| 42 |
-
meta_docno_len = dataset.metadata()['docs']['fields']['doc_id']['max_len']
|
| 43 |
-
indexer = pt.IterDictIndexer("./arguana.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 |
-
"
|
|
|
|
|
|
|
| 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/arguana.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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95b4e93b28502f44293703192acd3d54b3057d89a3606af5174ef2f3f4c84ed8
|
| 3 |
+
size 8014275
|
artifact.tar.lz4.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 853
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdc392750060c7cc18e49ceba3cea3bced11d1f304b40d7d89c4296c858c7cb6
|
| 3 |
size 853
|