Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -140,7 +140,8 @@ def group_by_entity(raw):
|
|
140 |
myEntityGroup = ent["entity_group"]
|
141 |
print("Found entity group type: " + myEntityGroup)
|
142 |
|
143 |
-
if (myEntityGroup in ['Sign_symptom', 'Detailed_description', 'History', 'Activity', 'Medication', 'DISEASE_DISORDER' ]):
|
|
|
144 |
eterm = ent["word"].replace('#','')
|
145 |
minlength = 3
|
146 |
if len(eterm) > minlength:
|
|
|
140 |
myEntityGroup = ent["entity_group"]
|
141 |
print("Found entity group type: " + myEntityGroup)
|
142 |
|
143 |
+
# if (myEntityGroup in ['Sign_symptom', 'Detailed_description', 'History', 'Activity', 'Medication', 'DISEASE_DISORDER' ]):
|
144 |
+
if (myEntityGroup not in ['Match All']):
|
145 |
eterm = ent["word"].replace('#','')
|
146 |
minlength = 3
|
147 |
if len(eterm) > minlength:
|