omri374 commited on
Commit
e330702
1 Parent(s): a9d5309

Update transformers_recognizer.py

Browse files
Files changed (1) hide show
  1. transformers_recognizer.py +9 -2
transformers_recognizer.py CHANGED
@@ -55,7 +55,7 @@ class TransformersRecognizer(EntityRecognizer):
55
  "ORGANIZATION",
56
  "AGE",
57
  "ID",
58
- "PHONE",
59
  "EMAIL",
60
  "DATE",
61
 
@@ -71,6 +71,7 @@ class TransformersRecognizer(EntityRecognizer):
71
  ({"ID"}, {"ID"}),
72
  ({"EMAIL"}, {"EMAIL"}),
73
  ({"DATE"}, {"DATE"}),
 
74
 
75
  ]
76
 
@@ -80,7 +81,13 @@ class TransformersRecognizer(EntityRecognizer):
80
  "ORG": "ORGANIZATION",
81
  "AGE": "AGE",
82
  "ID": "ID",
83
- "EMAIL": "EMAIL"
 
 
 
 
 
 
84
  }
85
 
86
  DEFAULT_MODEL_PATH = "obi/deid_roberta_i2b2"
 
55
  "ORGANIZATION",
56
  "AGE",
57
  "ID",
58
+ "PHONE_NUMBER",
59
  "EMAIL",
60
  "DATE",
61
 
 
71
  ({"ID"}, {"ID"}),
72
  ({"EMAIL"}, {"EMAIL"}),
73
  ({"DATE"}, {"DATE"}),
74
+ ({"PHONE_NUMBER"}, {"PHONE"}),
75
 
76
  ]
77
 
 
81
  "ORG": "ORGANIZATION",
82
  "AGE": "AGE",
83
  "ID": "ID",
84
+ "EMAIL": "EMAIL",
85
+ "PATIENT": "PERSON",
86
+ "STAFF": "PERSON",
87
+ "HOSP": "LOCATION",
88
+ "PATORG": "ORGANIZATION",
89
+ "DATE": "DATE_TIME",
90
+ "PHONE": "PHONE_NUMBER",
91
  }
92
 
93
  DEFAULT_MODEL_PATH = "obi/deid_roberta_i2b2"