sahithkumar7 commited on
Commit
fbe478e
·
verified ·
1 Parent(s): 44595be

Add new SentenceTransformer model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,630 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:100
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: microsoft/mpnet-base
10
+ widget:
11
+ - source_sentence: How many different active substances were detected in surface water
12
+ across all catchment areas?
13
+ sentences:
14
+ - 'metabolites were not detected in the water bodies.
15
+
16
+ 2.1.1. Antibiotics/Enzyme-Inhibitors and
17
+
18
+ Abacavir in Surface-Water
19
+
20
+ Fifty detections were found in all catchment areas in surface water, which corresponds
21
+ to 15 different active substances:
22
+
23
+ 12 antibiotics, two enzyme inhibitors, and one antiviral. The number of detections
24
+ per sampling station ranged from 0 to 7
25
+
26
+ different active substances. The Ave river-Prazins (Santo Tirso) and Serzedelo
27
+ I and II (Guimar ã es) as well as Ria
28
+
29
+ Formosa-coastal water (Faro and Olh ã o), each one with two sampling sites, showed
30
+ the most detected compounds in'
31
+ - '2. Results
32
+
33
+ 2.1. Frequency of Detections:
34
+
35
+ Antibiotics/Enzyme-Inhibitors and Abacavir
36
+
37
+ in Surface-Groundwater
38
+
39
+ During the screening framework beyond the antibiotics/enzyme-inhibitors, the antiviral
40
+ abacavir was detected. Therefore,
41
+
42
+ given the relevance of this compound, it was included in the present study. Although
43
+ enzyme inhibitors belong to the
44
+
45
+ antibiotic group, their specific pharmacological properties and detection were
46
+ sorted apart. In the present study, antibiotic
47
+
48
+ metabolites were not detected in the water bodies.
49
+
50
+ 2.1.1. Antibiotics/Enzyme-Inhibitors and
51
+
52
+ Abacavir in Surface-Water'
53
+ - 'surface water. The relatively higher detection of substances downstream of the
54
+ effluent discharge points compared with a
55
+
56
+ low detection in upstream samples could be attributed to the low efficiency in
57
+ urban wastewater treatment plants or
58
+
59
+ agricultural pressure. The environmental impact is more critical due to active
60
+ substances in drinking water or premix
61
+
62
+ medicated feeds in the veterinary site.
63
+
64
+ Furthermore, the detection of substances of exclusive human use (abacavir, tazobactam
65
+ and cilastatin) prove the weak'
66
+ - source_sentence: What group of pharmaceuticals was sulfamethazine matched to when
67
+ its quantity was missing?
68
+ sentences:
69
+ - 'ciprofloxacin
70
+
71
+ 43%
72
+
73
+ (3/7), enrofloxacin, norfloxacin, trimethoprim, lincomycin (29% (2/7), abacavir
74
+ and tetracycline
75
+
76
+ 14% (1/7). The enzyme inhibitors, namely clavulanic acid and cilastatin, were
77
+ detected once in an urban region located
78
+
79
+ well. This catchment point showed the most significant
80
+
81
+ number of pharmaceuticals. West/Tejo and Centre were the regions with the most
82
+ considerable number of substances in
83
+
84
+ groundwater, accounting for 43%. All groundwater
85
+
86
+ samples were contaminated by at least one antibiotic. Supplemental Tables S2 and
87
+ S4 contain a detailed description of
88
+
89
+ the'
90
+ - 'clarithromycin) were the only ones that demonstrated the potential to concentrate
91
+ in living organisms (log Kow ≥ 3) [14].
92
+
93
+ All the remaining antibiotics showed a relatively low log Kow and were expected
94
+ to be present mainly in surface water.
95
+
96
+ However, the soil mobility/adsorption detected The detected pharmaceuticals showed
97
+ high to moderate water solubility
98
+
99
+ and are small ionisable molecules (MW ≤ 900 g/mol). Regarding the octanol/water
100
+ partitioning coefficient (log Kow) data,'
101
+ - 'missing quantity for sulfamethazine, the sulfonamides group has been matched.
102
+
103
+ Consumption (Kg) of the detected pharmaceuticals in Portugal (2017).
104
+
105
+ 1 Amount from ESVAC Report-2017; 2 Match the sulfonamides amount; NA-not available.
106
+
107
+ Amount of detected pharmaceuticals consumption per Portuguese region. Amount of
108
+ detected pharmaceuticals
109
+
110
+ consumption per Portuguese region.'
111
+ - source_sentence: What directive sets environmental quality standards for substances
112
+ in surface waters?
113
+ sentences:
114
+ - 'As much as the specificities of each member state should be considered this issue
115
+ has become one of the European
116
+
117
+ community''s main concerns [8].
118
+
119
+ The strategies against water pollution are provided in the Water Framework Directive
120
+ [9] and the Directive on
121
+
122
+ Environmental Quality Standards that set environmental quality standards (EQS)
123
+ for the substances in surface waters
124
+
125
+ and confirm their designation as priority or priority hazardous substances [10].
126
+ Evidence of potential impacts and'
127
+ - 'seems to undertake a similar fate in the environment.
128
+
129
+ Nevertheless, due to stronger adsorption, with higher emergence in sediment, its
130
+ occurrence in the surface water is lower
131
+
132
+ [71]. The use of tetracyclines, mainly as medicated premix and oral solution for
133
+ food-producing animals [72], and the very
134
+
135
+ low bioavailability (e.g. in pig feed) [43] contribute to increasing its release
136
+ into the environment. Regarding macrolides,
137
+
138
+ erythromycin and clarithromycin exhibit a remarkable frequency of detection in
139
+ surface water samples. The most'
140
+ - 'low flows; otherwise, POCIS might be damage. In ground-waters was used one POCIS
141
+ unit/well. Due to the high sorption
142
+
143
+ capacity, POCIS was deployed approximately for 30 days, allowing the polar organic
144
+ compounds adsorbed to be in the
145
+
146
+ equilibrium stage with the active substances in an aqueous medium. In the laboratory,
147
+ POCIS disks were frozen until
148
+
149
+ extraction.
150
+
151
+ 4.2.2. Qualitative Analysis Method Used
152
+
153
+ for the Characterisation of Antibiotics in
154
+
155
+ Surface-Groundwater'
156
+ - source_sentence: What is the molecular weight range of the detected pharmaceuticals?
157
+ sentences:
158
+ - '2.3. Physicochemical Properties and Key Pharmacokinetic Features of Detected
159
+ Pharmaceuticals 2.3. Physicochemical
160
+
161
+ Properties and Key Pharmacokinetic Features of Detected Pharmaceuticals
162
+
163
+ The detected pharmaceuticals showed high to moderate water solubility and are
164
+ small ionisable molecules (MW ≤ 900
165
+
166
+ g/mol). Regarding the octanol/water partitioning coefficient (log Kow) data, macrolide
167
+ antibiotics (azithromycin and
168
+
169
+ clarithromycin) were the only ones that demonstrated the potential to concentrate
170
+ in living organisms (log Kow ≥ 3) [14].'
171
+ - 'As much as the specificities of each member state should be considered this issue
172
+ has become one of the European
173
+
174
+ community''s main concerns [8].
175
+
176
+ The strategies against water pollution are provided in the Water Framework Directive
177
+ [9] and the Directive on
178
+
179
+ Environmental Quality Standards that set environmental quality standards (EQS)
180
+ for the substances in surface waters
181
+
182
+ and confirm their designation as priority or priority hazardous substances [10].
183
+ Evidence of potential impacts and'
184
+ - 'passive samplers in groundwater considered the well technical features; the depth
185
+ and groundwater level were previously
186
+
187
+ determined since they should be detected at the superficial levels. The passive
188
+ sampler was placed using a water level
189
+
190
+ meter, 2 m below the groundwater level. The sampler always remained immersed in
191
+ water, avoiding extractions and the
192
+
193
+ regional lowering of the water table [104]. For the sampling stations, sites of
194
+ different environmental pressures were
195
+
196
+ considered, specifically urban, agricultural area/animal production, and aquaculture.
197
+ The information regarding the'
198
+ - source_sentence: What was the most frequently identified pharmaceutical in the groundwater
199
+ samples?
200
+ sentences:
201
+ - 'Pharmacokinetic characteristics may represent key features in understanding antibiotics
202
+ occurrence [62]. Most antibiotics
203
+
204
+ are not completely metabolised in humans and animals; thus, a high percentage
205
+ of the active substance (40-90%) is
206
+
207
+ excreted in urine/faeces in the unchanged form. These molecules are discharged
208
+ into water and soil through wastewater,
209
+
210
+ animal manure, and sewage sludge, frequently used as fertilisers to agricultural
211
+ lands. Also, it is expected that the
212
+
213
+ hospital effluent will contribute partly to the pharmaceutical load in the wastewater
214
+ treatment plant influence [63].'
215
+ - 'many domestic and livestock animals. Several formulations of powder for administration
216
+ in drinking water and medicated
217
+
218
+ premix are available for poultry and pigs. The excretion of amoxicillin is predominantly
219
+ renal; more than 80% of the parent
220
+
221
+ drug is recovered unchanged in the urine. While bioavailability of 75 to 80% is
222
+ reported in humans, a low value (~30%)
223
+
224
+ was observed in pigs, calves, foals, and pigeons [26,52]. Maybe this last group
225
+ of animals contribute more sharply to the'
226
+ - 'from one to five compounds. The most frequently identified pharmaceuticals, in
227
+ decreasing order, were ciprofloxacin 43%
228
+
229
+ (3/7), enrofloxacin, norfloxacin, trimethoprim, lincomycin (29% (2/7), abacavir
230
+ and tetracycline 14% (1/7). The enzyme
231
+
232
+ inhibitors, namely clavulanic acid and cilastatin, were detected once in an urban
233
+ region located well. This catchment point
234
+
235
+ showed the most significant number of pharmaceuticals. West/Tejo and Centre were
236
+ the regions with the most
237
+
238
+ considerable number of substances in groundwater, accounting for 43%. All groundwater
239
+ samples were contaminated by'
240
+ pipeline_tag: sentence-similarity
241
+ library_name: sentence-transformers
242
+ metrics:
243
+ - cosine_accuracy
244
+ model-index:
245
+ - name: SentenceTransformer based on microsoft/mpnet-base
246
+ results:
247
+ - task:
248
+ type: triplet
249
+ name: Triplet
250
+ dataset:
251
+ name: antibiotics test
252
+ type: antibiotics_test
253
+ metrics:
254
+ - type: cosine_accuracy
255
+ value: 0.75
256
+ name: Cosine Accuracy
257
+ - task:
258
+ type: triplet
259
+ name: Triplet
260
+ dataset:
261
+ name: mpnet base smartbots/iter1
262
+ type: mpnet-base-smartbots/iter1
263
+ metrics:
264
+ - type: cosine_accuracy
265
+ value: 0.9333333373069763
266
+ name: Cosine Accuracy
267
+ - type: cosine_accuracy
268
+ value: 0.9333333373069763
269
+ name: Cosine Accuracy
270
+ ---
271
+
272
+ # SentenceTransformer based on microsoft/mpnet-base
273
+
274
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) on the json dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
275
+
276
+ ## Model Details
277
+
278
+ ### Model Description
279
+ - **Model Type:** Sentence Transformer
280
+ - **Base model:** [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base) <!-- at revision 6996ce1e91bd2a9c7d7f61daec37463394f73f09 -->
281
+ - **Maximum Sequence Length:** 512 tokens
282
+ - **Output Dimensionality:** 768 dimensions
283
+ - **Similarity Function:** Cosine Similarity
284
+ - **Training Dataset:**
285
+ - json
286
+ <!-- - **Language:** Unknown -->
287
+ <!-- - **License:** Unknown -->
288
+
289
+ ### Model Sources
290
+
291
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
292
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
293
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
294
+
295
+ ### Full Model Architecture
296
+
297
+ ```
298
+ SentenceTransformer(
299
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: MPNetModel
300
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
301
+ )
302
+ ```
303
+
304
+ ## Usage
305
+
306
+ ### Direct Usage (Sentence Transformers)
307
+
308
+ First install the Sentence Transformers library:
309
+
310
+ ```bash
311
+ pip install -U sentence-transformers
312
+ ```
313
+
314
+ Then you can load this model and run inference.
315
+ ```python
316
+ from sentence_transformers import SentenceTransformer
317
+
318
+ # Download from the 🤗 Hub
319
+ model = SentenceTransformer("sahithkumar7/mpnet-base-smartbots-iter01")
320
+ # Run inference
321
+ sentences = [
322
+ 'What was the most frequently identified pharmaceutical in the groundwater samples?',
323
+ 'from one to five compounds. The most frequently identified pharmaceuticals, in decreasing order, were ciprofloxacin 43%\n(3/7), enrofloxacin, norfloxacin, trimethoprim, lincomycin (29% (2/7), abacavir and tetracycline 14% (1/7). The enzyme\ninhibitors, namely clavulanic acid and cilastatin, were detected once in an urban region located well. This catchment point\nshowed the most significant number of pharmaceuticals. West/Tejo and Centre were the regions with the most\nconsiderable number of substances in groundwater, accounting for 43%. All groundwater samples were contaminated by',
324
+ 'Pharmacokinetic characteristics may represent key features in understanding antibiotics occurrence [62]. Most antibiotics\nare not completely metabolised in humans and animals; thus, a high percentage of the active substance (40-90%) is\nexcreted in urine/faeces in the unchanged form. These molecules are discharged into water and soil through wastewater,\nanimal manure, and sewage sludge, frequently used as fertilisers to agricultural lands. Also, it is expected that the\nhospital effluent will contribute partly to the pharmaceutical load in the wastewater treatment plant influence [63].',
325
+ ]
326
+ embeddings = model.encode(sentences)
327
+ print(embeddings.shape)
328
+ # [3, 768]
329
+
330
+ # Get the similarity scores for the embeddings
331
+ similarities = model.similarity(embeddings, embeddings)
332
+ print(similarities.shape)
333
+ # [3, 3]
334
+ ```
335
+
336
+ <!--
337
+ ### Direct Usage (Transformers)
338
+
339
+ <details><summary>Click to see the direct usage in Transformers</summary>
340
+
341
+ </details>
342
+ -->
343
+
344
+ <!--
345
+ ### Downstream Usage (Sentence Transformers)
346
+
347
+ You can finetune this model on your own dataset.
348
+
349
+ <details><summary>Click to expand</summary>
350
+
351
+ </details>
352
+ -->
353
+
354
+ <!--
355
+ ### Out-of-Scope Use
356
+
357
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
358
+ -->
359
+
360
+ ## Evaluation
361
+
362
+ ### Metrics
363
+
364
+ #### Triplet
365
+
366
+ * Datasets: `antibiotics_test`, `mpnet-base-smartbots/iter1` and `mpnet-base-smartbots/iter1`
367
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
368
+
369
+ | Metric | antibiotics_test | mpnet-base-smartbots/iter1 |
370
+ |:--------------------|:-----------------|:---------------------------|
371
+ | **cosine_accuracy** | **0.75** | **0.9333** |
372
+
373
+ <!--
374
+ ## Bias, Risks and Limitations
375
+
376
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
377
+ -->
378
+
379
+ <!--
380
+ ### Recommendations
381
+
382
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
383
+ -->
384
+
385
+ ## Training Details
386
+
387
+ ### Training Dataset
388
+
389
+ #### json
390
+
391
+ * Dataset: json
392
+ * Size: 100 training samples
393
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
394
+ * Approximate statistics based on the first 100 samples:
395
+ | | anchor | positive | negative |
396
+ |:--------|:----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|
397
+ | type | string | string | string |
398
+ | details | <ul><li>min: 9 tokens</li><li>mean: 16.14 tokens</li><li>max: 33 tokens</li></ul> | <ul><li>min: 48 tokens</li><li>mean: 125.65 tokens</li><li>max: 218 tokens</li></ul> | <ul><li>min: 48 tokens</li><li>mean: 122.97 tokens</li><li>max: 211 tokens</li></ul> |
399
+ * Samples:
400
+ | anchor | positive | negative |
401
+ |:-----------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
402
+ | <code>Which two macrolide antibiotics are frequently detected in surface water samples?</code> | <code>seems to undertake a similar fate in the environment.<br>Nevertheless, due to stronger adsorption, with higher emergence in sediment, its occurrence in the surface water is lower<br>[71]. The use of tetracyclines, mainly as medicated premix and oral solution for food-producing animals [72], and the very<br>low bioavailability (e.g. in pig feed) [43] contribute to increasing its release into the environment. Regarding macrolides,<br>erythromycin and clarithromycin exhibit a remarkable frequency of detection in surface water samples. The most</code> | <code>Nonetheless, besides the sorption capacity, these antibiotics have high solubility in water. Crucial routes for these<br>substances into the environment are manure from animal production and sewage sludge from wastewater treatment<br>plant (WWTP) used as fertilisers. Therefore, these substances have been evidenced in topsoil samples [68]. These<br>quinolones and other antibiotics, for instance, norfloxacin and tetracycline, have been identified in groundwater samples<br>despite being influenced by sorption processes. They were not readily degraded; instead, the input into groundwater</code> |
403
+ | <code>What antimicrobial drugs were identified in the survey besides macrolides?</code> | <code>is one of the most frequently pharmaceutical in representative rivers [74,75]. The three macrolides identified in our<br>detection survey are included since 2018 in the first 'watch list' [76].<br>Another group of antimicrobial drugs identified in our survey were sulfamethoxazole/trimethoprim and sulfamethazine.<br>Sulfamethoxazole/trimethoprim are often used combined since the effectiveness of sulfonamides is enhanced. In the<br>present study, the detection of both substances was comparable; however, trimethoprim was detected in groundwater.</code> | <code>upstream samples obtained in rural locations was demonstrated and could be attributed to a low efficiency in the urban<br>wastewater treatment plants or due to agricultural pressure.<br>The higher frequency of detection for most substances was observed in the Ave river and Ria Formosa, confirming that<br>several effluents impact these water bodies from urban wastewater treatment plants and livestock production.<br>Pharmacokinetic characteristics may represent key features in understanding antibiotics occurrence [62]. Most antibiotics</code> |
404
+ | <code>How long was the observational period of the antibiotic survey in Portugal?</code> | <code>of antibiotics and their metabolites in surface- groundwater. It seeks to reflect the current demographic, spatial, drug<br>consumption, and drug profile on an observational period of 3 years in Portugal. The greatest challenge of this survey<br>data will be to promote the ecopharmacovigilance framework development shortly to implement measures for avoiding<br>misuse/overuse of antibiotics and slow down emission and antibiotic resistance.<br>2. Results<br>2.1. Frequency of Detections:<br>Antibiotics/Enzyme-Inhibitors and Abacavir<br>in Surface-Groundwater</code> | <code>despite being influenced by sorption processes. They were not readily degraded; instead, the input into groundwater<br>could be due to livestock farming pressure, namely by spreading manure in the soil or the possible sewage sludge<br>application in the area. High clay and low sand content in soils can decrease the mobility of pharmaceuticals, which is<br>attributed to clay intense exchange capacity. Thus, soil properties (e.g. particle composition) are a significant, influential</code> |
405
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
406
+ ```json
407
+ {
408
+ "scale": 20.0,
409
+ "similarity_fct": "cos_sim"
410
+ }
411
+ ```
412
+
413
+ ### Evaluation Dataset
414
+
415
+ #### json
416
+
417
+ * Dataset: json
418
+ * Size: 100 evaluation samples
419
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
420
+ * Approximate statistics based on the first 100 samples:
421
+ | | anchor | positive | negative |
422
+ |:--------|:----------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
423
+ | type | string | string | string |
424
+ | details | <ul><li>min: 11 tokens</li><li>mean: 16.4 tokens</li><li>max: 25 tokens</li></ul> | <ul><li>min: 76 tokens</li><li>mean: 113.65 tokens</li><li>max: 148 tokens</li></ul> | <ul><li>min: 89 tokens</li><li>mean: 118.8 tokens</li><li>max: 162 tokens</li></ul> |
425
+ * Samples:
426
+ | anchor | positive | negative |
427
+ |:-----------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
428
+ | <code>What percentage of unchanged excretion did the most significant number of detected substances show?</code> | <code>coefficients were not available for lincomycin, clavulanic acid and cilastatin.<br>Physicochemical properties of detected pharmaceuticals.<br>1 Data retrieved from [16]; 2 Data retrieved from [17]; 3 Data retrieved from [18]; 4 Data retrieved from [19]; 5<br>Data retrieved from [20];<br>6 Data retrieved from [21]; 7 Data retrieved from [22]; 8 Data retrieved from [23]; 9 Data retrieved from [24]; 10<br>Data retrieved from [25];<br>NA-not available.<br>The most significant number of detected substances showed a percentage of unchanged excretion higher than 40%.</code> | <code>1. Introduction<br>Antibiotics are a critical component of human and veterinary modern medicine, developed to produce desirable or<br>beneficial effects on infections induced by pathogens. Like most pharmaceuticals, antibiotics tend to be small organic<br>polar compounds, generally ionisable, ordinarily subject to a metabolism or biotransformation process by the organism to<br>be eliminated more efficiently [1,2]. The excretion of these compounds and their metabolites occurs mainly through urine,</code> |
429
+ | <code>How many kilograms of abacavir were detected in Portugal in 2017?</code> | <code>Regarding the different regions, it has been concluded that North and West/Tejo were the regions with the higher<br>consuming values. Both regions presented a significant value (33%) for the abacavir. For the detected antiviral abacavir,<br>an amount of 1458 kg has been observed.<br>Regarding antibiotics used in veterinary medicine, the regional amount was not available. Likewise, due to the reported<br>missing quantity for sulfamethazine, the sulfonamides group has been matched.<br>Consumption (Kg) of the detected pharmaceuticals in Portugal (2017).</code> | <code>43%<br>(3/7), enrofloxacin, norfloxacin, trimethoprim, lincomycin (29% (2/7), abacavir and tetracycline<br>14% (1/7). The enzyme inhibitors, namely clavulanic acid and cilastatin, were detected once in an urban region located<br>well. This catchment point showed the most significant<br>number of pharmaceuticals. West/Tejo and Centre were the regions with the most considerable number of substances in<br>groundwater, accounting for 43%. All groundwater<br>samples were contaminated by at least one antibiotic. Supplemental Tables S2 and S4 contain a detailed description of<br>the</code> |
430
+ | <code>What must marketing authorisation procedures for medicines include since 2006?</code> | <code>substances in passive samplers [7]. Since 2006, marketing authorisation procedures for both human and veterinary<br>medicines must include an environmental risk assessment that comprises a prospective exposure assessment,<br>underestimating the possible impact and the occurrence of antibiotics after years of consumption. Ultimately, the potential<br>risk may not be correctly anticipated. It becomes urgent to generate new data, mainly to refine exposure assessments.<br>As much as the specificities of each member state should be considered this issue has become one of the European</code> | <code>clarithromycin/erythromycin, tetracycline, sulfamethoxazole, and abacavir. In groundwater, enrofloxacin/ciprofloxacin,<br>norfloxacin, trimethoprim, lincomycin, abacavir and tetracycline were recovered. Metabolites were not detected in water<br>bodies. Noticeable was the detection of enzyme inhibitors, tazobactam and cilastatin, which are both for exclusive<br>hospital use. The North region and Algarve (South) were the areas with the most significant frequency of substances in<br>surface water. The relatively higher detection of substances downstream of the effluent discharge points compared with a</code> |
431
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
432
+ ```json
433
+ {
434
+ "scale": 20.0,
435
+ "similarity_fct": "cos_sim"
436
+ }
437
+ ```
438
+
439
+ ### Training Hyperparameters
440
+ #### Non-Default Hyperparameters
441
+
442
+ - `eval_strategy`: steps
443
+ - `per_device_train_batch_size`: 10
444
+ - `per_device_eval_batch_size`: 10
445
+ - `num_train_epochs`: 1
446
+ - `warmup_ratio`: 0.1
447
+ - `fp16`: True
448
+ - `batch_sampler`: no_duplicates
449
+
450
+ #### All Hyperparameters
451
+ <details><summary>Click to expand</summary>
452
+
453
+ - `overwrite_output_dir`: False
454
+ - `do_predict`: False
455
+ - `eval_strategy`: steps
456
+ - `prediction_loss_only`: True
457
+ - `per_device_train_batch_size`: 10
458
+ - `per_device_eval_batch_size`: 10
459
+ - `per_gpu_train_batch_size`: None
460
+ - `per_gpu_eval_batch_size`: None
461
+ - `gradient_accumulation_steps`: 1
462
+ - `eval_accumulation_steps`: None
463
+ - `torch_empty_cache_steps`: None
464
+ - `learning_rate`: 5e-05
465
+ - `weight_decay`: 0.0
466
+ - `adam_beta1`: 0.9
467
+ - `adam_beta2`: 0.999
468
+ - `adam_epsilon`: 1e-08
469
+ - `max_grad_norm`: 1.0
470
+ - `num_train_epochs`: 1
471
+ - `max_steps`: -1
472
+ - `lr_scheduler_type`: linear
473
+ - `lr_scheduler_kwargs`: {}
474
+ - `warmup_ratio`: 0.1
475
+ - `warmup_steps`: 0
476
+ - `log_level`: passive
477
+ - `log_level_replica`: warning
478
+ - `log_on_each_node`: True
479
+ - `logging_nan_inf_filter`: True
480
+ - `save_safetensors`: True
481
+ - `save_on_each_node`: False
482
+ - `save_only_model`: False
483
+ - `restore_callback_states_from_checkpoint`: False
484
+ - `no_cuda`: False
485
+ - `use_cpu`: False
486
+ - `use_mps_device`: False
487
+ - `seed`: 42
488
+ - `data_seed`: None
489
+ - `jit_mode_eval`: False
490
+ - `use_ipex`: False
491
+ - `bf16`: False
492
+ - `fp16`: True
493
+ - `fp16_opt_level`: O1
494
+ - `half_precision_backend`: auto
495
+ - `bf16_full_eval`: False
496
+ - `fp16_full_eval`: False
497
+ - `tf32`: None
498
+ - `local_rank`: 0
499
+ - `ddp_backend`: None
500
+ - `tpu_num_cores`: None
501
+ - `tpu_metrics_debug`: False
502
+ - `debug`: []
503
+ - `dataloader_drop_last`: False
504
+ - `dataloader_num_workers`: 0
505
+ - `dataloader_prefetch_factor`: None
506
+ - `past_index`: -1
507
+ - `disable_tqdm`: False
508
+ - `remove_unused_columns`: True
509
+ - `label_names`: None
510
+ - `load_best_model_at_end`: False
511
+ - `ignore_data_skip`: False
512
+ - `fsdp`: []
513
+ - `fsdp_min_num_params`: 0
514
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
515
+ - `tp_size`: 0
516
+ - `fsdp_transformer_layer_cls_to_wrap`: None
517
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
518
+ - `deepspeed`: None
519
+ - `label_smoothing_factor`: 0.0
520
+ - `optim`: adamw_torch
521
+ - `optim_args`: None
522
+ - `adafactor`: False
523
+ - `group_by_length`: False
524
+ - `length_column_name`: length
525
+ - `ddp_find_unused_parameters`: None
526
+ - `ddp_bucket_cap_mb`: None
527
+ - `ddp_broadcast_buffers`: False
528
+ - `dataloader_pin_memory`: True
529
+ - `dataloader_persistent_workers`: False
530
+ - `skip_memory_metrics`: True
531
+ - `use_legacy_prediction_loop`: False
532
+ - `push_to_hub`: False
533
+ - `resume_from_checkpoint`: None
534
+ - `hub_model_id`: None
535
+ - `hub_strategy`: every_save
536
+ - `hub_private_repo`: None
537
+ - `hub_always_push`: False
538
+ - `gradient_checkpointing`: False
539
+ - `gradient_checkpointing_kwargs`: None
540
+ - `include_inputs_for_metrics`: False
541
+ - `include_for_metrics`: []
542
+ - `eval_do_concat_batches`: True
543
+ - `fp16_backend`: auto
544
+ - `push_to_hub_model_id`: None
545
+ - `push_to_hub_organization`: None
546
+ - `mp_parameters`:
547
+ - `auto_find_batch_size`: False
548
+ - `full_determinism`: False
549
+ - `torchdynamo`: None
550
+ - `ray_scope`: last
551
+ - `ddp_timeout`: 1800
552
+ - `torch_compile`: False
553
+ - `torch_compile_backend`: None
554
+ - `torch_compile_mode`: None
555
+ - `include_tokens_per_second`: False
556
+ - `include_num_input_tokens_seen`: False
557
+ - `neftune_noise_alpha`: None
558
+ - `optim_target_modules`: None
559
+ - `batch_eval_metrics`: False
560
+ - `eval_on_start`: False
561
+ - `use_liger_kernel`: False
562
+ - `eval_use_gather_object`: False
563
+ - `average_tokens_across_devices`: False
564
+ - `prompts`: None
565
+ - `batch_sampler`: no_duplicates
566
+ - `multi_dataset_batch_sampler`: proportional
567
+
568
+ </details>
569
+
570
+ ### Training Logs
571
+ | Epoch | Step | antibiotics_test_cosine_accuracy | mpnet-base-smartbots/iter1_cosine_accuracy |
572
+ |:-----:|:----:|:--------------------------------:|:------------------------------------------:|
573
+ | -1 | -1 | 0.75 | 0.9333 |
574
+
575
+
576
+ ### Framework Versions
577
+ - Python: 3.11.11
578
+ - Sentence Transformers: 3.4.1
579
+ - Transformers: 4.51.3
580
+ - PyTorch: 2.6.0+cu124
581
+ - Accelerate: 1.5.2
582
+ - Datasets: 3.6.0
583
+ - Tokenizers: 0.21.1
584
+
585
+ ## Citation
586
+
587
+ ### BibTeX
588
+
589
+ #### Sentence Transformers
590
+ ```bibtex
591
+ @inproceedings{reimers-2019-sentence-bert,
592
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
593
+ author = "Reimers, Nils and Gurevych, Iryna",
594
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
595
+ month = "11",
596
+ year = "2019",
597
+ publisher = "Association for Computational Linguistics",
598
+ url = "https://arxiv.org/abs/1908.10084",
599
+ }
600
+ ```
601
+
602
+ #### MultipleNegativesRankingLoss
603
+ ```bibtex
604
+ @misc{henderson2017efficient,
605
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
606
+ author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
607
+ year={2017},
608
+ eprint={1705.00652},
609
+ archivePrefix={arXiv},
610
+ primaryClass={cs.CL}
611
+ }
612
+ ```
613
+
614
+ <!--
615
+ ## Glossary
616
+
617
+ *Clearly define terms in order to be accessible across audiences.*
618
+ -->
619
+
620
+ <!--
621
+ ## Model Card Authors
622
+
623
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
624
+ -->
625
+
626
+ <!--
627
+ ## Model Card Contact
628
+
629
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
630
+ -->
config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MPNetModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 0,
7
+ "eos_token_id": 2,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-05,
14
+ "max_position_embeddings": 514,
15
+ "model_type": "mpnet",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 12,
18
+ "pad_token_id": 1,
19
+ "relative_attention_num_buckets": 32,
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.51.3",
22
+ "vocab_size": 30527
23
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.4.1",
4
+ "transformers": "4.51.3",
5
+ "pytorch": "2.6.0+cu124"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8132d3216951b05e0293e0c1c51f6cdf33b0a1c8fa0af839f30d0943ec721b7a
3
+ size 437967672
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "[UNK]",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "104": {
36
+ "content": "[UNK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "30526": {
44
+ "content": "<mask>",
45
+ "lstrip": true,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ }
51
+ },
52
+ "bos_token": "<s>",
53
+ "clean_up_tokenization_spaces": false,
54
+ "cls_token": "<s>",
55
+ "do_lower_case": true,
56
+ "eos_token": "</s>",
57
+ "extra_special_tokens": {},
58
+ "mask_token": "<mask>",
59
+ "model_max_length": 512,
60
+ "pad_token": "<pad>",
61
+ "sep_token": "</s>",
62
+ "strip_accents": null,
63
+ "tokenize_chinese_chars": true,
64
+ "tokenizer_class": "MPNetTokenizer",
65
+ "unk_token": "[UNK]"
66
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff