MedLinker icon indicating copy to clipboard operation
MedLinker copied to clipboard

Negation detection

Open auriml opened this issue 4 years ago • 0 comments

Thank you very much for making the code available. I followed the steps (except for using 2020AB instead of 2017AA) and after minimal change in code to avoid key lookup errors for missing CUIs) I successfully run the code. I have done several tests with simple phrases including negated terms, but the pipeline does not skip them: For example see below:

{'sentence': 'No voiding syndrome. No diarrhea or nausea. No abdominal pain. No other symptomatology of interest', 'tokens': ['No', 'voiding', 'syndrome.', 'No', 'diarrhea', 'or', 'nausea.', 'No', 'abdominal', 'pain.', 'No', 'other', 'symptomatology', 'of', 'interest'], 'spans': [{'start': 1, 'end': 3, 'text': 'voiding syndrome.', 'st': ('T038', 0.6669729688499156), 'cui': ('C0243095', 0.9999871)}, {'start': 3, 'end': 5, 'text': 'No diarrhea', 'st': ('T033', 0.99344856), 'cui': ('C0011991', 0.8528028654224417)}, {'start': 6, 'end': 7, 'text': 'nausea.', 'st': ('T033', 0.7728953), 'cui': ('C0243095', 0.99999225)}, {'start': 8, 'end': 10, 'text': 'abdominal pain.', 'st': ('T033', 0.92418957), 'cui': ('C0243095', 0.998923)}, {'start': 12, 'end': 13, 'text': 'symptomatology', 'st': ('T033', 0.9771756), 'cui': ('C1457887', 1.0)}]}

Will you include it in the future? Any hint?

Thanks again,

auriml avatar Jan 23 '21 19:01 auriml