tracer / headline_utils.py
mishtert's picture
Upload headline_utils.py
1be55d5
raw
history blame
328 Bytes
def get_condition(condition):
print('Updating condition for headline...')
if condition:
if 'healthy' in condition.lower():
condition = 'healthy subjects'
return condition
else:
condition = ' and '.join(condition.split('|'))
return condition
else:
'No condition avaialble'