Diff of /constants/constants.py [000000] .. [5e0db2]

Switch to unified view

a b/constants/constants.py
1
from pathlib import Path
2
3
# Paths
4
HOME_DIR = Path.home()
5
PARSING_MODEL_DIR = HOME_DIR / ".local/share/bllipparser/GENIA+PubMed"
6
7
# Observation constants
8
CARDIOMEGALY = "Cardiomegaly"
9
ENLARGED_CARDIOMEDIASTINUM = "Enlarged Cardiomediastinum"
10
SUPPORT_DEVICES = "Support Devices"
11
NO_FINDING = "No Finding"
12
OBSERVATION = "observation"
13
CATEGORIES = ["No Finding", "Enlarged Cardiomediastinum", "Cardiomegaly",
14
              "Lung Lesion", "Lung Opacity", "Edema", "Consolidation",
15
              "Pneumonia", "Atelectasis", "Pneumothorax", "Pleural Effusion",
16
              "Pleural Other", "Fracture", "Support Devices"]
17
18
# Numeric constants
19
POSITIVE = 1
20
NEGATIVE = 0
21
UNCERTAIN = -1
22
23
# Misc. constants
24
UNCERTAINTY = "uncertainty"
25
NEGATION = "negation"
26
REPORTS = "Reports"