Delete loading script auxiliary file
Browse files- scirepeval_test_configs.py +0 -99
scirepeval_test_configs.py
DELETED
|
@@ -1,99 +0,0 @@
|
|
| 1 |
-
from typing import Dict, Any, List
|
| 2 |
-
|
| 3 |
-
import datasets
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
class ScirepevalConfig(datasets.BuilderConfig):
|
| 7 |
-
"""BuilderConfig for SuperGLUE."""
|
| 8 |
-
|
| 9 |
-
def __init__(self, task_type: str, features: Dict[str, Any]=None, url="", **kwargs):
|
| 10 |
-
"""BuilderConfig for SuperGLUE.
|
| 11 |
-
|
| 12 |
-
Args:
|
| 13 |
-
features: *list[string]*, list of the features that will appear in the
|
| 14 |
-
feature dict. Should not include "label".
|
| 15 |
-
data_url: *string*, url to download the zip file from.
|
| 16 |
-
citation: *string*, citation for the data set.
|
| 17 |
-
url: *string*, url for information about the data set.
|
| 18 |
-
label_classes: *list[string]*, the list of classes for the label if the
|
| 19 |
-
label is present as a string. Non-string labels will be cast to either
|
| 20 |
-
'False' or 'True'.
|
| 21 |
-
**kwargs: keyword arguments forwarded to super.
|
| 22 |
-
"""
|
| 23 |
-
super().__init__(version=datasets.Version("1.1.0"), **kwargs)
|
| 24 |
-
self.features = features
|
| 25 |
-
self.task_type = task_type
|
| 26 |
-
self.url = url
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
SCIREPEVAL_CONFIGS = [
|
| 30 |
-
ScirepevalConfig(name="fos", features={"paper_id": datasets.Value("string"),
|
| 31 |
-
"label": datasets.Sequence(datasets.Value("int32"))}, task_type="classification"),
|
| 32 |
-
|
| 33 |
-
ScirepevalConfig(name="mesh_descriptors", features={"paper_id": datasets.Value("string"),
|
| 34 |
-
"label": datasets.Value("int32")}, task_type="classification"),
|
| 35 |
-
|
| 36 |
-
ScirepevalConfig(name="biomimicry", features={"paper_id": datasets.Value("string"),
|
| 37 |
-
"label": datasets.Value("int32")}, task_type="classification"),
|
| 38 |
-
|
| 39 |
-
ScirepevalConfig(name="cite_count", features={"paper_id": datasets.Value("string"),
|
| 40 |
-
"label": datasets.Value("float64")}, task_type="regression"),
|
| 41 |
-
|
| 42 |
-
ScirepevalConfig(name="pub_year", features={"paper_id": datasets.Value("string"),
|
| 43 |
-
"label": datasets.Value("float64")}, task_type="regression"),
|
| 44 |
-
|
| 45 |
-
ScirepevalConfig(name="high_influence_cite", features={"query_id": datasets.Value("string"),
|
| 46 |
-
"cand_id": datasets.Value("string"), "score": datasets.Value("uint8")}, task_type="proximity"),
|
| 47 |
-
|
| 48 |
-
ScirepevalConfig(name="same_author", features={"query_id": datasets.Value("string"),
|
| 49 |
-
"cand_id": datasets.Value("string"), "score": datasets.Value("uint8")}, task_type="proximity"),
|
| 50 |
-
|
| 51 |
-
ScirepevalConfig(name="search", features={"query_id": datasets.Value("string"),
|
| 52 |
-
"cand_id": datasets.Value("string"), "score": datasets.Value("uint8")}, task_type="search"),
|
| 53 |
-
|
| 54 |
-
ScirepevalConfig(name="drsm", task_type="classification", features={"paper_id": datasets.Value("string"),
|
| 55 |
-
"label": datasets.Value("int32")}),
|
| 56 |
-
|
| 57 |
-
ScirepevalConfig(name="relish", features={"query_id": datasets.Value("string"),
|
| 58 |
-
"cand_id": datasets.Value("string"), "score": datasets.Value("uint8")}, task_type="proximity"),
|
| 59 |
-
|
| 60 |
-
ScirepevalConfig(name="nfcorpus", features={"query_id": datasets.Value("string"),
|
| 61 |
-
"cand_id": datasets.Value("string"), "score": datasets.Value("uint8")}, task_type="search"),
|
| 62 |
-
|
| 63 |
-
ScirepevalConfig(name="peer_review_score", task_type="regression", url="peer_review_score_hIndex/peer_review_score", features={"paper_id": datasets.Value("string"),
|
| 64 |
-
"label": datasets.Value("float64")}),
|
| 65 |
-
|
| 66 |
-
ScirepevalConfig(name="hIndex", task_type="regression", url="peer_review_score_hIndex/hIndex", features={"paper_id": datasets.Value("string"),
|
| 67 |
-
"label": datasets.Value("float64")}),
|
| 68 |
-
|
| 69 |
-
ScirepevalConfig(name="trec_covid", features={"query_id": datasets.Value("string"),
|
| 70 |
-
"cand_id": datasets.Value("string"), "score": datasets.Value("int8")}, task_type="search"),
|
| 71 |
-
|
| 72 |
-
ScirepevalConfig(name="tweet_mentions", task_type="regression", features={"paper_id": datasets.Value("string"),
|
| 73 |
-
"label": datasets.Value("float64")}),
|
| 74 |
-
|
| 75 |
-
ScirepevalConfig(name="scidocs_mag", task_type="classification", url="scidocs/mag_mesh/mag", features={"paper_id": datasets.Value("string"),
|
| 76 |
-
"label": datasets.Value("int32")}),
|
| 77 |
-
|
| 78 |
-
ScirepevalConfig(name="scidocs_mesh", task_type="classification", url="scidocs/mag_mesh/mesh", features={"paper_id": datasets.Value("string"),
|
| 79 |
-
"label": datasets.Value("int32")}),
|
| 80 |
-
|
| 81 |
-
ScirepevalConfig(name="scidocs_view", features={"query_id": datasets.Value("string"),
|
| 82 |
-
"cand_id": datasets.Value("string"), "score": datasets.Value("uint8")}, task_type="proximity", url="scidocs/view_cite_read/coview"),
|
| 83 |
-
|
| 84 |
-
ScirepevalConfig(name="scidocs_cite", features={"query_id": datasets.Value("string"),
|
| 85 |
-
"cand_id": datasets.Value("string"), "score": datasets.Value("uint8")}, task_type="proximity", url="scidocs/view_cite_read/cite"),
|
| 86 |
-
|
| 87 |
-
ScirepevalConfig(name="scidocs_cocite", features={"query_id": datasets.Value("string"),
|
| 88 |
-
"cand_id": datasets.Value("string"), "score": datasets.Value("uint8")}, task_type="proximity", url="scidocs/view_cite_read/cocite"),
|
| 89 |
-
|
| 90 |
-
ScirepevalConfig(name="scidocs_read", features={"query_id": datasets.Value("string"),
|
| 91 |
-
"cand_id": datasets.Value("string"), "score": datasets.Value("uint8")}, task_type="proximity", url="scidocs/view_cite_read/coread"),
|
| 92 |
-
|
| 93 |
-
ScirepevalConfig(name="reviewers", task_type="metadata", url="paper_reviewer_matching", features={"r_id": datasets.Value("string"),
|
| 94 |
-
"papers": datasets.Sequence(datasets.Value("string"))}),
|
| 95 |
-
|
| 96 |
-
ScirepevalConfig(name="paper_reviewer_matching", features={"query_id": datasets.Value("string"),
|
| 97 |
-
"cand_id": datasets.Value("string"), "score": datasets.Value("uint8")}, task_type="proximity"),
|
| 98 |
-
|
| 99 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|