stanfordmlgroup / chexpert-labeler

CheXpert NLP tool to extract observations from radiology reports.
MIT License
328 stars 78 forks source link

rem empty sentences from report before processing #13

Closed alistairewj closed 4 years ago

alistairewj commented 4 years ago

I have run into a few reports with misaligned punctuation e.g. Lungs are clear. . which later gives a vague downstream error unable to parse sentence tree for the empty sentence .. This fix cleans out those sentences (the end result doesn't change the output of the labeler but it does stop it from printing out worrying error messages!).