I do some NLP where I find out when patients were diagnosed with multiple sclerosis.
I would like to use nltk to tell me that the noun of the sentence is multiple sclerosis. The problem is that doctors often refer to multiple sclerosis as MS, which nltk picks up as a proper noun.
For example, this sentence: "His MS was diagnosed in 1999." Marked as: [('His', 'PRP$'), ('MS', 'NNP'), ('was', 'VBD'), ('diagnosed', 'VBN'), ('in', 'IN'), ('1999', 'CD'), ('.', '.')]
MS should be a noun here. Any suggestions?
source share