Views
No views yet
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'PeftModelForFeatureExtraction'})
(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})
)pip install -U sentence-transformers1from sentence_transformers import SentenceTransformer
2
3# Download from the 🤗 Hub
4model = SentenceTransformer("sahithkumar7/mpnet-base-smartbots-iter02")
5# Run inference
6sentences = [
7 'What was the most frequently identified pharmaceutical in the groundwater samples?',
8 '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',
9 '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].',
10]
11embeddings = model.encode(sentences)
12print(embeddings.shape)
13# [3, 768]
14
15# Get the similarity scores for the embeddings
16similarities = model.similarity(embeddings, embeddings)
17print(similarities)
18# tensor([[1.0000, 0.9314, 0.9381],
19# [0.9314, 1.0000, 0.9591],
20# [0.9381, 0.9591, 1.0000]])antibiotics_test and mpnet-base-smartbots/iter2TripletEvaluator| Metric | antibiotics_test | mpnet-base-smartbots/iter2 |
|---|---|---|
| cosine_accuracy | 0.75 | 0.8 |
anchor, positive, and negative| anchor | positive | negative | |
|---|---|---|---|
| type | string | string | string |
| details |
|
|
|
| anchor | positive | negative |
|---|---|---|
Which two macrolide antibiotics are frequently detected in surface water samples? | seems to undertake a similar fate in the environment.[object Object]Nevertheless, due to stronger adsorption, with higher emergence in sediment, its occurrence in the surface water is lower[object Object][71]. The use of tetracyclines, mainly as medicated premix and oral solution for food-producing animals [72], and the very[object Object]low bioavailability (e.g. in pig feed) [43] contribute to increasing its release into the environment. Regarding macrolides,[object Object]erythromycin and clarithromycin exhibit a remarkable frequency of detection in surface water samples. The most | Nonetheless, besides the sorption capacity, these antibiotics have high solubility in water. Crucial routes for these[object Object]substances into the environment are manure from animal production and sewage sludge from wastewater treatment[object Object]plant (WWTP) used as fertilisers. Therefore, these substances have been evidenced in topsoil samples [68]. These[object Object]quinolones and other antibiotics, for instance, norfloxacin and tetracycline, have been identified in groundwater samples[object Object]despite being influenced by sorption processes. They were not readily degraded; instead, the input into groundwater |
What antimicrobial drugs were identified in the survey besides macrolides? | is one of the most frequently pharmaceutical in representative rivers [74,75]. The three macrolides identified in our[object Object]detection survey are included since 2018 in the first 'watch list' [76].[object Object]Another group of antimicrobial drugs identified in our survey were sulfamethoxazole/trimethoprim and sulfamethazine.[object Object]Sulfamethoxazole/trimethoprim are often used combined since the effectiveness of sulfonamides is enhanced. In the[object Object]present study, the detection of both substances was comparable; however, trimethoprim was detected in groundwater. | upstream samples obtained in rural locations was demonstrated and could be attributed to a low efficiency in the urban[object Object]wastewater treatment plants or due to agricultural pressure.[object Object]The higher frequency of detection for most substances was observed in the Ave river and Ria Formosa, confirming that[object Object]several effluents impact these water bodies from urban wastewater treatment plants and livestock production.[object Object]Pharmacokinetic characteristics may represent key features in understanding antibiotics occurrence [62]. Most antibiotics |
How long was the observational period of the antibiotic survey in Portugal? | of antibiotics and their metabolites in surface- groundwater. It seeks to reflect the current demographic, spatial, drug[object Object]consumption, and drug profile on an observational period of 3 years in Portugal. The greatest challenge of this survey[object Object]data will be to promote the ecopharmacovigilance framework development shortly to implement measures for avoiding[object Object]misuse/overuse of antibiotics and slow down emission and antibiotic resistance.[object Object]2. Results[object Object]2.1. Frequency of Detections:[object Object]Antibiotics/Enzyme-Inhibitors and Abacavir[object Object]in Surface-Groundwater | despite being influenced by sorption processes. They were not readily degraded; instead, the input into groundwater[object Object]could be due to livestock farming pressure, namely by spreading manure in the soil or the possible sewage sludge[object Object]application in the area. High clay and low sand content in soils can decrease the mobility of pharmaceuticals, which is[object Object]attributed to clay intense exchange capacity. Thus, soil properties (e.g. particle composition) are a significant, influential |
MultipleNegativesRankingLoss with these parameters:
1{
2 "scale": 20.0,
3 "similarity_fct": "cos_sim"
4}anchor, positive, and negative| anchor | positive | negative | |
|---|---|---|---|
| type | string | string | string |
| details |
|
|
|
| anchor | positive | negative |
|---|---|---|
What percentage of unchanged excretion did the most significant number of detected substances show? | coefficients were not available for lincomycin, clavulanic acid and cilastatin.[object Object]Physicochemical properties of detected pharmaceuticals.[object Object]1 Data retrieved from [16]; 2 Data retrieved from [17]; 3 Data retrieved from [18]; 4 Data retrieved from [19]; 5[object Object]Data retrieved from [20];[object Object]6 Data retrieved from [21]; 7 Data retrieved from [22]; 8 Data retrieved from [23]; 9 Data retrieved from [24]; 10[object Object]Data retrieved from [25];[object Object]NA-not available.[object Object]The most significant number of detected substances showed a percentage of unchanged excretion higher than 40%. | 1. Introduction[object Object]Antibiotics are a critical component of human and veterinary modern medicine, developed to produce desirable or[object Object]beneficial effects on infections induced by pathogens. Like most pharmaceuticals, antibiotics tend to be small organic[object Object]polar compounds, generally ionisable, ordinarily subject to a metabolism or biotransformation process by the organism to[object Object]be eliminated more efficiently [1,2]. The excretion of these compounds and their metabolites occurs mainly through urine, |
How many kilograms of abacavir were detected in Portugal in 2017? | Regarding the different regions, it has been concluded that North and West/Tejo were the regions with the higher[object Object]consuming values. Both regions presented a significant value (33%) for the abacavir. For the detected antiviral abacavir,[object Object]an amount of 1458 kg has been observed.[object Object]Regarding antibiotics used in veterinary medicine, the regional amount was not available. Likewise, due to the reported[object Object]missing quantity for sulfamethazine, the sulfonamides group has been matched.[object Object]Consumption (Kg) of the detected pharmaceuticals in Portugal (2017). | 43%[object Object](3/7), enrofloxacin, norfloxacin, trimethoprim, lincomycin (29% (2/7), abacavir and tetracycline[object Object]14% (1/7). The enzyme inhibitors, namely clavulanic acid and cilastatin, were detected once in an urban region located[object Object]well. This catchment point showed the most significant[object Object]number of pharmaceuticals. West/Tejo and Centre were the regions with the most considerable number of substances in[object Object]groundwater, accounting for 43%. All groundwater[object Object]samples were contaminated by at least one antibiotic. Supplemental Tables S2 and S4 contain a detailed description of[object Object]the |
What must marketing authorisation procedures for medicines include since 2006? | substances in passive samplers [7]. Since 2006, marketing authorisation procedures for both human and veterinary[object Object]medicines must include an environmental risk assessment that comprises a prospective exposure assessment,[object Object]underestimating the possible impact and the occurrence of antibiotics after years of consumption. Ultimately, the potential[object Object]risk may not be correctly anticipated. It becomes urgent to generate new data, mainly to refine exposure assessments.[object Object]As much as the specificities of each member state should be considered this issue has become one of the European | clarithromycin/erythromycin, tetracycline, sulfamethoxazole, and abacavir. In groundwater, enrofloxacin/ciprofloxacin,[object Object]norfloxacin, trimethoprim, lincomycin, abacavir and tetracycline were recovered. Metabolites were not detected in water[object Object]bodies. Noticeable was the detection of enzyme inhibitors, tazobactam and cilastatin, which are both for exclusive[object Object]hospital use. The North region and Algarve (South) were the areas with the most significant frequency of substances in[object Object]surface water. The relatively higher detection of substances downstream of the effluent discharge points compared with a |
MultipleNegativesRankingLoss with these parameters:
1{
2 "scale": 20.0,
3 "similarity_fct": "cos_sim"
4}eval_strategy: stepsper_device_train_batch_size: 10per_device_eval_batch_size: 10num_train_epochs: 1warmup_ratio: 0.1fp16: Truebatch_sampler: no_duplicatesoverwrite_output_dir: Falsedo_predict: Falseeval_strategy: stepsprediction_loss_only: Trueper_device_train_batch_size: 10per_device_eval_batch_size: 10per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 5e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 1max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: {}warmup_ratio: 0.1warmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Truesave_safetensors: Truesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseno_cuda: Falseuse_cpu: Falseuse_mps_device: Falseseed: 42data_seed: Nonejit_mode_eval: Falseuse_ipex: Falsebf16: Falsefp16: Truefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: 0ddp_backend: Nonetpu_num_cores: Nonetpu_metrics_debug: Falsedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonepast_index: -1disable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_min_num_params: 0fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}tp_size: 0fsdp_transformer_layer_cls_to_wrap: Noneaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}deepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torchoptim_args: Noneadafactor: Falsegroup_by_length: Falselength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Trueuse_legacy_prediction_loop: Falsepush_to_hub: Falseresume_from_checkpoint: Nonehub_model_id: Nonehub_strategy: every_savehub_private_repo: Nonehub_always_push: Falsegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_inputs_for_metrics: Falseinclude_for_metrics: []eval_do_concat_batches: Truefp16_backend: autopush_to_hub_model_id: Nonepush_to_hub_organization: Nonemp_parameters:auto_find_batch_size: Falsefull_determinism: Falsetorchdynamo: Noneray_scope: lastddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: Falseneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseeval_use_gather_object: Falseaverage_tokens_across_devices: Falseprompts: Nonebatch_sampler: no_duplicatesmulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}| Epoch | Step | antibiotics_test_cosine_accuracy | mpnet-base-smartbots/iter2_cosine_accuracy |
|---|---|---|---|
| -1 | -1 | 0.75 | 0.8000 |
1@inproceedings{reimers-2019-sentence-bert,
2 title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
3 author = "Reimers, Nils and Gurevych, Iryna",
4 booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
5 month = "11",
6 year = "2019",
7 publisher = "Association for Computational Linguistics",
8 url = "https://arxiv.org/abs/1908.10084",
9}1@misc{henderson2017efficient,
2 title={Efficient Natural Language Response Suggestion for Smart Reply},
3 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},
4 year={2017},
5 eprint={1705.00652},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL}
8}