我有一个文档,必须从中查找医学用语,例如:
Cristy has failed conservative treatment of his carpal tunnel syndrome and
wishes to proceed with carpal tunnel release.
John is a good candidate for total shoulder arthroplasty as he has been
suffering from this problem from a very long time.
我必须从以上句子中查找:
1. carpal tunnel release.
2. total shoulder arthroplasty
我可以知道怎么做吗?我尝试使用Spacy,但没有得到结果。
nlp = spacy.load('en_core_web_lg')
doc = nlp(line)
for word in doc:
if (word.pos_ == "ADJ" or word.pos_ == "PROPN" or word.pos_ == "NOUN" )