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

Switch to side-by-side view

--- a
+++ b/constants/constants.py
@@ -0,0 +1,26 @@
+from pathlib import Path
+
+# Paths
+HOME_DIR = Path.home()
+PARSING_MODEL_DIR = HOME_DIR / ".local/share/bllipparser/GENIA+PubMed"
+
+# Observation constants
+CARDIOMEGALY = "Cardiomegaly"
+ENLARGED_CARDIOMEDIASTINUM = "Enlarged Cardiomediastinum"
+SUPPORT_DEVICES = "Support Devices"
+NO_FINDING = "No Finding"
+OBSERVATION = "observation"
+CATEGORIES = ["No Finding", "Enlarged Cardiomediastinum", "Cardiomegaly",
+              "Lung Lesion", "Lung Opacity", "Edema", "Consolidation",
+              "Pneumonia", "Atelectasis", "Pneumothorax", "Pleural Effusion",
+              "Pleural Other", "Fracture", "Support Devices"]
+
+# Numeric constants
+POSITIVE = 1
+NEGATIVE = 0
+UNCERTAIN = -1
+
+# Misc. constants
+UNCERTAINTY = "uncertainty"
+NEGATION = "negation"
+REPORTS = "Reports"