from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
'e medication administration date. This parameter corresponds to the dosageInstruction.timing.repeat.boundsPeriod element\nMedication orders that do not have start and end dates within the search parameter dates are filtered. If the environment supports multiple time zones, the search dates are adjusted one day in both directions, so more medications might be returned than expected. Use caution when filtering a medication list by date as it is possible to filter out important active medications. Starting in the November 2022 version of Epic, this parameter is respected',
'e medication administration date. This parameter corresponds to the dosageInstruction.timing.repeat.boundsPeriod element\nMedication orders that do not have start and end dates within the search parameter dates are filtered. If the environment supports multiple time zones, the search dates are adjusted one day in both directions, so more medications might be returned than expected. Use caution when filtering a medication list by date as it is possible to filter out important active medications. Starting in the November 2022 version of Epic, this parameter is respected',
'e": {"properties": {"text": {"description": "The flowsheet ID, encoded flowsheet ID, or LOINC codes to flowsheet mapping\nWhat is being measured.", "type": "string"}}, "type": "object"}, "effectiveDateTime": {"description": "The date and time the observation was taken, in ISO format.", "type": "string"}, "resourceType": {"description": "Use \\"Observation\\" for vitals observations.", "type": "string"}, "status": {"description": "The status of the observation. Only a value of \\"final\\" is supported',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 1.0000, 0.3683],# [1.0000, 1.0000, 0.3683],# [0.3683, 0.3683, 1.0000]])
Training Details
Training Dataset
umsb-episodic-memory
Dataset: umsb-episodic-memory
Size: 3,067 training samples
Columns:
anchor
and
positive
Approximate statistics based on the first 1000 samples:
anchor
positive
type
string
string
details
min: 33 tokens
mean: 221.24 tokens
max: 384 tokens
min: 33 tokens
mean: 221.24 tokens
max: 384 tokens
Samples:
anchor
positive
description": "The patient's family (last) name.", "type": "string"}, "gender": {"description": "The patient's legal sex
Starting in the August 2021 version of Epic, the legal-sex parameter is preferred.", "type": "string"}, "given": {"description": "The patient's given name. May include first and middle names.", "type": "string"}, "identifier": {"description": "The patient's identifier.", "type": "string"}, "legal-sex": {"description": "The patient\u2019s legal sex. Takes precedence over the gender search parameter. Available starting in the August 2021 version of Epic.", "type": "string"}, "name": {"description": "Any part of the patient's name. When discrete name parameters are used, such as family or given, this parameter is ignored.", "type": "string"}, "telecom": {"description": "The patient's phone number or email.", "type": "string"}}, "required": [], "type": "object"}}]
description": "The patient's family (last) name.", "type": "string"}, "gender": {"description": "The patient's legal sex
Starting in the August 2021 version of Epic, the legal-sex parameter is preferred.", "type": "string"}, "given": {"description": "The patient's given name. May include first and middle names.", "type": "string"}, "identifier": {"description": "The patient's identifier.", "type": "string"}, "legal-sex": {"description": "The patient\u2019s legal sex. Takes precedence over the gender search parameter. Available starting in the August 2021 version of Epic.", "type": "string"}, "name": {"description": "Any part of the patient's name. When discrete name parameters are used, such as family or given, this parameter is ignored.", "type": "string"}, "telecom": {"description": "The patient's phone number or email.", "type": "string"}}, "required": [], "type": "object"}}]
e to filter out important active medications. Starting in the November 2022 version of Epic, this parameter is respected
In May 2022 and earlier versions of Epic, this parameter is allowed but is ignored and no date filtering is applied.", "type": "string"}, "patient": {"description": "The FHIR patient ID.", "type": "string"}}, "required": ["patient"], "type": "object"}}, {"description": "MedicationRequest.Create", "name": "POST {api_base}/MedicationRequest", "parameters": {"properties": {"authoredOn": {"description": "The date the prescription was written.", "type": "string"}, "dosageInstruction": {"items": {"properties": {"doseAndRate": {"items": {"properties": {"doseQuantity": {"properties": {"unit": {"description": "unit for the dose such as "g" ", "type": "string"}, "value": {"type": "number"}}, "type": "object"}, "rateQuantity": {"properties": {"unit": {"description": "unit for the rate such as "h" ", "type": "string"}, "value": {"type": "number"}}, "type": "object"}}, "type"...
e to filter out important active medications. Starting in the November 2022 version of Epic, this parameter is respected
In May 2022 and earlier versions of Epic, this parameter is allowed but is ignored and no date filtering is applied.", "type": "string"}, "patient": {"description": "The FHIR patient ID.", "type": "string"}}, "required": ["patient"], "type": "object"}}, {"description": "MedicationRequest.Create", "name": "POST {api_base}/MedicationRequest", "parameters": {"properties": {"authoredOn": {"description": "The date the prescription was written.", "type": "string"}, "dosageInstruction": {"items": {"properties": {"doseAndRate": {"items": {"properties": {"doseQuantity": {"properties": {"unit": {"description": "unit for the dose such as "g" ", "type": "string"}, "value": {"type": "number"}}, "type": "object"}, "rateQuantity": {"properties": {"unit": {"description": "unit for the rate such as "h" ", "type": "string"}, "value": {"type": "number"}}, "type": "object"}}, "type"...
e": {"properties": {"text": {"description": "The flowsheet ID, encoded flowsheet ID, or LOINC codes to flowsheet mapping
What is being measured.", "type": "string"}}, "type": "object"}, "effectiveDateTime": {"description": "The date and time the observation was taken, in ISO format.", "type": "string"}, "resourceType": {"description": "Use "Observation" for vitals observations.", "type": "string"}, "status": {"description": "The status of the observation. Only a value of "final" is supported
e": {"properties": {"text": {"description": "The flowsheet ID, encoded flowsheet ID, or LOINC codes to flowsheet mapping
What is being measured.", "type": "string"}}, "type": "object"}, "effectiveDateTime": {"description": "The date and time the observation was taken, in ISO format.", "type": "string"}, "resourceType": {"description": "Use "Observation" for vitals observations.", "type": "string"}, "status": {"description": "The status of the observation. Only a value of "final" is supported
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
MultipleNegativesRankingLoss
@misc{oord2019representationlearningcontrastivepredictive,
title={Representation Learning with Contrastive Predictive Coding},
author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
year={2019},
eprint={1807.03748},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1807.03748},
}
Runs of bdanko umsb-mpnet-episodic-memory on huggingface.co
71
Total runs
-18
24-hour runs
-20
3-day runs
-7
7-day runs
0
30-day runs
More Information About umsb-mpnet-episodic-memory huggingface.co Model
umsb-mpnet-episodic-memory huggingface.co
umsb-mpnet-episodic-memory huggingface.co is an AI model on huggingface.co that provides umsb-mpnet-episodic-memory's model effect (), which can be used instantly with this bdanko umsb-mpnet-episodic-memory model. huggingface.co supports a free trial of the umsb-mpnet-episodic-memory model, and also provides paid use of the umsb-mpnet-episodic-memory. Support call umsb-mpnet-episodic-memory model through api, including Node.js, Python, http.
umsb-mpnet-episodic-memory huggingface.co is an online trial and call api platform, which integrates umsb-mpnet-episodic-memory's modeling effects, including api services, and provides a free online trial of umsb-mpnet-episodic-memory, you can try umsb-mpnet-episodic-memory online for free by clicking the link below.
bdanko umsb-mpnet-episodic-memory online free url in huggingface.co:
umsb-mpnet-episodic-memory is an open source model from GitHub that offers a free installation service, and any user can find umsb-mpnet-episodic-memory on GitHub to install. At the same time, huggingface.co provides the effect of umsb-mpnet-episodic-memory install, users can directly use umsb-mpnet-episodic-memory installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
umsb-mpnet-episodic-memory install url in huggingface.co: