affiliation_parser icon indicating copy to clipboard operation
affiliation_parser copied to clipboard

odd and incorrect substitutions in clean_text() function

Open simonatdrg opened this issue 7 years ago • 1 comments

Why are the lines affil_text = re.sub('2 ', ' ', affil_text) affil_text = re.sub('2. ', ' ', affil_text) present ?

They create incorrect zip code results with an afiiliation string such as 'Department of Audiology, Speech-Language Pathology & Deaf Studies, Towson University, Towson, MD 21252, USA. ' as the zipcode is incorrectly modified

simonatdrg avatar Mar 14 '18 18:03 simonatdrg

Oh! Thanks for pointing out @simonatdrg. I was concerned about affiliation string such as 2. Department of .... I'll make changes on that!

titipata avatar Mar 14 '18 18:03 titipata