stanfordmlgroup / chexpert-labeler

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

rem empty sentences from report before processing #13

Closed alistairewj closed 5 years ago

alistairewj commented 5 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!).