-
Notifications
You must be signed in to change notification settings - Fork 1
/
spacy-llm-config.cfg
40 lines (35 loc) · 2.32 KB
/
spacy-llm-config.cfg
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
[nlp]
lang = "en"
pipeline = ["llm"]
[components]
[components.llm]
factory = "llm"
[components.llm.task]
@llm_tasks = "spacy.NER.v2"
labels = ["DRUG", "SALT", "ROUTE", "FORMULATION", "MECHANISM", "ACTION", "SEVERITY", "INDICATION", "BASECONDITION", "ANATOMY", "CAUSED_BY", "SYMPTOM", "TARGET_GROUP", "CO_MORBIDITY", "CO_PRESCRIPTION", "HISTORY", "TEMPORALITY", "INEFFECTIVE", "EFFECT", "SIDEEFFECT", "CONTRAINDICATION", "MEDICAL_CTX"]
[components.llm.task.label_definitions]
DRUG = "The drug name or the active ingredient."
SALT = "The salt form of the drug."
ROUTE = "The route of administration (e.g. oral, intravenous, topical)"
FORMULATION = "The formulation of the drug (e.g. solution, tablet)"
MECHANISM = "The drug mechanism of action (e.g. protein inhibitor)"
ACTION = "The action between the drug and the condition (e.g. treatment of, management of)"
SEVERITY = "The severity of the indicated condition (e.g. mild-to-moderate, severe)"
INDICATION = "The condition that is indicated for the drug (e.g. tremors, pain)"
BASECONDITION = "The base condition is the underlying pathophysiological state in which the indicated condition is a symptom of (e.g. parkinson's, cancer)"
ANATOMY = "The specific anatomical part for which the condition is localized to (e.g. skin)"
CAUSED_BY = "The cause of the condition that is to be treated (e.g. E. coli for an infection)"
SYMPTOM = "Symptoms exhibited by the paitent, but is not the treatable indication."
TARGET_GROUP = "Group of patients or individuals for whom a particular drug is intended or designed to be used."
CO_MORBIDITY = "Other conditions that may be present as part of the target group."
CO_PRESCRIPTION = "Other medications that may be in use by the target group."
HISTORY = "Statements relating to the medical history of the target group."
TEMPORALITY = "Statements relating to the temporality of the treatment."
INEFFECTIVE = "The sentence that specifies on what case the the drug is ineffective."
EFFECT = "Intended beneficial effects of the treatment."
SIDEEFFECT = "Negative side effects of the treatment."
CONTRAINDICATION = "The sentence that specifies a contraindication, or where the drug should not or must not be be used."
MEDICAL_CTX = "Statements that discuss the medical context beyond those mentioned above"
[components.llm.model]
@llm_models = "spacy.GPT-3-5.v1"
config = {"temperature": 0.3}