Text this: An adaptive data processing framework for cost- effective covid-19 and pneumonia detection