File size: 4,442 Bytes
e545230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
{
 "manifest_version": 1,
 "role": "statement_tagger",
 "name": "statement-tagger",
 "version": "statements-v1/C-minilm-mix",
 "task": "multilabel_classification",
 "runtime": {
  "engine": "onnxruntime",
  "requires": [
   "onnxruntime",
   "tokenizers",
   "numpy"
  ],
  "opset": 17,
  "executes_code_on_load": false
 },
 "files": [
  {
   "path": "onnx/bibr_onnx.json",
   "bytes": 2550,
   "sha256": "37eb7225f10156c4e68679f22dff63ca62c3b9d5a949483be15eec5f75596ee2",
   "kind": "legacy_manifest"
  },
  {
   "path": "onnx/model.onnx",
   "bytes": 90411056,
   "sha256": "24e0fdb7b084170197e85226edf63029d0fecabcf7f4a67f11fd4d383110c4bf",
   "kind": "model"
  },
  {
   "path": "onnx/tokenizer.json",
   "bytes": 527292,
   "sha256": "325e6539e09081160e94f36b13f0869734587b16be2add1a6848ba7eb4c10c38",
   "kind": "tokenizer"
  }
 ],
 "encoder": {
  "id": "sentence-transformers/all-MiniLM-L6-v2",
  "revision": null
 },
 "labels": {
  "types": [
   "coi",
   "funding",
   "ethics",
   "data_availability",
   "author_contributions",
   "acknowledgment",
   "supplementary"
  ]
 },
 "input": {
  "layout": "text_pair",
  "add_special_tokens": true,
  "pair": {
   "first": "the previous block's text, first 200 characters (empty for the first block)",
   "second": "the block's text"
  },
  "max_length": 192,
  "truncation": "longest_first",
  "normalization": "NFKC; U+00AD, U+200B, U+FEFF removed; whitespace runs to one space",
  "special_tokens": {
   "pad_token": "[PAD]",
   "pad_token_id": 0
  },
  "tokenizer_file": "onnx/tokenizer.json",
  "window": null,
  "stride": null,
  "template": null,
  "features": null,
  "model_inputs": [
   {
    "name": "input_ids",
    "dtype": "int64",
    "shape": [
     "batch",
     "sequence"
    ]
   },
   {
    "name": "attention_mask",
    "dtype": "int64",
    "shape": [
     "batch",
     "sequence"
    ]
   }
  ],
  "model_outputs": [
   {
    "name": "probs",
    "dtype": "float32",
    "shape": [
     "batch",
     7
    ]
   }
  ]
 },
 "decode": {
  "method": "sigmoid_thresholds",
  "crf": null,
  "calibration": null,
  "when_nothing_found": "no_type",
  "thresholds": {
   "coi": 0.5,
   "funding": 0.4,
   "ethics": 0.825,
   "data_availability": 0.95,
   "author_contributions": 0.55,
   "acknowledgment": 0.925,
   "supplementary": 0.775
  }
 },
 "quantization": {
  "weights": "fp32",
  "note": null
 },
 "provenance": {
  "ledger_key": "statement-tagger",
  "run_record_sha256": "8befc900d89ce0d2db94675e16815847ba008f8985c3217c5349e13e45646f50",
  "platform_commit": "8521e69f6bb540e13e87fa27f785fa518477ed2e",
  "registry_build": "2026-11-10T21:38:59Z#d8d427de3ea7",
  "split_id": "corpus-split-v1@c6fc246571f4"
 },
 "licence": "apache-2.0",
 "compat": {
  "bibr_min_version": null,
  "export_schema": null
 },
 "self_test": {
  "tolerance": {
   "probability_abs": 0.01,
   "logit_abs": 0.05,
   "reason": "onnxruntime builds, CPUs and BLAS kernels give slightly different float results; the largest difference measured between onnxruntime 1.27.0 and 1.31.0 on the eight bundles normalised so far was 8e-05 (stored values are rounded to 5 places), so these limits are about two orders of magnitude looser than the drift seen, and far tighter than any change of a decision; tags and label lists are compared exactly"
  },
  "cases": [
   {
    "name": "three blocks",
    "input": {
     "pairs": [
      [
       "",
       "Funding"
      ],
      [
       "Funding",
       "This work was supported by the Invented Science Fund, grant 000-00."
      ],
      [
       "This work was supported by the Invented Science Fund, grant 000-00.",
       "The authors declare no competing interests."
      ]
     ]
    },
    "expect": {
     "probs": [
      [
       0.00117,
       0.86977,
       0.00012,
       3e-05,
       0.00016,
       0.00222,
       0.00014
      ],
      [
       0.00528,
       0.99652,
       0.0001,
       1e-05,
       4e-05,
       0.00341,
       5e-05
      ],
      [
       0.88738,
       0.04079,
       0.00058,
       0.00022,
       0.00014,
       0.02025,
       0.00062
      ]
     ],
     "types": [
      [
       "funding"
      ],
      [
       "funding"
      ],
      [
       "coi"
      ]
     ]
    }
   }
  ]
 },
 "spec": {
  "join": "each run of consecutive blocks of one type is one statement; its score is the run's highest probability",
  "context_chars": 200,
  "input_rule": "pair:previous_block"
 }
}